cufftXtMemcpy returns 3 ( value not defined by macros)

Hi all,
as stated in the title, i’m trying to call a cufftXtMemcpy function but it returns a value which is not corresponding to any of the cufft macros CUFFT_SUCCESS, CUFFT_INVALID_PLAN, CUFFT_INVALID_VALUE, CUFFT_INTERNAL_ERROR, CUFFT_SETUP_FAILED, CUFFT_INVALID_DEVICE, but the value 3.

Has someone else experienced this?
Here’s my code :

exit_code = cufftXtMemcpy(plan,dstPointer,srcPointer,type);

where dstPointer and srcPointer are both void* pointers.

Any help is appreciated.