Skip to content

Commit c4d1847

Browse files
makefile
1 parent e80aba9 commit c4d1847

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

code/makefile

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
nvcc = /usr/local/cuda-8.0/bin/nvcc
2+
cudalib = /usr/local/cuda-8.0/lib64/
3+
tensorflow = /usr/local/lib/python2.7/dist-packages/tensorflow/include
4+
5+
all: depthestimate/tf_nndistance_so.so depthestimate/render_balls_so.so
6+
.PHONY : all
7+
8+
depthestimate/tf_nndistance_so.so: depthestimate/tf_nndistance_g.cu.o depthestimate/tf_nndistance.cpp
9+
g++ -std=c++11 depthestimate/tf_nndistance.cpp depthestimate/tf_nndistance_g.cu.o -o depthestimate/tf_nndistance_so.so -shared -fPIC -I $(tensorflow) -lcudart -L $(cudalib) -O2 -D_GLIBCXX_USE_CXX11_ABI=0
10+
11+
depthestimate/tf_nndistance_g.cu.o: depthestimate/tf_nndistance_g.cu
12+
$(nvcc) -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11 -c -o depthestimate/tf_nndistance_g.cu.o depthestimate/tf_nndistance_g.cu -I $(tensorflow) -DGOOGLE_CUDA=1 -x cu -Xcompiler -fPIC -O2

0 commit comments

Comments
 (0)