light_head_rcnn icon indicating copy to clipboard operation
light_head_rcnn copied to clipboard

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

Open wsycl opened this issue 7 years ago • 5 comments

@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.

wsycl avatar Jun 18 '18 02:06 wsycl

How do you modify the cuda.h?

powermano avatar Jun 20 '18 08:06 powermano

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

emedinac avatar Jun 27 '18 18:06 emedinac

I have the error too.

bl0 avatar Jul 02 '18 06:07 bl0

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

bl0 avatar Jul 02 '18 07:07 bl0

And also check CUDA_PATH in make.sh

geonseoks avatar Jul 16 '18 07:07 geonseoks