pub unsafe extern "C" fn cudaFuncGetParamCount(
func: *const c_void,
paramCount: *mut size_t,
) -> cudaError_tExpand description
Returns the number of parameters used by the function.
Queries the number of kernel parameters used by func and returns it in paramCount.
Note that this function may also return error codes from previous, asynchronous launches.
Note: The API can also be used with a kernel cudaKernel_t by querying the handle using cudaLibraryGetKernel or cudaGetKernel and then passing it to the API by casting to void*. The symbol entryFuncAddr passed to cudaGetKernel should be a symbol that is registered with the same CUDA Runtime instance.
Note: Passing a symbol that belongs that belongs to a different runtime instance will result in undefined behavior. The only type that can be reliably passed to a different runtime instance is cudaKernel_t.
§Parameters
func: The function to query.paramCount: Returns the number of parameters used by the function.
§Return value
CUDA_SUCCESS, cudaError_enum::CUDA_ERROR_INVALID_VALUE,.