Closed emedinac closed 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
it worked, thanks. Also, I recommend working in root mode, because I initially installed TF using Conda.
@bl0 hello, your solution worked, Thanks! Can you account for it?
I just search on the issue page of Tensorflow. The following page may help: https://github.com/tensorflow/tensorflow/issues/20899#issuecomment-408264523
@bl0 Thanks!
Hi, I tried to compile this code using two GPUs V100 using sm_70 and I'm getting this warning during compiling and this error when I run the test.py:
Also, when I use -arch=compute_60 -code=sm_70, I got this warning during compiling and the same error when I run the test.py:
The lines to be compiled are: