caffe icon indicating copy to clipboard operation
caffe copied to clipboard

cuda_compile_1_generated_math_functions.cu.o error

Open femifapo opened this issue 5 years ago • 1 comments

#6392 Issue summary I am unable to complete the openpose build because of the caffe math_functions error.

Initial error message below-> CMake Error at cuda_compile_1_generated_math_functions.cu.o.Release.cmake:280 (message): Error generating file /home//software/openpose/3rdparty/caffe/build/src/caffe/CMakeFiles/cuda_compile_1.dir/util/./cuda_compile_1_generated_math_functions.cu.o

Steps to reproduce

After the installation of all required dependencies (cuda,cuDNN,protobu,cmake GUI,OpenCV) for openpose . During the caffe installation, I ran "~/software/openpose/3rdparty/caffe/build$ cmake .." and "~/software/openpose/3rdparty/caffe/build$ make -j'nproc'"

Tried solutions

I tried to fix using the "Replace math_functions.h with cuda_runtime.h to remove CUDA compile w… #6681" but that didn't fix it. Infact, I got more errors.

Error limit reached. 100 errors detected in the compilation of "/tmp/tmpxft_00001fb6_00000000-10_math_functions.compute_61.cpp1.ii". Compilation terminated. CMake Error at cuda_compile_1_generated_math_functions.cu.o.Release.cmake:280 (message): Error generating file /home//software/openpose/3rdparty/caffe/build/src/caffe/CMakeFiles/cuda_compile_1.dir/util/./cuda_compile_1_generated_math_functions.cu.o

src/caffe/CMakeFiles/caffe.dir/build.make:517: recipe for target 'src/caffe/CMakeFiles/cuda_compile_1.dir/util/cuda_compile_1_generated_math_functions.cu.o' failed make[2]: *** [src/caffe/CMakeFiles/cuda_compile_1.dir/util/cuda_compile_1_generated_math_functions.cu.o] Error 1 CMakeFiles/Makefile2:420: recipe for target 'src/caffe/CMakeFiles/caffe.dir/all' failed make[1]: *** [src/caffe/CMakeFiles/caffe.dir/all] Error 2 Makefile:149: recipe for target 'all' failed make: *** [all] Error 2

System configuration

  • Operating system: Ubuntu 18.04
  • Compiler: cmake
  • CUDA version (if applicable): 10.2.89
  • CUDNN version (if applicable): ver. 7.6.5
  • BLAS: Atlas
  • Python version (if using pycaffe):
  • MATLAB version (if using matcaffe):

Issue checklist

  • [x] read the guidelines and removed the first paragraph
  • [x] written a short summary and detailed steps to reproduce
  • [x] explained how solutions to related problems failed (tick if found none)
  • [x] filled system configuration
  • [x] attached relevant logs/config files (tick if not applicable)

femifapo avatar Jun 18 '20 06:06 femifapo

Hey @femifapo, I'm facing the same issue, did you find how to fix it?

Remi-Tortue avatar Jul 11 '24 12:07 Remi-Tortue