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:
-
I am using Mac OS X 10.6.4 on MacBookPro 5.3 with Intel Core 2 Duo processor.
-
CUDA Driver Version: 3.1.17.
Cuda applications written in C run well. -
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
- 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