pgf95 acc nvvmCompileProgram error: 9 compiles in debug

I have a Fortran program that compiles in debug mode but fails to compile in normal mode using acc directives.

I get the following error when I remove the debug flag:

nvvmCompileProgram error: 9.
Error: procpsub.n001.gpu (9370, 31): parse ‘%li982’ defined with type ‘i64’
PGF90-F-0155-Compiler failed to translate accelerator region (see -Minfo messages): Device compiler exited with error status code (procpsub.F: 1)
PGF90/x86-64 Linux 17.3-0: compilation aborted

This fails in both 17.3 and 17.4

Hi Richard,

This looks like a back-end LLVM code generation issue. Can you please post or send a reproducing example to PGI Customer Service (trs@pgroup.com) so we can take a look?

I do see another report with a similar error (TPR#24293) that was fixed in PGI 17.7 so your error might have been fixed already, but it would great if you can send us the code so we can confirm. Or if you can, try testing against PGI 17.7 or 17.9,

As a work around, you can try compiling without LLVM via the flag “-ta=tesla:nollvm”.

Thanks,
Mat