You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ManagedCuda.CudaException: 'ErrorInvalidHandle: This indicates that a resource handle passed to the API call was not valid. Resource handles are opaque types like CUstream and CUevent.'
It was raised here: public float RunSafe(NPPImage_32fC1 imgIn, NPPImage_32fC3 imgOut, float3 blackPoint, float3 scale)
I'm running using a NVIDIA RTX A3000 GPU with 6GB of memory.
The text was updated successfully, but these errors were encountered:
this sounds again like the context creation error we had already in some other issue, I just don't find it right now. The problem is that newer Cuda versions than the one I use in this old project create a PrimaryContext for the Cuda libraries like NPP and CUFFT.
So the trick is to also use a PrimaryContext and not a standard context with ImageStackAligntor.
Try to modify line 203 of ImagePresenterDX.xaml.cs from
_ctx=newPrimaryContext(0);//choose what ever deviceID you need, this old managedCuda version does not allow to create primary context from CUdevice_ctx.SetCurrent();
Doing so, NPP will run on the same context as the normal Cuda code and the error message should disappear.
Hello, could you help me with this exception?
ManagedCuda.CudaException: 'ErrorInvalidHandle: This indicates that a resource handle passed to the API call was not valid. Resource handles are opaque types like CUstream and CUevent.'
It was raised here:
public float RunSafe(NPPImage_32fC1 imgIn, NPPImage_32fC3 imgOut, float3 blackPoint, float3 scale)
I'm running using a NVIDIA RTX A3000 GPU with 6GB of memory.
The text was updated successfully, but these errors were encountered: