cuda.bindings._v2.driver.func_get_param_info#
- cuda.bindings._v2.driver.func_get_param_info(intptr_t func, size_t param_index) tuple#
Returns the offset and size of a kernel parameter in the device-side parameter layout.
Queries the kernel parameter at
param_indexintofunc'slist of parameters, and returns inparam_offsetandparam_sizethe offset and size, respectively, where the parameter will reside in the device-side parameter layout. This information can be used to update kernel node parameters from the device viacudaGraphKernelNodeSetParam()andcudaGraphKernelNodeUpdatesApply().param_indexmust be less than the number of parameters thatfunctakes.param_sizecan be set to NULL if only the parameter offset is desired.- Parameters:
func (intptr_t) – The function to query.
param_index (size_t) – The parameter index to query.
- Returns:
- size_t: Returns the offset into the device-side parameter layout
at which the parameter resides.
- size_t: Optionally returns the size of the parameter in the
device-side parameter layout.
- Return type:
A 2-tuple containing
See also
cuFuncGetParamInfo