-
Notifications
You must be signed in to change notification settings - Fork 136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error in compiling cuda code #28
Comments
I have the same issue. It would be great if someone who were able to successfully compile the cuda code post their environment details. I am using: |
@shahdev @sbharadwajj I have successfully compiled with tf1.1 (downloaded with pip), cuda 8.0 and python 2.7. |
@justanhduc can you share the makefile and how you managed to get it to work? |
@shahdev I didn't do anything special besides fixing the CUDA path in the makefile. But I notice that I had to use a fresh clone to make it work, as I tried to compile with Python 3 but it failed, then I removed all the
|
Sorry for bothering you. |
Hi @dwindy. You can check where your nvcc is using |
Hi @justanhduc . Yes, I found it. Thank you! |
I compiled the makefile succesfully
When I run python train_nn.py I get this error:
tensorflow.python.framework.errors_impl.NotFoundError: ./tf_nndistance_so.so: undefined symbol: _ZN10tensorflow12OpDefBuilder5InputESs
I am using a conda environment with python2.7, tensorflow 1.4 and gcc 4.8
This is my makefile:
nvcc = /usr/local/cuda-10.2/bin/nvcc
cudalib = /usr/local/cuda-10.2/lib64/
tensorflow = /home/dpshah2/.conda/envs/PSRNet/lib/python2.7/site-packages/tensorflow/include
tf_lib = /home/dpshah2/.conda/envs/PSRNet/lib/python2.7/site-packages/tensorflow
all: depthestimate/tf_nndistance_so.so depthestimate/render_balls_so.so
.PHONY : all
depthestimate/tf_nndistance_so.so: depthestimate/tf_nndistance_g.cu.o depthestimate/tf_nndistance.cpp$(tensorflow) -ltensorflow_framework -L $ (tf_lib) -O2 -D_GLIBCXX_USE_CXX11_ABI=0
g++ -std=c++11 depthestimate/tf_nndistance.cpp depthestimate/tf_nndistance_g.cu.o -o depthestimate/tf_nndistance_so.so -shared -fPIC -I
depthestimate/tf_nndistance_g.cu.o: depthestimate/tf_nndistance_g.cu
$(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
depthestimate/render_balls_so.so: depthestimate/render_balls_so.cpp
g++ -std=c++11 depthestimate/render_balls_so.cpp -o depthestimate/render_balls_so.so -shared -fPIC -O2 -D_GLIBCXX_USE_CXX11_ABI=0
The text was updated successfully, but these errors were encountered: