cuda.bindings._v2.driver.kernel_get_function#

cuda.bindings._v2.driver.kernel_get_function(intptr_t kernel) → intptr_t#

Returns a function handle.

Returns in p_func the handle of the function for the requested kernel kernel and the current context. If function handle is not found, the call returns CUDA_ERROR_NOT_FOUND.

Parameters:

kernel (intptr_t) – Kernel to retrieve function for the requested context.

Returns:

Returned function handle.

Return type:

intptr_t

See also

cuKernelGetFunction