NVFORTRAN Compiler Error (HPC SDK 20.9)

Hello,

I am using HPC SDK 20.9 compiling code with NVFORTRAN. I am getting the following error:

NVFORTRAN-S-0155-Compiler failed to translate accelerator region (see -Minfo messages): Unknown variable reference (mycode.for: 2919)
ludcmp:
2903, Generating acc routine seq
Generating Tesla code
NVFORTRAN-F-0704-Compilation aborted due to previous errors. (mycode.for)
NVFORTRAN/x86-64 Linux 20.9-0: compilation aborted

where line 2918/2919 is:

d=1.
do 12 i=1,n

I was able to compile the code a few weeks ago, so I am not sure why I am getting this error now.

Hi eb1064,

Unfortunately, this is a very generic error so is difficult to tell what’s going on. Can you provide minimal reproducing example which recreates the error so I can investigate?

Thanks,
Mat