Got the compile error:
pgf90 -g -Mcuda -Minfo -c host_subs_m.CUF
nvvmCompileProgram error: 9.
Error: /tmp/pgcudafor5YAR75IbZDJ.gpu (39, 123): parse error: element 1 of struct initializer doesn't match struct element type
PGF90-F-0155-Compiler failed to translate accelerator region (see -Minfo messages): Device compiler exited with error status code (host_subs_m.CUF: 1)
PGF90/x86-64 Linux 14.10-0: compilation aborted
make: *** [host_subs_m.o] Error 2
Here is the file where the error occurs
https://dl.dropboxusercontent.com/u/59996494/host_subs_m.CUF
Here is the nvcc version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2014 NVIDIA Corporation
Built on Thu_Jul_17_21:41:27_CDT_2014
Cuda compilation tools, release 6.5, V6.5.12
and compiler version
pgf90 14.10-0 64-bit target on x86-64 Linux -tp istanbul
The Portland Group - PGI Compilers and Tools
Copyright (c) 2014, NVIDIA CORPORATION. All rights reserved.
Please I will like to know where the error originates froms?
Hi egodfred,
This looks like a compiler problem when generating double precision dwarf (debug) code in the generated device code. I’ve confirmed that the error no longer occurs as of the 15.4 release. You options are to either not use debugging in the CUDA kernel or update to release 15.4.
Hope this helps,
Mat
% pgf90 -g -Mcuda -Minfo -c percision_m.F90 host_subs_m.CUF -V14.10 -tp istanbul-64
percision_m.F90:
host_subs_m.CUF:
nvvmCompileProgram error: 9.
Error: /tmp/pgcudafor6zgUpOTkVye.gpu (39, 123): parse error: element 1 of struct initializer doesn't match struct element type
PGF90-F-0155-Compiler failed to translate accelerator region (see -Minfo messages): Device compiler exited with error status code (host_subs_m.CUF: 1)
PGF90/x86-64 Linux 14.10-0: compilation aborted
% pgf90 -g -Mcuda=nodebug -Minfo -c percision_m.F90 host_subs_m.CUF -V14.10 -tp istanbul-64
percision_m.F90:
host_subs_m.CUF:
% pgf90 -g -Mcuda -Minfo -c percision_m.F90 host_subs_m.CUF -V15.4 -tp istanbul-64
percision_m.F90:
host_subs_m.CUF: