I am receiving the following error when I compile the code below with the debug (-g) flag. It seems compilation is failing when calling functions like ‘sqrt’ for double precision numbers.
I am compiling on x84-64 Linux with the 14.2.0 pgfortran compiler.
Error:
PGF90-F-0000-Internal compiler error. Unsupported MVDP 4
Code:
module cuda_kernel
use cudafor
contains
attributes(device) double precision function b_sqrt(b)
implicit none
double precision:: b
b_sqrt= sqrt(b)
end function
end module