-
Notifications
You must be signed in to change notification settings - Fork 7
/
nvcc
35 lines (23 loc) · 820 Bytes
/
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
SUFFIXES += .cu
c++WARN =
NVCC_FLAGS = --std=c++17
NVCC_FLAGS += --expt-extended-lambda
NVCC_FLAGS += -O3
NVCC_FLAGS += --use_fast_math
NVCC_FLASG += --generate-line-info
NVCC_FLAGS += -lineinfo
NVCC_FLAGS += --gpu-architecture=compute_86 --gpu-code=sm_86
CC = nvcc $(NVCC_FLAGS)
ptFLAGS = -DNoRepository
c++FLAGS = $(GFLAGS) $(c++WARN) $(c++DBUG) $(ptFLAGS) \
$(LIB_HEADER_DIRS) --compiler-options -fPIC
Ctoo = $(WM_SCHEDULER) $(CC) $(c++FLAGS) -c $< -o $@
cxxtoo = $(Ctoo)
cctoo = $(Ctoo)
cpptoo = $(Ctoo)
cutoo = $(Ctoo)
LINK_LIBS = $(c++DBUG)
LINKLIBSO = $(CC) $(c++FLAGS) -shared \
-Xlinker --add-needed -Xlinker --no-as-needed
LINKEXE = $(CC) $(c++FLAGS) \
-Xlinker --add-needed -Xlinker --no-as-needed