summarylogtreecommitdiffstats
path: root/cuda.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.psmp
parentfb5e7e5023399cc482df708a2006f453bb267bc5 (diff)
downloadaur-686b060913877f06f0909dcd9d52cd7ee6cb04c3.tar.gz
Update for GCC 10
Diffstat (limited to 'cuda.psmp')
-rw-r--r--cuda.psmp25
1 files changed, 13 insertions, 12 deletions
diff --git a/cuda.psmp b/cuda.psmp
index a68ce090532f..6e9754e124b5 100644
--- a/cuda.psmp
+++ b/cuda.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 \
@@ -17,21 +17,22 @@ DFLAGS = -D__FFTW3 \
-D__LIBXC \
-D__SPGLIB \
-D__ACC -D__DBCSR_ACC -D__PW_CUDA
-#
+
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 = -O3 -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 \
@@ -39,9 +40,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 \