Skip to content

Small Torch 2.14 fixes - #787

Merged
danieldk merged 4 commits into
mainfrom
torch-2.14-fixes
Aug 26, 2026
Merged

Small Torch 2.14 fixes#787
danieldk merged 4 commits into
mainfrom
torch-2.14-fixes

Conversation

@danieldk

Copy link
Copy Markdown
Member
  • Set sycl-tla version for oneAPI 2026.1.0.
  • Switch from loose CUDA architecture intersection to strict.

@sayakpaul sayakpaul left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Really nice especially the test!

# Determine CUDA architectures
if(KERNEL_CUDA_CAPABILITIES)
cuda_archs_loose_intersection(_KERNEL_ARCHS "${KERNEL_CUDA_CAPABILITIES}" "${CUDA_ARCHS}")
cuda_archs_intersection(_KERNEL_ARCHS "${KERNEL_CUDA_CAPABILITIES}" "${CUDA_ARCHS}")

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Would this have any backward breaking behaviour? I am guessing not because we only maintain the last two recent PyTorch versions. But just checking.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

It should be fine, since in practice we have every CUDA capability listed anyway.

# We have special handling for x.0a, if x.0a is in `SRC_CUDA_ARCHS` and x.0 is
# in `TGT_CUDA_ARCHS` then we should remove x.0a from `SRC_CUDA_ARCHS` and add
# x.0a to the result (and remove x.0 from TGT_CUDA_ARCHS).
# `<major>.<minor>[letter][+PTX]` compute the intersection with the

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Would be nice to also include the example of megablocks that triggered this.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Seems too specific for the docs, but it is covered in the tests below.

@danieldk
danieldk merged commit 93bdf7f into main Aug 26, 2026
51 checks passed
@danieldk
danieldk deleted the torch-2.14-fixes branch August 26, 2026 10:16
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.

2 participants