Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
*.so
*.swp
*__pycache__*
*.o
11 changes: 11 additions & 0 deletions point-sift.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: point-sift
channels:
- defaults
dependencies:
- pip
- python=3.6.7
- pip:
- h5py
- tensorflow-gpu==1.13.1
prefix: /home/raul/miniconda3/envs/point-sift

8 changes: 6 additions & 2 deletions tf_utils/tf_ops/grouping/tf_grouping_compile.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
#/bin/bash
/usr/local/cuda-8.0/bin/nvcc tf_grouping_g.cu -o tf_grouping_g.cu.o -c -O2 -DGOOGLE_CUDA=1 -x cu -Xcompiler -fPIC
CUDA_PATH=/usr/local/cuda
TF_PATH=~/miniconda3/envs/point-sift/lib/python3.6/site-packages/tensorflow
INCLUDE_PATH=$TF_PATH/include

$CUDA_PATH/bin/nvcc tf_grouping_g.cu -o tf_grouping_g.cu.o -c -O2 -DGOOGLE_CUDA=1 -x cu -Xcompiler -fPIC

# TF1.2
#g++ -std=c++11 tf_grouping.cpp tf_grouping_g.cu.o -o tf_grouping_so.so -shared -fPIC -I /usr/local/lib/python2.7/dist-packages/tensorflow/include -I /usr/local/cuda-8.0/include -lcudart -L /usr/local/cuda-8.0/lib64/ -O2 -D_GLIBCXX_USE_CXX11_ABI=0

# TF1.4
g++ -std=c++11 tf_grouping.cpp tf_grouping_g.cu.o -o tf_grouping_so.so -shared -fPIC -I /home/jmydurant/anaconda3/envs/pointsift/lib/python3.5/site-packages/tensorflow/include -I /usr/local/cuda-8.0/include -I /home/jmydurant/anaconda3/envs/pointsift/lib/python3.5/site-packages/tensorflow/include/external/nsync/public -lcudart -L /usr/local/cuda-8.0/lib64/ -L/home/jmydurant/anaconda3/envs/pointsift/lib/python3.5/site-packages/tensorflow -ltensorflow_framework -O2 -D_GLIBCXX_USE_CXX11_ABI=0
g++ -std=c++11 tf_grouping.cpp tf_grouping_g.cu.o -o tf_grouping_so.so -shared -fPIC -I $INCLUDE_PATH -I $CUDA_PATH/include -I $INCLUDE_PATH/external/nsync/public -lcudart -L $CUDA_PATH/lib64/ -L$TF_PATH -ltensorflow_framework -O2 -D_GLIBCXX_USE_CXX11_ABI=0
7 changes: 6 additions & 1 deletion tf_utils/tf_ops/interpolation/tf_interpolate_compile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,9 @@
#g++ -std=c++11 tf_interpolate.cpp -o tf_interpolate_so.so -shared -fPIC -I /usr/local/lib/python2.7/dist-packages/tensorflow/include -I /usr/local/cuda-8.0/include -lcudart -L /usr/local/cuda-8.0/lib64/ -O2 -D_GLIBCXX_USE_CXX11_ABI=0

# TF1.4
g++ -std=c++11 tf_interpolate.cpp -o tf_interpolate_so.so -shared -fPIC -I /home/jmydurant/anaconda3/envs/pointsift/lib/python3.5/site-packages/tensorflow/include -I /usr/local/cuda-8.0/include -I /home/jmydurant/anaconda3/envs/pointsift/lib/python3.5/site-packages/tensorflow/include/external/nsync/public -lcudart -L /usr/local/cuda-8.0/lib64/ -L/home/jmydurant/anaconda3/envs/pointsift/lib/python3.5/site-packages/tensorflow -ltensorflow_framework -O2 -D_GLIBCXX_USE_CXX11_ABI=0
CUDA_PATH=/usr/local/cuda
TF_PATH=~/miniconda3/envs/point-sift/lib/python3.6/site-packages/tensorflow
INCLUDE_PATH=$TF_PATH/include


g++ -std=c++11 tf_interpolate.cpp -o tf_interpolate_so.so -shared -fPIC -I $INCLUDE_PATH -I $CUDA_PATH/include -I $INCLUDE_PATH/external/nsync/public -lcudart -L $CUDA_PATH/lib64/ -L$TF_PATH -ltensorflow_framework -O2 -D_GLIBCXX_USE_CXX11_ABI=0
Binary file modified tf_utils/tf_ops/interpolation/tf_interpolate_so.so
Binary file not shown.
10 changes: 8 additions & 2 deletions tf_utils/tf_ops/pointSIFT_op/tf_pointSIFT_compile.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
#/bin/bash
/usr/local/cuda-8.0/bin/nvcc pointSIFT.cu -o pointSIFT_g.cu.o -c -O2 -DGOOGLE_CUDA=1 -x cu -Xcompiler -fPIC

CUDA_PATH=/usr/local/cuda
TF_PATH=~/miniconda3/envs/point-sift/lib/python3.6/site-packages/tensorflow
INCLUDE_PATH=$TF_PATH/include


$CUDA_PATH/bin/nvcc pointSIFT.cu -o pointSIFT_g.cu.o -c -O2 -DGOOGLE_CUDA=1 -x cu -Xcompiler -fPIC

# TF1.4
g++ -std=c++11 main.cpp pointSIFT_g.cu.o -o tf_pointSIFT_so.so -shared -fPIC -I /home/jmydurant/anaconda3/envs/pointsift/lib/python3.5/site-packages/tensorflow/include -I /usr/local/cuda-8.0/include -I /home/jmydurant/anaconda3/envs/pointsift/lib/python3.5/site-packages/tensorflow/include/external/nsync/public -lcudart -L /usr/local/cuda-8.0/lib64/ -L/home/jmydurant/anaconda3/envs/pointsift/lib/python3.5/site-packages/tensorflow -ltensorflow_framework -O2 -D_GLIBCXX_USE_CXX11_ABI=0
g++ -std=c++11 main.cpp pointSIFT_g.cu.o -o tf_pointSIFT_so.so -shared -fPIC -I $INCLUDE_PATH -I $CUDA_PATH/include -I $INCLUDE_PATH/external/nsync/public -lcudart -L $CUDA_PATH/lib64/ -L $TF_PATH -ltensorflow_framework -O2 -D_GLIBCXX_USE_CXX11_ABI=0
9 changes: 7 additions & 2 deletions tf_utils/tf_ops/sampling/tf_sampling_compile.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
#/bin/bash
/usr/local/cuda-8.0/bin/nvcc tf_sampling_g.cu -o tf_sampling_g.cu.o -c -O2 -DGOOGLE_CUDA=1 -x cu -Xcompiler -fPIC

CUDA_PATH=/usr/local/cuda
TF_PATH=~/miniconda3/envs/point-sift/lib/python3.6/site-packages/tensorflow
INCLUDE_PATH=$TF_PATH/include

$CUDA_PATH/bin/nvcc tf_sampling_g.cu -o tf_sampling_g.cu.o -c -O2 -DGOOGLE_CUDA=1 -x cu -Xcompiler -fPIC

# TF1.2
#g++ -std=c++11 tf_sampling.cpp tf_sampling_g.cu.o -o tf_sampling_so.so -shared -fPIC -I /usr/local/lib/python2.7/dist-packages/tensorflow/include -I /usr/local/cuda-8.0/include -lcudart -L /usr/local/cuda-8.0/lib64/ -O2 -D_GLIBCXX_USE_CXX11_ABI=0

# TF1.4
g++ -std=c++11 tf_sampling.cpp tf_sampling_g.cu.o -o tf_sampling_so.so -shared -fPIC -I /home/jmydurant/anaconda3/envs/pointsift/lib/python3.5/site-packages/tensorflow/include -I /usr/local/cuda-8.0/include -I /home/jmydurant/anaconda3/envs/pointsift/lib/python3.5/site-packages/tensorflow/include/external/nsync/public -lcudart -L /usr/local/cuda-8.0/lib64/ -L/home/jmydurant/anaconda3/envs/pointsift/lib/python3.5/site-packages/tensorflow -ltensorflow_framework -O2 -D_GLIBCXX_USE_CXX11_ABI=0
g++ -std=c++11 tf_sampling.cpp tf_sampling_g.cu.o -o tf_sampling_so.so -shared -fPIC -I $INCLUDE_PATH -I $CUDA_PATH/include -I $INCLUDE_PATH/external/nsync/public -lcudart -L $CUDA_PATH/lib64/ -L $TF_PATH -ltensorflow_framework -O2 -D_GLIBCXX_USE_CXX11_ABI=0