Skip to content

[CD] Windows Magma build 12.9 and cuda scripts #155799

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 5 commits into from

Conversation

atalman
Copy link
Contributor

@atalman atalman commented Jun 12, 2025

Scripts needed to build Magma and CUDA on windows
Same as #146653

@atalman atalman requested a review from a team as a code owner June 12, 2025 14:02
Copy link

pytorch-bot bot commented Jun 12, 2025

🔗 Helpful Links

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

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

❌ 2 New Failures, 14 Pending, 1 Unrelated Failure

As of commit 868acf2 with merge base d632cf2 (image):

NEW FAILURES - The following jobs have failed:

FLAKY - The following job failed but was likely due to flakiness present on trunk:

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

@pytorch-bot pytorch-bot bot added the release notes: releng release notes category label Jun 12, 2025
@@ -35,15 +35,15 @@ cd magma
mkdir build && cd build

set GPU_TARGET=All
if "%CUVER_NODOT%" == "129" (
set CUDA_ARCH_LIST=-gencode=arch=compute_75,code=sm_75 -gencode arch=compute_80,code=sm_80 -gencode arch=compute_86,code=sm_86 -gencode arch=compute_90,code=sm_90 -gencode arch=compute_100,code=sm_100 -gencode arch=compute_120,code=sm_120
)
if "%CUVER_NODOT%" == "128" (
set CUDA_ARCH_LIST=-gencode arch=compute_50,code=sm_50 -gencode arch=compute_60,code=sm_60 -gencode arch=compute_70,code=sm_70 -gencode arch=compute_80,code=sm_80 -gencode arch=compute_86,code=sm_86 -gencode arch=compute_90,code=sm_90 -gencode arch=compute_100,code=sm_100 -gencode arch=compute_120,code=sm_120
Copy link
Contributor Author

@atalman atalman Jun 12, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this a bug in Magma Windows no sm75 arch for 12.8, 12.6 cuda ?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like it to me, unless it makes the library too large to link against.

Copy link
Collaborator

@tinglvv tinglvv Jun 12, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for finding the issue. I believe we can remove sm_50-70, and keep sm_75 for CUDA 12.8 and 12.9. For CUDA 12.6, add back sm_75. Linux builds are following the above rules for compute archs.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI - sm_50 to sm_70 will be deprecated in the next major release. "Maxwell, Pascal, and Volta architectures are now feature-complete with no further enhancements planned. While CUDA Toolkit 12.x series will continue to support building applications for these architectures, offline compilation and library support will be removed in the next major CUDA Toolkit version release." https://docs.nvidia.com/cuda/cuda-toolkit-release-notes/index.html

Copy link
Contributor

@malfet malfet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No new batch files in 2025 please

@Skylion007
Copy link
Collaborator

Skylion007 commented Jun 12, 2025

No new batch files in 2025 please

You mean use powerscript instead? Normally I'd agree but this is just keeping it inline with the existing build scripts that already exist. Otherwise, the magma 12.9 build scripts would look totally different from the other magma build scripts.

@pytorch-bot pytorch-bot bot added the topic: not user facing topic category label Jun 12, 2025
@atalman
Copy link
Contributor Author

atalman commented Jun 12, 2025

Removed cuda129.bat file

This reverts commit 8f8c285.
@@ -35,15 +35,15 @@ cd magma
mkdir build && cd build

set GPU_TARGET=All
if "%CUVER_NODOT%" == "129" (
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so we could condense 128 and 129 into one>> if "%CUVER_NODOT%" == "129" or "%CUVER_NODOT%" == "128"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are looking probably to get rid of the batch scripts completely in #155807

@atalman
Copy link
Contributor Author

atalman commented Jun 12, 2025

Landing this PR and will help on landing #155807 as a follwup

@atalman
Copy link
Contributor Author

atalman commented Jun 12, 2025

@pytorchmergebot merge -f "landing to unblock AMI testing, lint and Magma Builds are 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

@tinglvv tinglvv mentioned this pull request Jun 13, 2025
12 tasks
thatgeeman pushed a commit to thatgeeman/pytorch-docathon that referenced this pull request Jun 15, 2025
Scripts needed to build Magma and CUDA on windows
Same as pytorch#146653
Pull Request resolved: pytorch#155799
Approved by: https://github.com/jeanschmidt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants