UnsatisfiedLinkError again

Hello everybody!

As many fellow-sufferers before I have basic problems with JCuda on my Mac getting the UnsatisfiedLinkError all the time. I have read all the instrucions regarding this isue but I still can’t solve the problem.

Here are some basic information about the environment:

  1. I am using Mac OS X 10.6.4 on MacBookPro 5.3 with Intel Core 2 Duo processor.

  2. CUDA Driver Version: 3.1.17.
    Cuda applications written in C run well.

  3. with deviceQuery I get the following information

CUDA Device Query (Runtime API) version (CUDART static linking)

There is 1 device supporting CUDA

Device 0: “GeForce 9400M”
CUDA Driver Version: 3.10
CUDA Runtime Version: 3.0
CUDA Capability Major revision number: 1
CUDA Capability Minor revision number: 1
Total amount of global memory: 265945088 bytes
Number of multiprocessors: 2
Number of cores: 16
Total amount of constant memory: 65536 bytes
Total amount of shared memory per block: 16384 bytes
Total number of registers available per block: 8192
Warp size: 32
Maximum number of threads per block: 512
Maximum sizes of each dimension of a block: 512 x 512 x 64
Maximum sizes of each dimension of a grid: 65535 x 65535 x 1
Maximum memory pitch: 2147483647 bytes
Texture alignment: 256 bytes
Clock rate: 1.10 GHz
Concurrent copy and execution: No
Run time limit on kernels: Yes
Integrated: Yes
Support host page-locked memory mapping: Yes
Compute mode: Default (multiple host threads can use this device simultaneously)

deviceQuery, CUDA Driver = CUDART, CUDA Driver Version = 55683, CUDA Runtime Version = 3.0, NumDevs = 1, Device = GeForce 9400M

  1. when trying to execute the JCudaRuntimTest.class (from “If all this does not help” section of the FAQ) I get this:

$ java -cp “.:jcuda-0.3.1.jar” JCudaRuntimeTest
Error while loading native library with base name “JCudaRuntime”
Operating system name: Mac OS X
Architecture : x86_64
Architecture bit size: 64
Exception in thread “main” java.lang.UnsatisfiedLinkError: Could not load native library
at jcuda.LibUtils.loadLibrary(LibUtils.java:79)
at jcuda.runtime.JCuda.assertInit(JCuda.java:225)
at jcuda.runtime.JCuda.cudaMalloc(JCuda.java:1513)
at JCudaRuntimeTest.main(JCudaRuntimeTest.java:8)

Can you please help me!

Best regards, Tomaz

Hello,

If I had an idea about further possible reasons, I had listed it in the FAQ :wink: After a short glance at the output, I noticed
CUDA Driver Version: 3.10
CUDA Runtime Version: 3.0

Admittedly, I’m not sure if this should not be „Runtime Version: 3.1“ as well. I assume that you installed the 3.1 Toolkit? Could there be an old (3.0) CUDA JNILIB left over somewhere from a previous installation?

But before undertaking any actions, let me check whether the „Runtime Version“ always consists only of the „major“ version number - maybe 3.0 is OK in this case. I’ll have to look this up, I can not check this at the moment, but maybe I can later today.

bye
Marco

Thanks for you reply. I am still trying to find the solution. I will post if anything new appears.

Regards, Tomaz

Hello

I just checked it: For me it says “Runtime Version 3.20” (the same as the driver version). So for your current setup, it should probably “Runtime Version 3.10”. Did you have the chance to check whether there is still an old (3.0) installation on your PC that might cause this message?

bye
Marco