summarylogtreecommitdiffstats
path: root/cuda_plumed.psmp
diff options
context:
space:
mode:
authora.kudelin2020-08-24 09:34:33 +0300
committera.kudelin2020-08-24 09:34:33 +0300
commit686b060913877f06f0909dcd9d52cd7ee6cb04c3 (patch)
treebec0a1bc8633cef9eacf298beb0d9748ca43b839 /cuda_plumed.psmp
parentfb5e7e5023399cc482df708a2006f453bb267bc5 (diff)
downloadaur-686b060913877f06f0909dcd9d52cd7ee6cb04c3.tar.gz
Update for GCC 10
Diffstat (limited to 'cuda_plumed.psmp')
-rw-r--r--cuda_plumed.psmp27
1 files changed, 14 insertions, 13 deletions
diff --git a/cuda_plumed.psmp b/cuda_plumed.psmp
index 96b3174d250c..31a036ec791e 100644
--- a/cuda_plumed.psmp
+++ b/cuda_plumed.psmp
@@ -3,12 +3,12 @@ CXX = g++
CPP =
FC = mpifort
LD = mpifort
-#
+
NVCC = nvcc
-GPUVER = K20X
-#
+GPUVER = $(_gpuver)
+
AR = ar -r
-#
+
DFLAGS = -D__FFTW3 \
-D__LIBINT \
-D__parallel -D__SCALAPACK \
@@ -18,21 +18,22 @@ DFLAGS = -D__FFTW3 \
-D__SPGLIB \
-D__ACC -D__DBCSR_ACC -D__PW_CUDA \
-D__PLUMED2
-#
+
INCS = -I/usr/include \
-I/usr/include/elpa_openmp-$(_elpaver)/elpa \
-I/usr/include/elpa_openmp-$(_elpaver)/modules \
-I/opt/cuda/include
-#
-OPTFLAGS = -O3 -march=native -fopenmp -ftree-vectorize
-#
+
+OPTFLAGS = -O2 -march=native -fopenmp
+
CFLAGS = $(DFLAGS) $(INCS) $(OPTFLAGS)
CXXFLAGS = $(DFLAGS) $(INCS) $(OPTFLAGS) -std=c++11
CPPFLAGS =
FCFLAGS = $(DFLAGS) $(INCS) $(OPTFLAGS) \
- -ffree-form -ffree-line-length-none
+ -ffree-form -ffree-line-length-none \
+ -fallow-argument-mismatch \
+ -fno-tree-loop-vectorize
NVFLAGS = $(DFLAGS) -O3 -Xcompiler="-fopenmp" \
- -gencode arch=compute_30,code=sm_30 \
-gencode arch=compute_35,code=sm_35 \
-gencode arch=compute_37,code=sm_37 \
-gencode arch=compute_50,code=sm_50 \
@@ -40,9 +41,9 @@ NVFLAGS = $(DFLAGS) -O3 -Xcompiler="-fopenmp" \
-gencode arch=compute_61,code=sm_61 \
-gencode arch=compute_70,code=sm_70 \
-gencode arch=compute_75,code=sm_75
-#
+
LDFLAGS = $(FCFLAGS)
-#
+
LIBS = -L/opt/cuda/lib64 -lcudart -lcuda \
-lcublas -lcufft -lrt -lnvrtc \
-lxsmmf -lxsmm \
@@ -53,5 +54,5 @@ LIBS = -L/opt/cuda/lib64 -lcudart -lcuda \
-lsymspg \
-l$(_plumed) \
-lstdc++ -lpthread -lm -ldl -lz
-#
+
include /usr/lib/$(_plumed)/src/lib/Plumed.inc