jcuda.driver.CUoccupancyB2DSize file missed


I updated cuda and jcuda from 5.5 to 6.5.
When I launch cuModuleLoad() or KernelLauncher.create() I get

Exception in thread “Thread-4” java.lang.UnsatisfiedLinkError: Could not load the native library.
Error while loading native library “JCudaDriver-windows-x86” with base name “JCudaDriver”
java.lang.NullPointerException: No resource found with name ‘/lib/JCudaDriver-windows-x86.dll’
at jcuda.LibUtils.loadLibraryResource(LibUtils.java:149)
at jcuda.LibUtils.loadLibrary(LibUtils.java:83)
at jcuda.driver.JCudaDriver.(JCudaDriver.java:231)
at jcuda.utils.KernelLauncher.initialize(KernelLauncher.java:603)
at jcuda.utils.KernelLauncher.(KernelLauncher.java:586)
at jcuda.utils.KernelLauncher.create(KernelLauncher.java:393)
at jcuda.utils.KernelLauncher.create(KernelLauncher.java:321)


Stack trace from the attempt to load the library as a file:
java.lang.NoClassDefFoundError: jcuda/driver/CUoccupancyB2DSize

JCudaDriver-windows-x86.dll in its place and connected with project.
In source files I see the jcuda/driver/CUoccupancyB2DSize
but in JCuda-All-0.6.5-bin-windows-x86 jcuda-0.6.5.jar there is no such file.
Maybe the reason in absence jcuda/driver/CUoccupancyB2DSize in jcuda-0.6.5.jar?

Thank you!

That’s the interface that defined the callback for the occupancy calculation (although this does not seem to work properly in the current CUDA version anyhow). It indeed seems to be missing in the JAR, and I wonder how this could slip though my tests. I’ll have a look at this today and update the JAR ASAP. Thanks for pointing this out.

The JARs have been updated and tested once more with a Driver API example. (I received the same error with the other JAR version, but the new ones should work properly). I’m still investigating how this could happen, there had been no changes in my buildfiles… :confused: