fails on allocating NPPImage_8uC3

Mar 11, 2013 at 6:23 PM
Hi,

I am trying to use managedCUDA in my C# code but I have some problems partially in the code.
CUDA toolkit seems correctly installed and NPP seems working fine but managedCUDA is not fully working in my computer..
Here is my code and its results:

NppLibraryVersion libVer = NPPNativeMethods.NPPCore.nppGetLibVersion();
Console.WriteLine(string.Format("NPP Library Version {0}\n", libVer.ToString()));
[Console Output:] NPP Library Version 5.0.35

deviceCount = CudaContext.GetDeviceCount();
Console.WriteLine(deviceCount);
[Console Output:] 1

Console.WriteLine(CudaContext.GetDeviceName(dev));
[Console Output:] Quadro NVS 290

GpuComputeCapability computeCap = NPPNativeMethods.NPPCore.nppGetGpuComputeCapability();
bool _nppOK = computeCap != GpuComputeCapability.CudaNotCapable;
Console.WriteLine("_nppOK: " + _nppOK);
[Console Output:] True

/problem starts here/
Console.WriteLine(computeCap );
[Console Output:] -1

Console.WriteLine(NPPNativeMethods.NPPCore.nppGetGpuName());
[Console Output:] @#! (broken text)

Console.WriteLine(NPPNativeMethods.NPPCore.nppGetGpuNumSMs());
[Console Output:] -1

NPPImage_8uC3 src_c3 = new NPPImage_8uC3(200, 200);
[Console Output:] NPPException: Device allocation error.

Does anyone know why this happens?
Thanks in advance
Mar 11, 2013 at 7:06 PM
Edited Mar 11, 2013 at 8:49 PM
uninstalling all CUDA related software / reinstall CUDA 5.0 solved the problem.. eek..