forked from meifeng/GridMini
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.nvcc
40 lines (33 loc) · 1.07 KB
/
Makefile.nvcc
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
GPUARCH=-m64 -gencode arch=compute_70,code=sm_70
MAIN=Benchmark_su3
##PGI
#CXX=pgc++
#CXXFLAGS=-fast --c++14 -mp -Mllvm -Minfo=accel
##Clang
#CXX=clang++
#CXXFLAGS=-std=c++11 -fopenmp -O3 -fopenmp-targets=nvptx64 -lcudart
##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
INCLUDES=-I./
LDFLAGS=
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}.nvcc.x \
-DGEN \
-DGEN_SIMD_WIDTH=16 \
-DHAVE_MALLOC_H \
-DGRID_COMMS_NONE \
-DGRID_DEFAULT_PRECISION_DOUBLE \
-DRNG_RANLUX