Skip to content

Fix CUDA 13 API compatibility for PeerUtils#20

Open
ryanorendorff wants to merge 1 commit intoCAPS-UMU:mainfrom
ryanorendorff:fix/scalar-encoding-flexibleautoext
Open

Fix CUDA 13 API compatibility for PeerUtils#20
ryanorendorff wants to merge 1 commit intoCAPS-UMU:mainfrom
ryanorendorff:fix/scalar-encoding-flexibleautoext

Conversation

@ryanorendorff
Copy link
Copy Markdown

@ryanorendorff ryanorendorff commented Apr 23, 2026

Summary

CUDA 13 added a cudaGraphEdgeData* parameter to the graph dependency and stream capture APIs (cudaGraphAddDependencies, cudaGraphNodeGetDependencies, cudaGraphNodeGetDependentNodes, cudaStreamGetCaptureInfo, cudaStreamUpdateCaptureDependencies). This broke compilation on sm_120 targets.

This PR adds compat shims in PeerUtils.cu that present the CUDA 12 signature and pass nullptr for the new parameter on CUDA 13+, allowing the same source to compile against both versions.

Tested on RTX 5090 with CUDA 12.6 (sm_90) and CUDA 13 (sm_120).

CUDA 13 added a `cudaGraphEdgeData*` parameter to the graph
dependency and stream capture APIs. Add compat shims that present
the CUDA 12 signature and pass nullptr for the new parameter on
13+, allowing the same source to compile against both versions.

Tested on RTX 5090 with CUDA 12.6 (sm_90) and CUDA 13 (sm_120).
@ryanorendorff ryanorendorff force-pushed the fix/scalar-encoding-flexibleautoext branch from cc9ebd0 to 776d4dd Compare April 24, 2026 03:12
@ryanorendorff ryanorendorff changed the title Fix scalar encoding under FLEXIBLEAUTOEXT Fix CUDA 13 API compatibility for PeerUtils Apr 24, 2026
@oscarveral
Copy link
Copy Markdown
Collaborator

Hello.

This seems to be a nice patch. As we have just published some bugfixes I will need to do some conflict resolving and after some checks we'll be able to merge this.

Thanks for your contribution, we are very keen on having CUDA 13 support.

@oscarveral oscarveral self-assigned this Apr 29, 2026
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