Skip to content

CI: minimum supported PyTorch check - #35

Open
pggPL wants to merge 15 commits into
mainfrom
pytorch21_build_ci
Open

CI: minimum supported PyTorch check#35
pggPL wants to merge 15 commits into
mainfrom
pytorch21_build_ci

Conversation

@pggPL

@pggPL pggPL commented Aug 18, 2026

Copy link
Copy Markdown
Owner

Adds a workflow verifying that TE builds and imports against torch==2.8.0:

  • CUDA 12.8 devel container + apt cudnn9, torch==2.8.0 pinned,
  • single old arch only (NVTE_CUDA_ARCHS=70, Volta) to keep the build small,
  • runs tests/pytorch/test_sanity_import.py.

Also fixes a real build bug found along the way: the torch extension enabled NVTE_WITH_NCCL_EP regardless of target archs, while the common library skips NCCL EP when no arch >= 90 is present — an archs<90-only build would fail (missing SymmetricMemory header on older torch, undefined nvte_ep_* otherwise). The extension now uses the same nccl_ep_enabled() gate.

(History note: the branch originally targeted torch 2.1, which does NOT compile — std::optional vs c10::optional in generator APIs, no c10::Stream pybind caster, FSDP2 _fully_shard imports. Those experiments were reverted; see commits.)

🤖 Generated with Claude Code

pggPL added 10 commits August 18, 2026 11:44
Signed-off-by: Pawel Gadzinski <pgadzinski@nvidia.com>
Signed-off-by: Pawel Gadzinski <pgadzinski@nvidia.com>
Signed-off-by: Pawel Gadzinski <pgadzinski@nvidia.com>
… 8.9

Signed-off-by: Pawel Gadzinski <pgadzinski@nvidia.com>
…1 needs c10::optional

Signed-off-by: Pawel Gadzinski <pgadzinski@nvidia.com>
…Make

Signed-off-by: Pawel Gadzinski <pgadzinski@nvidia.com>
… c10::Stream caster

Signed-off-by: Pawel Gadzinski <pgadzinski@nvidia.com>
…nd lacks c10::Stream caster"

This reverts commit 04b4b0f.

Signed-off-by: Pawel Gadzinski <pgadzinski@nvidia.com>
…torch 2.1 needs c10::optional"

This reverts commit 061834f.

Signed-off-by: Pawel Gadzinski <pgadzinski@nvidia.com>
Signed-off-by: Pawel Gadzinski <pgadzinski@nvidia.com>
@pggPL pggPL changed the title CI: build against torch 2.1 + sanity import CI: build against torch 2.8 + sanity import Aug 18, 2026
Signed-off-by: Pawel Gadzinski <pgadzinski@nvidia.com>
@pggPL pggPL changed the title CI: build against torch 2.8 + sanity import CI: minimum supported PyTorch check Aug 18, 2026
pggPL added 4 commits August 18, 2026 16:21
Signed-off-by: Pawel Gadzinski <pgadzinski@nvidia.com>
Signed-off-by: Pawel Gadzinski <pgadzinski@nvidia.com>
…ild min-torch job on sm90

Signed-off-by: Pawel Gadzinski <pgadzinski@nvidia.com>
… import

Signed-off-by: Pawel Gadzinski <pgadzinski@nvidia.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant