pointnet2 icon indicating copy to clipboard operation
pointnet2 copied to clipboard

not found tf_sampling_so.so during the training.

Open MrCrazyCrab opened this issue 5 years ago • 6 comments

@charlesq34 Charles R. Qi, i follow your advice to compile the tf, but when i run the program, the software warns me that the tf_sampling_so.so can not be found and the "undefined symbol: _ZN10tensorflow12OpDefBuilder4AttrESs". i'm sure that the progress of compiling the tf is right. i use tensorflow 1.13.1, cuda 10.0, anaconda 10.130 and spyder 3.3.6. Hope for you reply! Thanks!

MrCrazyCrab avatar Aug 14 '19 09:08 MrCrazyCrab

Use below commands and see if it works for you.

/usr/local/cuda/bin/nvcc --gpu-architecture=sm_35 --compiler-options -Wall -I/usr/local/cuda/include -L/usr/local/cuda/lib tf_sampling_g.cu -o tf_sampling_g.cu.o -c -O2 -DGOOGLE_CUDA=1 -x cu -Xcompiler -fPIC -lcusolver -lcurand -lcublas -lcusparse -g

TF_CFLAGS=$(python -c 'import tensorflow as tf; print(" ".join(tf.sysconfig.get_compile_flags()))') TF_LFLAGS=$(python -c 'import tensorflow as tf; print(" ".join(tf.sysconfig.get_link_flags()))')

g++ -std=c++11 -shared tf_sampling.cpp tf_sampling_g.cu.o -o tf_sampling_so.so -fPIC ${TF_CFLAGS[@]} ${TF_LFLAGS[@]} -I /usr/local/cuda/include -lcudart -L /usr/local/cuda/lib -O2 -D_GLIBCXX_USE_CXX11_ABI=0 -lcusolver -g

sheshap avatar Aug 17 '19 04:08 sheshap

Please see if https://github.com/charlesq34/pointnet2/issues/48 solves your problem.

jtx1999 avatar Sep 04 '19 00:09 jtx1999

did you solve the problem

wumingbai avatar Sep 04 '19 09:09 wumingbai

Yes, by removing -D_GLIBCXX_USE_CXX11_ABI=0

jtx1999 avatar Sep 04 '19 16:09 jtx1999

@jtx1999 @sheshappanavar it still won't work when running tensorflow1.13.1. do you know how to slove it?

MrCrazyCrab avatar Nov 15 '19 08:11 MrCrazyCrab

@sheshap Thank you so much for posting the commands, in my case it solved the issue

manishmaruthi avatar Apr 28 '21 13:04 manishmaruthi