zengarden / light_head_rcnn

Light-Head R-CNN
834 stars 222 forks source link

light_head_rcnn/lib/lib_kernel/lib_fast_nms/fast_nms.so: undefined symbol: #31

Open wsycl opened 6 years ago

wsycl commented 6 years ago

@zengarden When I run bash make.sh, I have modified cuda.h in cuda_kernel_helper.h and dso_loader.h. And it is normal. But when I run the test.py, it occurs one problem as follows: image Could you please help me to solve the problem, Thank you very much.

powermano commented 6 years ago

How do you modify the cuda.h?

emedinac commented 6 years ago

I had the same error. I didn't solve it, but i think it's a compilation problem.

bl0 commented 6 years ago

I have the error too.

bl0 commented 6 years ago

After a long time of debugging, I find the solution: Edit the file /src/detection/lib/lib_kernel/lib_fast_nms/make.sh and replace -D_GLIBCXX_USE_CXX11_ABI=0 to -D_GLIBCXX_USE_CXX11_ABI=1 and recompile, the annoying problem disappears.

g++ -std=c++11 -shared -D_GLIBCXX_USE_CXX11_ABI=1 -o fast_nms.so nms_op.cc \
        nms_op.cu.o -I $TF_INC -fPIC -lcudart -L $CUDA_PATH/lib64 -L$TF_LIB -ltensorflow_framework -I$TF_INC/external/nsync/public

35

geonseoks commented 6 years ago

And also check CUDA_PATH in make.sh