Skip to content

[MSLK] Honor CUDA architecture selection for source builds - #1334

Merged
xuzhao9 merged 2 commits into
meta-pytorch:mainfrom
0z5a:codex/mslk-source-cuda-arch
Nov 4, 2026
Merged

xuzhao9 merged 2 commits into
meta-pytorch:mainfrom
0z5a:codex/mslk-source-cuda-arch

Conversation

@0z5a

@0z5a 0z5a commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

The MSLK source installer hard-codes a CUDA architecture list even when TORCH_CUDA_ARCH_LIST is set. Honor a nonempty user selection and keep the existing list as the default, allowing source builds such as B300's 10.3a target.

The nightly Docker workflow also uses a pull request's branch name while cloning the upstream repository. For PRs from forks this fails before the build starts. Pass the PR head repository to the Dockerfile along with its branch; scheduled and manually dispatched builds still default to the upstream repository.

Fixes #1333.

Testing

  • Three CPU regression cases pass for the default architecture list, 10.3a, and a mixed 9.0a;10.3a list. Both explicit-selection cases failed before the installer change.
  • Ran the patched installer with TORCH_CUDA_ARCH_LIST=10.3a against a previously compiled pinned MSLK source tree and confirmed installation completed. The cached build used CUDA 13.3.1; CUDA 13.0 was present for the install-time toolkit version check.
  • The installed library matched the binary tested on B300. Its FP8 MQA decoding interface passed against a PyTorch reference (maximum absolute error 0.00149 for the tested shape).
  • ufmt check passed for the installer and its regression test. The Docker workflow YAML and build-argument wiring were checked locally, and the fork branch was cloned at the previous PR head. A full Docker build was not run locally because the Docker daemon was unavailable.

Prebuilt wheel coverage and benchmark gating are separate from source-build target selection.

@meta-cla meta-cla Bot added the cla signed label Nov 4, 2026

@xuzhao9 xuzhao9 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for addressing this!

Just FYI, our CI pipeline are now using the nightly mslk build, so we are no longer using self-built MSLK in our testing environment.

@0z5a
0z5a had a problem deploying to docker-s3-upload November 4, 2026 16:58 — with GitHub Actions Failure
@0z5a
0z5a marked this pull request as ready for review November 4, 2026 17:06
@0z5a
0z5a temporarily deployed to docker-s3-upload November 4, 2026 21:22 — with GitHub Actions Inactive
@xuzhao9
xuzhao9 merged commit 0bc2829 into meta-pytorch:main Nov 4, 2026
5 checks passed

This branch was previously deployed

1 inactive deployment
docker-s3-upload — f71d852b Deployed Nov 4, 2026 by 0z5a via build-push-docker #1237
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[MSLK] Source installer ignores TORCH_CUDA_ARCH_LIST

2 participants