InceptText-Tensorflow icon indicating copy to clipboard operation
InceptText-Tensorflow copied to clipboard

make lib wrong

Open 10183308 opened this issue 6 years ago • 16 comments

the info is bellow

4 errors detected in the compilation of "/tmp/tmpxft_0000762e_00000000-6_deform_psroi_pooling_op_gpu.cu.cpp1.ii".

could you help me?

10183308 avatar Sep 18 '18 10:09 10183308

you can follw this one:https://github.com/Zardinality/TF_Deformable_Net,just need to run the lib/make.sh

FakerYFX avatar Sep 19 '18 07:09 FakerYFX

@10183308 I had teh same error ,How do I solve this problem? Thank you . @xieyufei1993

ccnankai avatar Sep 25 '18 08:09 ccnankai

tensorflow's version ==1.4.1

ccnankai avatar Sep 25 '18 08:09 ccnankai

follow this One https://github.com/Zardinality/TF_Deformable_Net

FakerYFX avatar Sep 25 '18 12:09 FakerYFX

@xieyufei1993 [https://github.com/Zardinality/TF_Deformable_Net/issues/20] 10 errors detected in the compilation of "/tmp/tmpxft_00003e41_00000000-7_deform_conv.cu.cpp1.ii". 请问你是怎么解决的?我还是报这个错误,实在搞不懂。

ccnankai avatar Sep 26 '18 06:09 ccnankai

what is your gcc version and python version?

FakerYFX avatar Sep 26 '18 07:09 FakerYFX

我也是遇到这个问题,没有解决掉。

10183308 avatar Sep 26 '18 07:09 10183308

@xieyufei1993
cuda 8.0 cuDNN 5.x gcc version 4.9.2 20150212 (Red Hat 4.9.2-6) (GCC) gcc version 5.3.1 20160406 (Red Hat 5.3.1-6) (GCC) I am learning your code, but I am getting an error during compilation. line 64 in make.sh: nvcc -std=c++11 -c -o deform_psroi_pooling_op.cu.o deform_psroi_pooling_op_gpu.cu.cc
-I $TF_INC -D GOOGLE_CUDA=1 -x cu -Xcompiler -fPIC -D GOOGLE_CUDA -arch=$ARCH If remove -D GOOGLE_CUDA=1 , the compilation can pass,But get errors when running , the file could not be found. can't find deform_psroi_pooling_op.cu.o undefined symbol: _ZTIN10tensorflow8OpKernelE In short, the 64 lines are wrong, I don't know how to change.

ccnankai avatar Sep 26 '18 08:09 ccnankai

just follow this one https://github.com/CharlesShang/TFFRCNN/issues/108

FakerYFX avatar Sep 26 '18 12:09 FakerYFX

@xieyufei1993
Thank you for your advice, I have solved the previous problem ,mainly the latter error : 4 errors detected in the compilation of "/tmp/tmpxft_00005a43_00000000-7_deform_psroi_pooling_op_gpu.cu.cpp1.ii". g++: error: deform_psroi_pooling_op.cu.o: No such file or directory

ccnankai avatar Sep 27 '18 01:09 ccnankai

@ccnankai @10183308 have you solved this problem? i also meet this error...

lqyiii avatar Oct 29 '18 10:10 lqyiii

@ccnankai it bother me serveral days ,i finally solved it by myself ,only need to modify the make.sh file .have you solved the problem, i,d love to share my solution

MrXieJ avatar Nov 06 '18 09:11 MrXieJ

i added this command (--expt-relaxed-constexpr) after which line has nvcc. the error disappear. eg, nvcc -std=c++11 -c -o roi_pooling_op.cu.o roi_pooling_op_gpu.cu.cc
-I $TF_INC -I $NSYNC_INC -D GOOGLE_CUDA=1 -L $CUDA_HOME/lib64 -x cu -Xcompiler -fPIC -D GOOGLE_CUDA -arch=$ARCH --expt-relaxed-constexpr

lqyiii avatar Nov 09 '18 07:11 lqyiii

i added this command (--expt-relaxed-constexpr) after which line has nvcc. the error disappear. eg, nvcc -std=c++11 -c -o roi_pooling_op.cu.o roi_pooling_op_gpu.cu.cc -I $TF_INC -I $NSYNC_INC -D GOOGLE_CUDA=1 -L $CUDA_HOME/lib64 -x cu -Xcompiler -fPIC -D GOOGLE_CUDA -arch=$ARCH --expt-relaxed-constexpr

@lqyiii Even after adding this command (--expt-relaxed-constexpr), at the end of every nvcc, I am still getting the following error:

screenshot from 2018-11-14 11-49-11

aditipanda avatar Nov 14 '18 06:11 aditipanda

@MrXieJ what changes did you do in make.sh?

aditipanda avatar Nov 14 '18 06:11 aditipanda

各位大佬问题都解决了吗,我的也是没有那些个.o文件 @10183308 @xieyufei1993 @ccnankai @lqyiii 按照各位的解决方案试了,也不行

jiangzz1628 avatar Sep 20 '19 07:09 jiangzz1628