Skip to content

Conversation

@mdboom
Copy link
Contributor

@mdboom mdboom commented Nov 12, 2025

There were two independent issues here:

  • The driver.CUgraphInstantiateResult.CUDA_GRAPH_INSTANTIATE_CONDITIONAL_HANDLE_UNUSED enum was added in CUDA 12.8, so we can't handle it as a result type on earlier versions

  • There are a number of features not supported on 12.6, and they are getting properly gated, if the driver supports the feature and the bindings don't, the exception raised will say Bindings version (12, 6) does not support X rather than Driver version (12, 6) does not support X. For these I have just updated the tests to accept either string.

I have confirmed this makes the tests pass in a local venv where I have installed cuda-python==12.6.2-post1 and a local checkout of cuda_core. However, I don't think this is exercised in our CI. Should we add that?

@copy-pr-bot
Copy link
Contributor

copy-pr-bot bot commented Nov 12, 2025

Auto-sync is disabled for ready for review pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@mdboom mdboom requested a review from leofang November 12, 2025 21:32
@mdboom
Copy link
Contributor Author

mdboom commented Nov 12, 2025

/ok to test

@mdboom mdboom requested a review from Copilot November 12, 2025 21:38
Copilot finished reviewing on behalf of mdboom November 12, 2025 21:40
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes compatibility issues with cuda-python 12.6.* by addressing two independent problems: adding version checks for CUDA 12.8-specific enums and updating test patterns to accept both driver and binding version error messages.

  • Adds version check for CUDA_GRAPH_INSTANTIATE_CONDITIONAL_HANDLE_UNUSED enum (available only in CUDA 12.8+)
  • Updates test assertions to accept error messages from either driver or binding version checks

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
cuda_core/cuda/core/experimental/_graph.py Adds binding version check before accessing CUDA 12.8-specific enum to prevent AttributeError on earlier versions
cuda_core/tests/test_graph.py Updates regex patterns in test assertions to match both "Driver version" and "Binding version" error messages

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions

This comment has been minimized.

@mdboom mdboom merged commit 9aaa671 into NVIDIA:main Nov 13, 2025
63 checks passed
@github-actions
Copy link

Doc Preview CI
Preview removed because the pull request was closed or merged.

@leofang leofang added bug Something isn't working P1 Medium priority - Should do cuda.core Everything related to the cuda.core module labels Nov 15, 2025
@leofang leofang added this to the cuda.core beta 10 milestone Nov 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working cuda.core Everything related to the cuda.core module P1 Medium priority - Should do

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants