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.

fn may be a Python callable, or a ctypes function pointer whose declared prototype matches CUhostFn (void (*)(void*)); a mismatched prototype raises TypeError.

Warning

Callbacks must not call CUDA API functions. Doing so may deadlock or corrupt driver state.