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_index into func's list of parameters, and returns in param_offset and param_size the 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 via cudaGraphKernelNodeSetParam() and cudaGraphKernelNodeUpdatesApply(). param_index must be less than the number of parameters that func takes. param_size can 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