Skip to content

Commit 1253b88

Browse files
author
Panos Achlioptas
committed
mdb
1 parent 56d82f3 commit 1253b88

File tree

2 files changed

+12
-14
lines changed

2 files changed

+12
-14
lines changed

external/structural_losses/makefile

+12
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,24 @@ nvcc = /usr/local/cuda-8.0/bin/nvcc
22
cudalib = /usr/local/cuda-8.0/lib64
33
tensorflow = /orions4-zfs/projects/optas/Virt_Env/tf_1.3/lib/python2.7/site-packages/tensorflow/include
44

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+
516
tf_nndistance_so.so: tf_nndistance_g.cu.o tf_nndistance.cpp
617
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
718

819
tf_nndistance_g.cu.o: tf_nndistance_g.cu
920
$(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
1021

1122
clean:
23+
rm tf_approxmatch_so.so
1224
rm tf_nndistance_so.so
1325
rm *.cu.o

external/structural_losses/makefile_for_approx_match

-14
This file was deleted.

0 commit comments

Comments
 (0)