Skip to content

Commit

Permalink
Merge pull request #1318 from GeorgeWeb/georgi/adapter-cuda-out-of-re…
Browse files Browse the repository at this point in the history
…sources-registers-errc

[CUDA] Use appropriate return code for out of registers kernel launch
  • Loading branch information
kbenzie authored May 31, 2024
2 parents 7db38b9 + 78a71f3 commit a97eed1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/adapters/cuda/enqueue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ setKernelParams([[maybe_unused]] const ur_context_handle_t Context,

if (hasExceededMaxRegistersPerBlock(Device, Kernel,
KernelLocalWorkGroupSize)) {
return UR_RESULT_ERROR_INVALID_WORK_GROUP_SIZE;
return UR_RESULT_ERROR_OUT_OF_RESOURCES;
}
} else {
guessLocalWorkSize(Device, ThreadsPerBlock, GlobalWorkSize, WorkDim,
Expand Down

0 comments on commit a97eed1

Please sign in to comment.