Function cuFuncGetParamInfo

Source
pub unsafe extern "C" fn cuFuncGetParamInfo(
    func: CUfunction,
    paramIndex: usize,
    paramOffset: *mut usize,
    paramSize: *mut usize,
) -> CUresult
Expand description

\brief Returns the offset and size of a kernel parameter in the device-side parameter layout

Queries the kernel parameter at \p paramIndex into \p func’s list of parameters, and returns in \p paramOffset and \p paramSize 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(). \p paramIndex must be less than the number of parameters that \p func takes. \p paramSize can be set to NULL if only the parameter offset is desired.

\param func - The function to query \param paramIndex - The parameter index to query \param paramOffset - Returns the offset into the device-side parameter layout at which the parameter resides \param paramSize - Optionally returns the size of the parameter in the device-side parameter layout

\return ::CUDA_SUCCESS, ::CUDA_ERROR_INVALID_VALUE, \notefnerr

\sa ::cuKernelGetParamInfo