Skip to content

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

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

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

arch: Bind NVIDIA kernels to their linked runtime

4b64456
Select commit
Loading
Failed to load commit list.
Codecov / codecov/project succeeded Nov 8, 2026 in 1s

84.63% (target 1.00%)

View this Pull Request on Codecov

84.63% (target 1.00%)

Details

Codecov Report

❌ Patch coverage is 86.94656% with 171 lines in your changes missing coverage. Please review.
✅ Project coverage is 84.63%. Comparing base (22830c8) to head (4b64456).

Files with missing lines Patch % Lines
tests/test_data_backends.py 74.11% 44 Missing ⚠️
tests/test_torch_openacc.py 76.74% 39 Missing and 1 partial ⚠️
devito/data/data.py 86.03% 29 Missing and 8 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 85.00% 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.52%   84.63%   +0.11%     
==========================================
  Files         260      269       +9     
  Lines       58599    59796    +1197     
  Branches     4978     5063      +85     
==========================================
+ Hits        49532    50611    +1079     
- Misses       8240     8340     +100     
- Partials      827      845      +18     

☔ 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.