1
0
mirror of https://github.com/TREX-CoE/qmckl.git synced 2024-12-23 12:57:20 +01: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 case $FC in
*ifort*) *ifort*)
FCFLAGS="$FCFLAGS -nofor-main" FCFLAGS="$FCFLAGS -nofor-main -mp -target=gpu"
;; ;;
*nvfortran*) *nvfortran*)
FCFLAGS="$FCFLAGS -fPIC -Mnomain" FCFLAGS="$FCFLAGS -fPIC -Mnomain -mp -target=gpu"
;; ;;
esac esac