-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
16 lines (10 loc) · 1.09 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#DEPENDENCY
#1. glog/logging.h => sudo apt install libgoogle-glog-dev => https://codeyarns.com/tech/2017-10-26-how-to-install-and-use-glog.html#gsc.tab=0
#2. gflags https://github.com/gflags/gflags/blob/master/INSTALL.md
#3.
SRC = ./src/sparse_conv.cu
COMPILED_LIB = ./lib/sparse_conv.so
CAPABILITY = 37
all:
nvcc -arch=sm_52 -gencode=arch=compute_50,code=sm_50 -gencode=arch=compute_52,code=sm_52 -gencode=arch=compute_60,code=sm_60 -gencode=arch=compute_61,code=sm_61 -gencode=arch=compute_70,code=sm_70 -gencode=arch=compute_75,code=sm_75 -gencode=arch=compute_80,code=sm_80 -gencode=arch=compute_80,code=compute_80 -Xptxas "-v -dlcm=ca" -shared -Xcompiler=\"-fPIC\" -o ${COMPILED_LIB} ${SRC} -O2
#nvcc -arch=sm_50 -gencode=arch=compute_50,code=sm_50 -arch=sm_52 -gencode=arch=compute_52,code=sm_52 -gencode=arch=compute_60,code=sm_60 -gencode=arch=compute_61,code=sm_61 -gencode=arch=compute_70,code=sm_70 -gencode=arch=compute_75,code=sm_75 -gencode=arch=compute_80,code=sm_80 -gencode=arch=compute_80,code=compute_80 -Xptxas "-v -dlcm=ca" -shared -Xcompiler=\"-fPIC\" -o ${COMPILED_LIB} ${SRC}