Skip to content

Conversation

@pciolkosz
Copy link
Contributor

We can't support minor version compatibility in 12.X releases without breaking dynamic runtime use case described here: #5970. Its because in older 12.X releases there is no cudaGetDriverEntryPointByVersion and the non versioned one can't support MVC.
This PR switches to instead dynamically load the CUDA library and fetch cuGetProcAddress from it, instead of using cudaGetDriverEntryPoint

@copy-pr-bot
Copy link
Contributor

copy-pr-bot bot commented Dec 5, 2025

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

Contributors can view more details about this message here.

@cccl-authenticator-app cccl-authenticator-app bot moved this from Todo to In Progress in CCCL Dec 5, 2025
@pciolkosz
Copy link
Contributor Author

/ok to test 91bea5b

@pciolkosz
Copy link
Contributor Author

/ok to test 319d34b

@github-actions

This comment has been minimized.

@pciolkosz
Copy link
Contributor Author

/ok to test 35dd82a

@github-actions
Copy link
Contributor

github-actions bot commented Dec 6, 2025

😬 CI Workflow Results

🟥 Finished in 1h 48m: Pass: 93%/91 | Total: 1d 04h | Max: 1h 46m | Hits: 96%/199476

See results here.

Comment on lines +56 to +58
# if _CCCL_OS(WINDOWS)
HMODULE m_cudaDriverLibrary = LoadLibraryEx("nvcuda.dll", nullptr, LOAD_LIBRARY_SEARCH_SYSTEM32);
if (m_cudaDriverLibrary == nullptr)
Copy link
Contributor

Choose a reason for hiding this comment

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

Critical: This is loading every single time the function is called, should this be a function local static?

# else
const char* m_cudaDriverLibraryName = "libcuda.so.1";
# endif
void* m_cudaDriverLibrary = dlopen(m_cudaDriverLibraryName, RTLD_NOW);
Copy link
Contributor

Choose a reason for hiding this comment

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

ditto should this be function local static?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

2 participants