I found the KMLib on the internet and I found it very interesting. But when running the sample application an error appears: "GASS.CUDA.CUDAException" "Error Invalid Source".
The exception occurs in the method:
protected void InitCudaModule ()
{
deviceNr int = 0;
cuda = new CUDA (deviceNr, true);
cuCtx = cuda.CreateContext (deviceNr, CUCtxFlags.MapHost);
/ / cuda.SetCurrentContext (cuCtx);
/ / var ctx = cuda.PopCurrentContext ();
/ / var CTX2 cuda.PopCurrentContext = ();
/ / var ctx3 cuda.PopCurrentContext = ();
modluePath String = Path.Combine (Environment.CurrentDirectory, cudaModuleName);
if (! File.Exists (modluePath))
throw new ArgumentException ("Failed to access cuda module" + modluePath);
cuModule = cuda.LoadModule (modluePath); / / ERROR!
cuFunc = cuda.GetModuleFunction (cudaProductKernelName);
}
I'm using GTX770, Visual Studio 2010 Ultimate, Cuda SDK 5.5 and Windows 7 64-bit.
What can be causing the error?