forked from meifeng/GridMini
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.real
63 lines (53 loc) · 1.79 KB
/
Makefile.real
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
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 -lcudart
#CXXFLAGS+=-DOMPTARGET -DOMPTARGET_MANAGED
##icpx
CXX=icpx
CXXFLAGS=-std=c++14 -O3 -fiopenmp -fopenmp-targets=spir64
CXXFLAGS+=-DOMPTARGET #-DDEBUG
##PGI
#CXX=pgc++
#CXXFLAGS=-fast --c++14 -acc -Mnollvm -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
#CXXFLAGS +=-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}.x \
-DGEN \
-DGEN_SIMD_WIDTH=16 \
-DHAVE_MALLOC_H \
-DGRID_COMMS_NONE \
-DGRID_DEFAULT_PRECISION_DOUBLE \
-DRNG_RANLUX
clean:
rm -v *.x