-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile.acc
56 lines (47 loc) · 1.62 KB
/
Makefile.acc
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
GPUARCH=-m64 -gencode arch=compute_70,code=sm_70
#MAIN=Benchmark_REAL
MAIN=Benchmark_su3
##xlC
#CXX=xlC_r
#CXXFLAGS=-qsmp=omp -qoffload -Ofast -std=c++11
##PGI
CXX=pgc++
CXXFLAGS=-fast --c++14 -acc -Mllvm -Minfo=accel -ta=tesla:cc70,managed -Mlarge_arrays --no_exceptions
##Clang
#CXX=clang++
#CXXFLAGS=-std=c++14 -g -fopenmp -fopenmp-cuda-mode -O3 -fopenmp-targets=nvptx64-nvidia-cuda -lcudart
#CXXFLAGS += -DOMPTARGET -DOMPTARGET_MANAGED
#CXXFLAGS += -DVECTOR_LOOPS
#CXXFLAGS += -DDEBUG
##NVCC
#CXX=nvcc
#CXXFLAGS=--x cu ${GPUARCH} -I. -ccbin g++ -rdc=true --expt-extended-lambda --expt-relaxed-constexpr -std=c++14
##GCC
#CXX=g++
#CXXFLAGS=-std=c++14 -O3 -fopenmp -foffload=nvptx-none -DOMPTARGET -DOMPTARGET_MANAGED -DDEBUG -lcudart
##CRAY CCE
#CXX=CC
#CXXFLAGS=-std=c++14 -fopenmp -fopenmp-targets=nvptx64 -Xopenmp-target -march=sm_70
#CXXFLAGS += -DOMPTARGET -DOMPTARGET_MANAGED
#CXXFLAGS += -DDEBUG
INCLUDES=-I./ -I${CUDA_ROOT}/include
LDFLAGS=-L${CUDA_ROOT}/lib64
all:
$(CXX) $(CXXFLAGS) $(INCLUDES) $(LDFLAGS) \
benchmarks/${MAIN}.cc \
Grid/util/Init.cc \
Grid/communicator/SharedMemory.cc \
Grid/communicator/SharedMemoryNone.cc \
Grid/allocator/AlignedAllocator.cc \
Grid/communicator/Communicator_base.cc \
Grid/communicator/Communicator_none.cc \
Grid/log/Log.cc \
-o ${MAIN}.acc.x \
-DGEN \
-DGEN_SIMD_WIDTH=16 \
-DHAVE_MALLOC_H \
-DGRID_COMMS_NONE \
-DGRID_DEFAULT_PRECISION_DOUBLE \
-DRNG_RANLUX
clean:
rm -v *.x