Problem with cuMemcpyDtoA

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.

Hello

This message ist not specific for cuMemcopyDtoA - it is a very general (and unpleasantly common) error message. Did you see the corresponding FAQ entry? (Note that this is slightly out-dated and will be updated soon, but might serve as a starting point)

bye