James Watkins
James Watkins

Reputation: 4954

How to get Mavenized JCuda, Eclipse, and Windows to work together?

  1. NVidia does not distribute the NSight IDE for Windows (only Linux and MacOSX)
  2. I don't want to use Visual Studio because I'm not familiar with it; being a Java developer I prefer Eclipse.
  3. I want to use Maven, because well everyone should, and Mavenized JCuda seems like a good start.

So here's what I did:

  1. Downloaded version 6.5 of CUDA Developer Toolkit from the NVidia website.
  2. Got Eclipse J2EE edition, because it has built-in Maven support.
  3. Cloned the mavenized-jcuda project into my workspace.
  4. 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:

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?

Upvotes: 2

Views: 1026

Answers (0)

Related Questions