1
0
mirror of https://github.com/TREX-CoE/qmckl.git synced 2024-07-18 08:53:47 +02:00

Add flags for nvc and nvfortran to support offload

This commit is contained in:
hoffer 2022-04-04 12:41:00 +02:00
parent 7e56b3e2ed
commit 31a05c47e2

View File

@ -201,11 +201,11 @@ AS_IF([test "$BLAS_LIBS" == "$LAPACK_LIBS"], [BLAS_LIBS=""])
case $FC in
*ifort*)
FCFLAGS="$FCFLAGS -nofor-main"
FCFLAGS="$FCFLAGS -nofor-main -mp -target=gpu"
;;
*nvfortran*)
FCFLAGS="$FCFLAGS -fPIC -Mnomain"
FCFLAGS="$FCFLAGS -fPIC -Mnomain -mp -target=gpu"
;;
esac