-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile.include.vasp5.4.4
87 lines (66 loc) · 2.66 KB
/
makefile.include.vasp5.4.4
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# Precompiler options
CPP_OPTIONS= -DHOST=\"LinuxGNU\" \
-DMPI -DMPI_BLOCK=8000 \
-Duse_collective \
-DscaLAPACK \
-DCACHE_SIZE=4000 \
-Davoidalloc \
-Duse_bse_te \
-Dtbdyn \
-Duse_shmem
CPP = gcc -E -P -w $*$(FUFFIX) >$*$(SUFFIX) $(CPP_OPTIONS)
FC = /usr/bin/mpif90
FCL = /usr/bin/mpif90
FREE = -ffree-form -ffree-line-length-none
FFLAGS = -w
OFLAG = -O1
OFLAG_IN = $(OFLAG)
DEBUG = -O0
#LIBDIR = /opt/gfortran/libs/
LIBDR = /usr/lib
LIBDIR = /data/programs/lapack-3.5.0
LIBDIR2 = /data/programs/scalapack-2.0.2
BLAS = -L$(LIBDR) -lrefblas
LAPACK = -L$(LIBDIR) -ltmglib -llapack
BLACS =
SCALAPACK = -L$(LIBDIR2) -lscalapack $(BLACS)
LLIBS = $(SCALAPACK) $(LAPACK) $(BLAS)
#FFTW ?= /opt/gfortran/fftw-3.3.4-GCC-5.4.1
FFTW = /usr
LLIBS += -L$(FFTW)/lib/x86_64-linux-gnu -lfftw3
INCS = -I$(FFTW)/include
OBJECTS = fftmpiw.o fftmpi_map.o fftw3d.o fft3dlib.o
OBJECTS_O1 += fftw3d.o fftmpi.o fftmpiw.o
OBJECTS_O2 += fft3dlib.o
18,0-1 Top
# For what used to be vasp.5.lib
CPP_LIB = $(CPP)
FC_LIB = $(FC)
CC_LIB = gcc
CFLAGS_LIB = -O
FFLAGS_LIB = -O1
FREE_LIB = $(FREE)
OBJECTS_LIB= linpack_double.o getshmem.o
# For the parser library
CXX_PARS = g++
LIBS += parser
LLIBS += -Lparser -lparser -lstdc++
# Normally no need to change this
SRCDIR = ../../src
BINDIR = ../../bin
#================================================
# GPU Stuff
CPP_GPU = -DCUDA_GPU -DRPROMU_CPROJ_OVERLAP -DCUFFT_MIN=28 -UscaLAPACK # -DUSE_PINNED_MEMORY
OBJECTS_GPU= fftmpiw.o fftmpi_map.o fft3dlib.o fftw3d_gpu.o fftmpiw_gpu.o
CC = /usr/bin/gcc
CXX = /usr/bin/g++
CFLAGS = -fPIC -DADD_ -openmp -DMAGMA_WITH_MKL -DMAGMA_SETAFFINITY -DGPUSHMEM=300 -DHAVE_CUBLAS
CUDA_ROOT ?= /usr/local/cuda
NVCC := $(CUDA_ROOT)/bin/nvcc
CUDA_LIB := -L$(CUDA_ROOT)/lib64 -lnvToolsExt -lcudart -lcuda -lcufft -lcublas
GENCODE_ARCH := -gencode=arch=compute_30,code=\"sm_30,compute_30\" \
-gencode=arch=compute_35,code=\"sm_35,compute_35\" \
-gencode=arch=compute_60,code=\"sm_60,compute_60\"
#MPI_INC = /opt/gfortran/openmpi-1.10.2/install/ompi-1.10.2-GFORTRAN-5.4.1/include
MPI_INC = /usr/lib/openmpi/include
85,1 Bot