I have recently had to re-install cuda and pgf90, and since then Im getting a runtime error when compiling with -static-nvidia. I need to compile with -static in order to run on remote machine which has the GPUs that Im using. However it runs fine (locally) without the -static-nvidia flag.
nvfortran -static-nvidia -acc=multicore -O3 -o ufo-cartes-multi ufo-cartes-25.for
-bash: ./ufo-cartes-multi: cannot execute binary file: Exec format error
$ ldd ./ufo-cartes-multi
linux-vdso.so.1 (0x00007fffc7743000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f7b74270000)
/lib64/ld-linux-x86-64.so.2 (0x00007f7b744b0000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f7b74250000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f7b74160000)