Function cudaFuncGetParamInfo

Source
pub unsafe extern "C" fn cudaFuncGetParamInfo(
    func: *const c_void,
    paramIndex: usize,
    paramOffset: *mut usize,
    paramSize: *mut usize,
) -> cudaError_t
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 in \p func’s list of parameters and returns parameter information via \p paramOffset and \p paramSize. \p paramOffset returns the offset of the parameter in the device-side parameter layout. \p paramSize returns the size in bytes of the parameter. 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.

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

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