Skip to content

Default cuda backend selection#385

Draft
benvanwerkhoven wants to merge 2 commits into
masterfrom
default_cuda_backend_selection
Draft

Default cuda backend selection#385
benvanwerkhoven wants to merge 2 commits into
masterfrom
default_cuda_backend_selection

Conversation

@benvanwerkhoven
Copy link
Copy Markdown
Collaborator

This replaces PyCUDA with cuda-python as the default backend.

The default selection scheme is slightly more sophisticated now. cuda-python is only selected when it is installed. If you only have pycuda installed, pycuda will still be the default backend.

Specifically, if lang= option does not explicitly select a CUDA backend, meaning it is "CUDA" and not any of "PYCUDA", "CUPY", or "NVCUDA", the selection order for a CUDA backend now is:

  1. cuda-python (if installed)
  2. cupy (if installed)
  3. pycuda (if installed)
  4. throw exception to tell user to install a CUDA backend

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Jun 5, 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.

1 participant