Skip to content

Conversation

@ChrisFab16
Copy link

This commit adds support for CUDA 13.x versions in the ptx_get_version function. Previously, CUDA 13.0 would raise a RuntimeError saying 'Triton only support CUDA 10.0 or higher', even though 13.0 > 10.0.

The fix maps CUDA 13.0+ to PTX version 8.9+, following the existing pattern for CUDA 10.x (PTX 6.3+), 11.x (PTX 7.0+), and 12.x (PTX 8.0+).

Note: A separate fix is needed for PTX version mismatch where the .version directive should match the actual PTX features used by LLVM (capped at 8.3). This may need to be applied in C++ code or Python wrapper depending on repository structure.

Fixes Windows build issues with CUDA 13.0.

New contributor declaration

  • I am not making a trivial change, such as fixing a typo in a comment.

  • I have written a PR description following these
    rules.

  • I have run pre-commit run --from-ref origin/main --to-ref HEAD.

  • Select one of the following.

    • I have added tests.
      • /test for lit tests
      • /unittest for C++ tests
      • /python/test for end-to-end tests
    • This PR does not need a test because FILL THIS IN.
  • Select one of the following.

    • I have not added any lit tests.
    • The lit tests I have added follow these best practices,
      including the "tests should be minimal" section. (Usually running Python code
      and using the instructions it generates is not minimal.)

This commit adds support for CUDA 13.x versions in the ptx_get_version
function. Previously, CUDA 13.0 would raise a RuntimeError saying
'Triton only support CUDA 10.0 or higher', even though 13.0 > 10.0.

The fix maps CUDA 13.0+ to PTX version 8.9+, following the existing
pattern for CUDA 10.x (PTX 6.3+), 11.x (PTX 7.0+), and 12.x (PTX 8.0+).

Note: A separate fix is needed for PTX version mismatch where the
.version directive should match the actual PTX features used by LLVM
(capped at 8.3). This may need to be applied in C++ code or Python
wrapper depending on repository structure.

Fixes Windows build issues with CUDA 13.0.
@ChrisFab16 ChrisFab16 requested a review from ptillet as a code owner December 6, 2025 20:07
Copy link
Collaborator

@ThomasRaoux ThomasRaoux left a comment

Choose a reason for hiding this comment

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

we are preparing a proper update to cuda 13.1 coming up next week. Adam is going to send a PR soon updating ptxas and fixing few things

@lezcano
Copy link
Contributor

lezcano commented Dec 9, 2025

Closing in favour of #8941

@lezcano lezcano closed this Dec 9, 2025
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.

3 participants