-
I try to register a callback on a stream, and the following code reports an error def stream_over(*argv):
print(f"over !")
cudart.cudaStreamAddCallback(stream, stream_over, None, 0)
In the documentation I found this class |
Beta Was this translation helpful? Give feedback.
Answered by
leofang
Dec 17, 2024
Replies: 1 comment 1 reply
-
Hi @wensimin this is how cuda-python/cuda_bindings/tests/test_cudart.py Lines 1293 to 1342 in eeda1ab |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
wensimin
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @wensimin this is how
cudaStreamAddCallback
(deprecated) andcudaLaunchHostFunc
are tested:cuda-python/cuda_bindings/tests/test_cudart.py
Lines 1293 to 1342 in eeda1ab