-
Notifications
You must be signed in to change notification settings - Fork 0
/
Linux-x86-64-gfortran.warn
58 lines (49 loc) · 1.92 KB
/
Linux-x86-64-gfortran.warn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
NVCC = nvcc -D__GNUC_MINOR__=6
CC = gcc
CXX = CC
CPP =
FC = mpif90
LD = mpif90
AR = ar -r
GPUVER = K20X
CPPFLAGS =
CXXFLAGS = -O3 -I${CUDA_PATH}/include -std=c++11 -fopenmp
#https://gcc.gnu.org/onlinedocs/gfortran/Error-and-Warning-Options.html
WFLAGS = -pedantic\
-Wall\
-Waliasing\
-Wampersand\
-Warray-temporaries\
-Wc-binding-type\
-Wcharacter-truncation\
-Wline-truncation\
-Wconversion\
-Wconversion-extra\
-Wextra\
-Wimplicit-interface\
-Wimplicit-procedure\
-Wintrinsics-std\
-Wreal-q-constant\
-Wsurprising\
-Wtabs\
-Wunderflow\
-Wintrinsic-shadow\
-Wunused-dummy-argument\
-Wunused-parameter\
-Walign-commons\
-Wfunction-elimination\
-Wrealloc-lhs\
-Wrealloc-lhs-all\
-Wcompare-reals\
-Wtarget-lifetime\
-Wzerotrip
# not supported by gfortran 4.9.2
# -Wuse-without-only
DFLAGS = -D__LIBINT -D__FFTW3 -D__LIBXC2 -D__ACC -D__DBCSR_ACC -D__PW_CUDA -D__parallel -D__SCALAPACK -D__LIBPEXSI -D__MPI_VERSION=3
FCFLAGS = -fopenmp -I$(CP2KINSTALLDIR)/include -std=f2008 -fimplicit-none -ffree-form -fno-omit-frame-pointer -g -O1 -O3 -march=native $(PROFOPT) $(DFLAGS) $(WFLAGS)
LDFLAGS = -L$(CP2KINSTALLDIR)/lib/ -L/usr/local/cuda/lib64 $(FCFLAGS)
NVFLAGS = $(DFLAGS) -g -O2 -arch sm_35 -arch sm_35 -Xcompiler='-fopenmp' --std=c++11
CFLAGS = $(DFLAGS) -I$(CP2KINSTALLDIR)/include -fno-omit-frame-pointer -g -O1
LIBS = -lxc -lint2 -lpexsi_linux_v0.7.3 -lsuperlu_dist_3.3 -lparmetis -lmetis -lscalapack -lreflapack -lrefblas -lstdc++ -lfftw3 -lfftw3_omp -lcudart -lnvrtc -lcuda -lcufft -lcublas -lrt
FCLOGPIPE = 2> $(notdir $<).warn
#EOF