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

Conversation

@mloubout

@mloubout mloubout commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

WIP, to get opinions.

@mloubout mloubout added the API api (symbolics, types, ...) label Nov 7, 2026
@codecov

codecov Bot commented Nov 7, 2026 •

Copy link
Copy Markdown

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     
Flag Coverage Δ
pytest-gpu-aomp-amdgpuX 68.21% <50.38%> (-0.23%) ⬇️
pytest-gpu-gcc- 79.36% <81.14%> (+0.17%) ⬆️
pytest-gpu-icx- 79.30% <81.29%> (+0.16%) ⬆️
pytest-gpu-nvc-nvidiaX 69.31% <64.94%> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

API api (symbolics, types, ...)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant