cuFFT + Fortran worksize definition?

I have a very simple Fortran + openACC code that performs a 3D FFT of a 3D matrix (n x n x n).
In the new plan subroutines (cuFFTmakePlan3D) there is an additional argument (int_t *worksize).
How should be this pointer be defined? I tried as c_ptr but it does not seem to work.

Using the old cuFFTPlan3D (which I guess will be soon deprecated) everything works because this additional argument is not present.

It is an integer(8). FYI, the interfaces are documented here:

https://docs.nvidia.com/hpc-sdk/compilers/fortran-cuda-interfaces/index.html#fft-cufftmakeplan3d

1 Like

Thanks bleback for the clarification and the link.
Now it works.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.