Skip to content

compiler: Add PyTorch tensor storage and code generation - #3107

Open
mloubout wants to merge 2 commits into
mainfrom
feature/torch-backend
Open

mloubout wants to merge 2 commits into
mainfrom
feature/torch-backend

compiler: Refine Torch data and default allocator selection

b0094db
Select commit
Loading
Failed to load commit list.
Codecov / codecov/project succeeded Nov 12, 2026 in 0s

84.59% (target 1.00%)

View this Pull Request on Codecov

84.59% (target 1.00%)

Details

Codecov Report

❌ Patch coverage is 87.66643% with 176 lines in your changes missing coverage. Please review.
✅ Project coverage is 84.59%. Comparing base (00e78a5) to head (b0094db).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
tests/test_data_backends.py 72.72% 47 Missing and 1 partial ⚠️
tests/torch/test_openacc.py 76.74% 39 Missing and 1 partial ⚠️
devito/data/data.py 85.66% 31 Missing and 7 partials ⚠️
devito/types/dense.py 78.78% 5 Missing and 2 partials ⚠️
devito/arch/compiler.py 83.78% 4 Missing and 2 partials ⚠️
devito/data/allocators.py 87.75% 5 Missing and 1 partial ⚠️
devito/data/distributed/exchange.py 0.00% 6 Missing ⚠️
devito/tools/dtypes_lowering.py 60.00% 5 Missing and 1 partial ⚠️
examples/pytorch/devito_layer.py 93.82% 4 Missing and 1 partial ⚠️
devito/data/distributed/redistribution.py 0.00% 4 Missing ⚠️
... and 5 more
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3107      +/-   ##
==========================================
+ Coverage   84.46%   84.59%   +0.12%     
==========================================
  Files         260      270      +10     
  Lines       58758    60096    +1338     
  Branches     4988     5082      +94     
==========================================
+ Hits        49632    50840    +1208     
- Misses       8299     8413     +114     
- Partials      827      843      +16     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.