caffe-yolov3
caffe-yolov3 copied to clipboard
cmake successful but make failure
Thanks for your code! Following your instruction, I encounter errors when make: just a lot of stuff and I paste some of that:
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/include/stddef.h(432): error: identifier "nullptr" is undefined
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/include/stddef.h(432): error: expected a ";"
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/include/stddef.h(432): error: identifier "nullptr" is undefined
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/include/stddef.h(432): error: expected a ";"
/usr/include/c++/4.8.2/x86_64-redhat-linux/bits/c++config.h(1861): error: expected a ";"
/usr/include/c++/4.8.2/exception(63): error: expected a ";"
/usr/include/c++/4.8.2/exception(68): error: expected a ";"
/usr/include/c++/4.8.2/exception(76): error: expected a ";"
/usr/include/c++/4.8.2/exception(83): error: expected a ";"
/usr/include/c++/4.8.2/exception(93): error: expected a "{"
/usr/include/c++/4.8.2/bits/exception_ptr.h(64): error: function "std::current_exception" returns incomplete type "std::__exception_ptr::exception_ptr"
......
Error limit reached. 100 errors detected in the compilation of "/tmp/tmpxft_00002a9b_00000000-9_blas_kernels.compute_62.cpp1.ii". Compilation terminated. CMake Error at sysDetectSpeed_generated_activation_kernels.cu.o.cmake:264 (message): Error generating file ~/caffe-yolov3/build/CMakeFiles/sysDetectSpeed.dir//./sysDetectSpeed_generated_activation_kernels.cu.o
CMake Error at sysDetectSpeed_generated_blas_kernels.cu.o.cmake:264 (message): Error generating file ~/caffe-yolov3/build/CMakeFiles/sysDetectSpeed.dir//./sysDetectSpeed_generated_blas_kernels.cu.o
make[2]: *** [CMakeFiles/sysDetectSpeed.dir/./sysDetectSpeed_generated_activation_kernels.cu.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: *** [CMakeFiles/sysDetectSpeed.dir/./sysDetectSpeed_generated_blas_kernels.cu.o] Error 1 make[1]: *** [CMakeFiles/sysDetectSpeed.dir/all] Error 2 make: *** [all] Error 2
What should I do with this? Many thx!
Probably I should set something relating to CMake myself but I am not very good at it. Could you give me some suggestions or where I should modify?
The author's code is compiled on TX2,which is aarch64,you should check cmakelists.txt and cmakeprebuild.sh carefully and make some changes
Oh thank you! I am not aware of that at all. But could you explain it a little bit more in detail if possible? Which I should modify and which is not even necessary for a Linux PC? I am really overwhelmed at it. Best regards!
I test some parts of the code and come across the problem relating to CUDA.
In cuda.cpp, when I run the function: float* cuda_make_array(float* x, size_t n) it reports "an illeagal memory access was encountered" error at line: status = cudaMemcpy(x_gpu, x, size, cudaMemcpyHostToDevice);
I've checked that x is accessible but when access x_gpu[0] it reports segmentation fault. What might I check further to find out the devil? Any advice would be greatly appreciated!
Hi, I've got the same problem, have you solved it? Could you please tell me how to modify the cmakelists.txt? Thanks
its may be about the system environment, I have successfully installed this project on centos7 system with GPU 2080ti. Go to https://github.com/passion3394/darknet2caffe_yolov3