Skip to content

Commit 20d76a2

Browse files
authored
[PERF]: Add one more fast success path (#1656)
This is a follow-on to #1638. Copilot pointed out (in the generator code) that I missed one corner case.
1 parent 4597e03 commit 20d76a2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cuda_bindings/cuda/bindings/runtime.pyx.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21465,7 +21465,7 @@ def cudaDeviceRegisterAsyncNotification(int device, callbackFunc, userData):
2146521465

2146621466
if err != cyruntime.cudaSuccess:
2146721467
return (_cudaError_t(err), None)
21468-
return (_cudaError_t(err), callback)
21468+
return (_cudaError_t_SUCCESS, callback)
2146921469
{{endif}}
2147021470

2147121471
{{if 'cudaDeviceUnregisterAsyncNotification' in found_functions}}

0 commit comments

Comments
 (0)