Hi,
I have a problem using **cuMemcpyDtoA **from JCudaDriver: a call to the function results in java.lang.UnsatisfiedLinkError being thrown.
The smallest code snippet reproducing the error is as follows:
CUDA_ARRAY_DESCRIPTOR desc = new CUDA_ARRAY_DESCRIPTOR();
desc.Format = CUarray_format.CU_AD_FORMAT_SIGNED_INT32;
desc.NumChannels = 1;
desc.Width = length;
desc.Height = 0;
cuArrayCreate(cuArray, desc);
// the problematic call
JCudaDriver.cuMemcpyDtoA(cuArray, 0, arrayToCopyPtr, length*Sizeof.INT);
Here **arrayToCopyPtr **is a properly initialized **CUdeviceptr ** and **length ** is the number of the elements in the array.
The error on the console output is:
Exception in thread „Thread-2“ java.lang.UnsatisfiedLinkError:
jcuda.driver.JCudaDriver.cuMemcpyDtoANative(Ljcuda/driver/CUarray;ILjcuda/driver/CUdeviceptr;J)I
at jcuda.driver.JCudaDriver.cuMemcpyDtoANative(Native Method)
at jcuda.driver.JCudaDriver.cuMemcpyDtoA(JCudaDriver.java:3308)
at …
Many thanks for any ideas or pointers to what might be wrong.