Skip to content

Commit 15439b3

Browse files
minor changes
1 parent 2b2a997 commit 15439b3

File tree

6 files changed

+572
-517
lines changed

6 files changed

+572
-517
lines changed

code/evaluate.py

Lines changed: 161 additions & 160 deletions
Large diffs are not rendered by default.

code/evaluate_depth.py

Lines changed: 218 additions & 216 deletions
Large diffs are not rendered by default.

code/makefile

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,27 @@
1+
# nvcc = /usr/local/cuda/bin/nvcc
2+
# cudalib = /usr/local/cuda/lib64/
3+
# tensorflow = /usr/local/lib/python2.7/dist-packages/tensorflow/include
4+
5+
# all: tf_nndistance_so.so
6+
# .PHONY : all
7+
8+
# tf_nndistance_so.so: tf_nndistance_g.cu.o tf_nndistance.cpp
9+
# g++ -std=c++11 tf_nndistance.cpp tf_nndistance_g.cu.o -o tf_nndistance_so.so -shared -fPIC -I $(tensorflow) -lcudart -L $(cudalib) -O2 -D_GLIBCXX_USE_CXX11_ABI=0
10+
11+
# tf_nndistance_g.cu.o: tf_nndistance_g.cu
12+
# $(nvcc) -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11 -c -o tf_nndistance_g.cu.o tf_nndistance_g.cu -I $(tensorflow) -DGOOGLE_CUDA=1 -x cu -Xcompiler -fPIC -O2
13+
14+
115
nvcc = /usr/local/cuda/bin/nvcc
216
cudalib = /usr/local/cuda/lib64/
3-
tensorflow = /usr/local/lib/python2.7/dist-packages/tensorflow/include
17+
tensorflow = /usr/local/lib/python2.7/dist-packages/tensorflow/
18+
#TF_LIB=$(python -c 'import tensorflow as tf; print(tf.sysconfig.get_lib())')
419

520
all: tf_nndistance_so.so
621
.PHONY : all
722

823
tf_nndistance_so.so: tf_nndistance_g.cu.o tf_nndistance.cpp
9-
g++ -std=c++11 tf_nndistance.cpp tf_nndistance_g.cu.o -o tf_nndistance_so.so -shared -fPIC -I $(tensorflow) -lcudart -L $(cudalib) -O2 -D_GLIBCXX_USE_CXX11_ABI=0
24+
g++ -std=c++11 tf_nndistance.cpp tf_nndistance_g.cu.o -o tf_nndistance_so.so -shared -fPIC -I $(tensorflow)/include -lcudart -L $(cudalib) -L $(tensorflow) -ltensorflow_framework -O2 -D_GLIBCXX_USE_CXX11_ABI=0 -I $(tensorflow)/include/external/nsync/public/
1025

1126
tf_nndistance_g.cu.o: tf_nndistance_g.cu
12-
$(nvcc) -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11 -c -o tf_nndistance_g.cu.o tf_nndistance_g.cu -I $(tensorflow) -DGOOGLE_CUDA=1 -x cu -Xcompiler -fPIC -O2
27+
$(nvcc) -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11 -c -o tf_nndistance_g.cu.o tf_nndistance_g.cu -I $(tensorflow)/include -DGOOGLE_CUDA=1 -x cu -Xcompiler -fPIC -O2

0 commit comments

Comments
 (0)