File tree 2 files changed +12
-14
lines changed
external/structural_losses
2 files changed +12
-14
lines changed Original file line number Diff line number Diff line change @@ -2,12 +2,24 @@ nvcc = /usr/local/cuda-8.0/bin/nvcc
2
2
cudalib = /usr/local/cuda-8.0/lib64
3
3
tensorflow = /orions4-zfs/projects/optas/Virt_Env/tf_1.3/lib/python2.7/site-packages/tensorflow/include
4
4
5
+ all : tf_approxmatch_so.so tf_approxmatch_g.cu.o tf_nndistance_so.so tf_nndistance_g.cu.o
6
+
7
+
8
+ tf_approxmatch_so.so : tf_approxmatch_g.cu.o tf_approxmatch.cpp
9
+ g++ -std=c++11 tf_approxmatch.cpp tf_approxmatch_g.cu.o -o tf_approxmatch_so.so -shared -fPIC -I $(tensorflow ) -lcudart -L $(cudalib ) -O2 -D_GLIBCXX_USE_CXX11_ABI=0
10
+
11
+
12
+ tf_approxmatch_g.cu.o : tf_approxmatch_g.cu
13
+ $(nvcc ) -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11 -c -o tf_approxmatch_g.cu.o tf_approxmatch_g.cu -I $(tensorflow ) -DGOOGLE_CUDA=1 -x cu -Xcompiler -fPIC -O2
14
+
15
+
5
16
tf_nndistance_so.so : tf_nndistance_g.cu.o tf_nndistance.cpp
6
17
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
7
18
8
19
tf_nndistance_g.cu.o : tf_nndistance_g.cu
9
20
$(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
10
21
11
22
clean :
23
+ rm tf_approxmatch_so.so
12
24
rm tf_nndistance_so.so
13
25
rm * .cu.o
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments