kunzmi / managedCuda

ManagedCUDA aims an easy integration of NVidia's CUDA in .net applications written in C#, Visual Basic or any other .net language.
Other
440 stars 79 forks source link

System.EntryPointNotFoundException for nppiSegmentWatershedGetBufferSize_8u_C1R #94

Open NiverplastDieuwert opened 3 years ago

NiverplastDieuwert commented 3 years ago

I get an exception on ManagedCuda.NPP.NPPImage_8uC1.SegmentWatershedGetBufferSize()

System.EntryPointNotFoundException: 'Unable to find an entry point named 'nppiSegmentWatershedGetBufferSize_8u_C1R' in DLL 'nppist64_11'.'

(I installed CUDA Toolkit 11.1.1)

kunzmi commented 3 years ago

Hi, indeed, managedCuda is pointing to the wrong DLL (nppist and not nppif). I'll fix it in the upcoming release for Cuda 11.2! If you need a faster fix, just replace NPPIST_API_DLL_NAME by NPPIF_API_DLL_NAME in lines 90144 to 90183 of NPPNativeMethods.cs

Thanks, Michael

NiverplastDieuwert commented 3 years ago

This solved the problem. Thanks for the quick response!

You close this issue when it's fixed in the next release?