Command 19 Compiler Error

I am trying to a do a simple build of the cufft module described here(CUDA Musing: Calling CUFFT from Cuda Fortran) with PVF but get this error which doesn’t tell me the exact problem.

Any ideas? Thx.

Compiling Project …

…\fft2d\cufft.f90

c:\program files\pgi\win64\11.10\bin\pgfortran.exe -Hx,123,8 -Hx,123,0x40000 -Hx,0,0x40000000 -Mx,0,0x40000000 -Hx,0,0x20000000 -g -Bstatic -Mbackslash -Mfree -I"c:\program files\pgi\win64\11.10\include" -I"C:\Program Files\PGI\Microsoft Open Tools 10\include" -I"C:\Program Files\PGI\Microsoft Open Tools 10\PlatformSDK\include" -Minform=warn -module “x64\Debug” -o “x64\Debug\cufft.obj” -c “C:\projects\fft_tests\fft2d\cufft.f90”

Command exit code: 19

Command output: [PGF90/x86-64 Windows 11.10-0: compilation aborted ]

Hi GeeWhiz,

Error 19 means that your missing a module file dependency. The message should show up in the Output or Error Windows. Most likely you’re missing the “precision” module which Mass references in this code but defines it in another of his articles.

module precision
! Precision control

integer, parameter, public :: Single = kind(0.0) ! Single precision
integer, parameter, public :: Double = kind(0.0d0) ! Double precision

integer, parameter, public :: fp_kind = Double
!integer, parameter, public :: fp_kind = Single

end module precision

Note that since this code uses CUDA Fortran language extensions, you need to change your project’s Fortran language properties.

Hope this helps,
Mat