I'm launching a CUDA kernel I've compiled, using the cudLaunchKernel()
driver API function. I'm passing my parameters in a kernelParams
array, and passing nullptr
for the extra
argument.
Unfortunately, this fails, with the error: CUDA_ERROR_INVALID_HANDLE
. Why? I checked the Driver API documentation to see how the function might fail in what cases, and edit it discusses the failure with CUDA_ERROR_INVALID_VALUE
(not the same thing). It doesn't discuss the error I get.
Since there is more than one parameter to cuLaunchKernel()
which is some sort of a handle - what does this failure mean? (And if there are multiple options - what are they?)