cuda.core.graph.ExecutableHostCallbackNode#
- class cuda.core.graph.ExecutableHostCallbackNode#
An executable host-callback-node view.
Methods
- __init__(*args, **kwargs)#
- update(self, fn, *, user_data=None) None#
Replace the callback and user-data binding for future launches.
fnmay be a Python callable, or a ctypes function pointer whose declared prototype matchesCUhostFn(void (*)(void*)); a mismatched prototype raisesTypeError.Warning
Callbacks must not call CUDA API functions. Doing so may deadlock or corrupt driver state.