Skip to content

Handle special case where error is a tuple in cuda_error_check#361

Merged
benvanwerkhoven merged 1 commit intomasterfrom
nvcuda-fix-error-handling
Mar 5, 2026
Merged

Handle special case where error is a tuple in cuda_error_check#361
benvanwerkhoven merged 1 commit intomasterfrom
nvcuda-fix-error-handling

Conversation

@stijnh
Copy link
Member

@stijnh stijnh commented Mar 4, 2026

Instead of a simple error code, some functions in the Nvidia CUDA Python API return a tuple (where output[0] is the error code). This PR fixes how we handle error codes in the Nvidia CUDA backend by also handling these tuples.

Previously, Kernel Tuner would just ignore the error if a kernel failed to launch (e.g., too much shared memory). With this PR, now it reports a proper error.

@stijnh stijnh requested a review from isazi March 4, 2026 19:57
@sonarqubecloud
Copy link

sonarqubecloud bot commented Mar 4, 2026

@benvanwerkhoven benvanwerkhoven merged commit 2f3b397 into master Mar 5, 2026
4 checks passed
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.

3 participants