Normally when I compile my OpenACC code, I use:
-acc=gpu -gpu=cc##,cuda##.# -Minfo=accel
Today, I tried compiling in a more "default " way as:
When I try this, I get the following error:
nvvmCompileProgram error 9: NVVM_ERROR_COMPILATION.
Error: /tmp/pgacchGi2bva1W-aVx.gpu (51, 23): parse expected comma after load’s type
ptxas /tmp/pgacc3Gi2bLAfQVpGN.ptx, line 1; fatal : Missing .version directive at start of file ‘/tmp/pgacc3Gi2bLAfQVpGN.ptx’
ptxas fatal : Ptx assembly aborted due to errors
NVFORTRAN-F-0155-Compiler failed to translate accelerator region (see -Minfo messages): Device compiler exited with error status code (pot3d.f: 8401)
NVFORTRAN/x86-64 Linux 20.11-0: compilation aborted
make: *** [Makefile:40: pot3d.o] Error 2
I also tried using “-gpu=cc##” and it still fails.
It seems the compile requires the CUDA version to be specified.
I had thought this was an optional flag - is it now required?