Strange nvfortran 22.3 error

If I try to compile:

# 1 "foo.f90"
module foo

  character, parameter :: a(2) = 'A'
end module foo

with the command:

nvfortran -g -cpp -acc -c fail.f90

I get the message:

nvvmCompileProgram error 9: NVVM_ERROR_COMPILATION.
Error: /tmp/pgacczWfJglDzwHx8v.gpu (47, 27): parse missing required field 'scope'
NVFORTRAN-F-0155-Compiler failed to translate accelerator region (see -Minfo messages): Device compiler exited with error status code (fail.f90: 1)
NVFORTRAN/x86-64 Linux 22.3-0: compilation aborted

subtle modifications of the source file make this go away.

Hi Paul,

That is an odd one.

Looking at the generated GPU code (via -gpu=keep), it looks like the debug metadata info is missing the file name when the # 1 “foo.f90” line is included. This should fill in the file name with the name in quotes.

I’ve filed a problem report, TPR #31801, and sent it to engineering for investigation.

-Mat

Hi Paul,

TPR #31801 was fixed in the 22.5 release.

-Mat

1 Like

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