KEMBAR78
[Reland] Add warning about removed sm50 and sm60 arches by atalman · Pull Request #158700 · pytorch/pytorch · GitHub
Skip to content

Conversation

atalman
Copy link
Contributor

@atalman atalman commented Jul 19, 2025

Related to #157517

Detect when users are executing torch build with cuda 12.8/12.9 and running on Maxwell or Pascal architectures.
We would like to include reference to the issue: #157517 as well as ask people to install CUDA 12.6 builds if they are running on sm50 or sm60 architectures.

Test:

>>> torch.cuda.get_arch_list()
['sm_70', 'sm_75', 'sm_80', 'sm_86', 'sm_90', 'sm_100', 'sm_120', 'compute_120']
>>> torch.cuda.init()
/home/atalman/.conda/envs/py312/lib/python3.12/site-packages/torch/cuda/__init__.py:263: UserWarning: 
    Found <GPU Name> which is of cuda capability 5.0.
    PyTorch no longer supports this GPU because it is too old.
    The minimum cuda capability supported by this library is 7.0.

  warnings.warn(
/home/atalman/.conda/envs/py312/lib/python3.12/site-packages/torch/cuda/__init__.py:268: UserWarning: 
                        Support for Maxwell and Pascal architectures is removed for CUDA 12.8+ builds.
                        Please see https://github.com/pytorch/pytorch/issues/157517
                        Please install CUDA 12.6 builds if you require Maxwell or Pascal support.

Please note I reverted original PR #158301 because it broke internal users. This is a reland, added added check for non empty torch.cuda.get_arch_list()

Move code

fixes

Revert "conda"

This reverts commit 2853662.

Revert "use tos accept"

This reverts commit 8b34264.

Revert "conda"

This reverts commit 2853662.

Revert "Revert "conda""

This reverts commit e732654.

Revert "Revert "use tos accept""

This reverts commit c456c54.

Revert "Revert "conda""

This reverts commit bb4fa09.

fix

fix_arch_list

fix

fixes
@atalman atalman requested review from eqy and syed-ahmed as code owners July 19, 2025 01:03
@pytorch-bot
Copy link

pytorch-bot bot commented Jul 19, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/158700

Note: Links to docs will display an error until the docs builds have been completed.

✅ You can merge normally! (1 Unrelated Failure)

As of commit a90d9ae with merge base 2c16eb9 (image):

UNSTABLE - The following job is marked as unstable, possibly due to flakiness on trunk:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@atalman atalman changed the title Add warning about removed sm50 and sm60 arches [Reland] Add warning about removed sm50 and sm60 arches Jul 19, 2025
@pytorch-bot pytorch-bot bot added the ci-no-td Do not run TD on this PR label Jul 19, 2025
@atalman atalman added the topic: not user facing topic category label Jul 19, 2025
@atalman
Copy link
Contributor Author

atalman commented Jul 20, 2025

@pytorchmergebot merge -f "CI is green"

@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Please use -f as last resort and instead consider -i/--ignore-current to continue the merge ignoring current failures. This will allow currently pending tests to finish and report signal before the merge.

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

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

Labels

ci-no-td Do not run TD on this PR Merged topic: not user facing topic category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants