mirror of
https://github.com/TREX-CoE/qmckl.git
synced 2024-12-22 20:36:01 +01:00
Fixed configure.ac for GPUs
This commit is contained in:
parent
08f01ece89
commit
f02e761b79
24
configure.ac
24
configure.ac
@ -255,7 +255,17 @@ AS_IF([test "$HAVE_OPENACC_OFFLOAD" = "yes"], [
|
|||||||
CFLAGS="$CFLAGS -fopenacc"
|
CFLAGS="$CFLAGS -fopenacc"
|
||||||
;;
|
;;
|
||||||
*nvc*)
|
*nvc*)
|
||||||
CFLAGS="$CFLAGS -mp -target=gpu"
|
CFLAGS="$CFLAGS -acc -mp -target=gpu"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
case $FC in
|
||||||
|
|
||||||
|
*gfortran*)
|
||||||
|
FCFLAGS="$FCFLAGS -fopenacc"
|
||||||
|
;;
|
||||||
|
*nvfortran*)
|
||||||
|
FCFLAGS="$FCFLAGS -acc -mp -target=gpu"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
@ -271,7 +281,17 @@ AS_IF([test "$HAVE_CUBLAS_OFFLOAD" = "yes"], [
|
|||||||
CFLAGS="$CFLAGS -fopenacc"
|
CFLAGS="$CFLAGS -fopenacc"
|
||||||
;;
|
;;
|
||||||
*nvc*)
|
*nvc*)
|
||||||
CFLAGS="$CFLAGS -mp -target=gpu"
|
CFLAGS="$CFLAGS -acc -mp -target=gpu"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
case $FC in
|
||||||
|
|
||||||
|
*gfortran*)
|
||||||
|
FCFLAGS="$FCFLAGS -fopenacc"
|
||||||
|
;;
|
||||||
|
*nvfortran*)
|
||||||
|
FCFLAGS="$FCFLAGS -acc -mp -target=gpu"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
])
|
])
|
||||||
|
Loading…
Reference in New Issue
Block a user