- NVidia does not distribute the NSight IDE for Windows (only Linux and MacOSX)
- I don't want to use Visual Studio because I'm not familiar with it; being a Java developer I prefer Eclipse.
- I want to use Maven, because well everyone should, and Mavenized JCuda seems like a good start.
So here's what I did:
- Downloaded version 6.5 of CUDA Developer Toolkit from the NVidia website.
- Got Eclipse J2EE edition, because it has built-in Maven support.
- Cloned the mavenized-jcuda project into my workspace.
- Tried to run the example program, but got errors.
Stack Trace:
Exception in thread "main" java.lang.UnsatisfiedLinkError: Could not load the native library.
Error while loading native library "JCudaRuntime-windows-x86_64" with base name "JCudaRuntime"
...
java.lang.NullPointerException: No resource found with name '/lib/JCudaRuntime-windows-x86_64.dll'
...
java.lang.UnsatisfiedLinkError: no JCudaRuntime-windows-x86_64 in java.library.path
...
I tried adding a bunch of paths to my -Djava.library.path="..." JVM argument, including:
- C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v6.5
- C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v6.5\bin
- C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v6.5\lib\x64
- etc...
But still getting the same error. What's even more concerning is that there is no such file anywhere on my computer by that name (JCudaRuntime-windows-x86_64.dll). So how do I resolve these linking issues?