-
Notifications
You must be signed in to change notification settings - Fork 7.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OpenPose Build/Compilation Error #1753
Comments
Could you show me the CMake configuration? (that shows CUDA version, GPU arch, etc). |
@gineshidalgo99 This is the output of configuration: GCC detected, adding compile flags Caffe will be built from source now. |
"Automatic GPU detection failed. Building for all known architectures." --> This is the issue, it should automatically find your GPU! In your command-line terminal, what is the output of |
@gineshidalgo99 I had Ubuntu 18.04 and due to a crash in the Nvidia graphics driver, I reinstalled Ubuntu 20.04 instead of it. Now I am trying to install OpenPose again, but I don't know how to install Cuda 11.1 as it is compatible with Ubuntu 20.04. Whenever I try to install Cuda 11.1 toolkit from Nvidia website, it doesn't allow me and shows this error in var/log/cuda-installer.log [INFO]: Driver installation detected by command: apt list --installed | grep -e nvidia-driver-[0-9][0-9][0-9] -e nvidia-[0-9][0-9][0-9] [INFO]: gcc version: gcc version 9.3.0 (Ubuntu 9.3.0-17ubuntu1~20.04) [INFO]: Initializing menu Which version of Cuda and cuDNN should I install? Here is the output of nvidia-smi and nvcc --version: It shows I have Cuda 10.1 already but there is no cuda file in usr/local |
Just FYI: What I did to solve this problem was to add the argument |
I have checked with @dosadadev 's solution ,but it does not work in my case. This is my workaround within docker. I am using cuda 10 so I have to disable the support of AMPERE
|
Thank you, this is my solution based on your problem.
|
I have the same issue and how to reslove this problem |
mkdir: cannot create directory ‘build’: File exists CMake Deprecation Warning at CMakeLists.txt:34 (cmake_minimum_required): Update the VERSION argument value or use a ... suffix to tell -- GCC detected, adding compile flags This warning is for project developers. Use -Wno-dev to suppress it. -- Building with CUDA. This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at cmake/Cuda.cmake:282 (find_package): Call Stack (most recent call first): -- CUDA detected: 12.2 Update the VERSION argument value or use a ... suffix to tell CMake Warning (dev) at cmake/Misc.cmake:32 (set): -- Found gflags (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libgflags.so) Call Stack (most recent call first): -- CUDA detected: 12.2
|
I have an issue building OpenPose in build directory with command: make -j
nproc
, even after successful configuration and generation in CMake and cloning of Caffe in 3rd party directory.The following output appears in the terminal:
[ 12%] Performing build step for 'openpose_lib'
[ 1%] Built target caffeproto
[ 1%] Building NVCC (Device) object src/caffe/CMakeFiles/cuda_compile_1.dir/layers/cuda_compile_1_generated_absval_layer.cu.o
[ 2%] Building NVCC (Device) object src/caffe/CMakeFiles/cuda_compile_1.dir/layers/cuda_compile_1_generated_accuracy_layer.cu.o
[ 2%] Building NVCC (Device) object src/caffe/CMakeFiles/cuda_compile_1.dir/layers/cuda_compile_1_generated_base_data_layer.cu.o
[ 2%] Building NVCC (Device) object src/caffe/CMakeFiles/cuda_compile_1.dir/layers/cuda_compile_1_generated_batch_norm_layer.cu.o
[ 2%] Building NVCC (Device) object src/caffe/CMakeFiles/cuda_compile_1.dir/util/cuda_compile_1_generated_math_functions.cu.o
[ 2%] Building NVCC (Device) object src/caffe/CMakeFiles/cuda_compile_1.dir/layers/cuda_compile_1_generated_bnll_layer.cu.o
[ 4%] Building NVCC (Device) object src/caffe/CMakeFiles/cuda_compile_1.dir/layers/cuda_compile_1_generated_bias_layer.cu.o
[ 4%] Building NVCC (Device) object src/caffe/CMakeFiles/cuda_compile_1.dir/layers/cuda_compile_1_generated_batch_reindex_layer.cu.o
nvcc fatal : Unsupported gpu architecture 'compute_80'
nvcc fatal : Unsupported gpu architecture 'compute_80'
CMake Error at cuda_compile_1_generated_base_data_layer.cu.o.Release.cmake:220 (message):
Error generating
/home/hisham246/openpose/build/caffe/src/openpose_lib-build/src/caffe/CMakeFiles/cuda_compile_1.dir/layers/./cuda_compile_1_generated_base_data_layer.cu.o
nvcc fatal : Unsupported gpu architecture 'compute_80'
CMake Error at cuda_compile_1_generated_absval_layer.cu.o.Release.cmake:220 (message):
Error generating
/home/hisham246/openpose/build/caffe/src/openpose_lib-build/src/caffe/CMakeFiles/cuda_compile_1.dir/layers/./cuda_compile_1_generated_absval_layer.cu.o
CMake Error at cuda_compile_1_generated_math_functions.cu.o.Release.cmake:220 (message):
Error generating
/home/hisham246/openpose/build/caffe/src/openpose_lib-build/src/caffe/CMakeFiles/cuda_compile_1.dir/util/./cuda_compile_1_generated_math_functions.cu.o
src/caffe/CMakeFiles/caffe.dir/build.make:96: recipe for target 'src/caffe/CMakeFiles/cuda_compile_1.dir/layers/cuda_compile_1_generated_base_data_layer.cu.o' failed
make[5]: *** [src/caffe/CMakeFiles/cuda_compile_1.dir/layers/cuda_compile_1_generated_base_data_layer.cu.o] Error 1
make[5]: *** Waiting for unfinished jobs....
src/caffe/CMakeFiles/caffe.dir/build.make:82: recipe for target 'src/caffe/CMakeFiles/cuda_compile_1.dir/layers/cuda_compile_1_generated_absval_layer.cu.o' failed
make[5]: *** [src/caffe/CMakeFiles/cuda_compile_1.dir/layers/cuda_compile_1_generated_absval_layer.cu.o] Error 1
src/caffe/CMakeFiles/caffe.dir/build.make:516: recipe for target 'src/caffe/CMakeFiles/cuda_compile_1.dir/util/cuda_compile_1_generated_math_functions.cu.o' failed
make[5]: *** [src/caffe/CMakeFiles/cuda_compile_1.dir/util/cuda_compile_1_generated_math_functions.cu.o] Error 1
nvcc fatal : Unsupported gpu architecture 'compute_80'
nvcc fatal : Unsupported gpu architecture 'compute_80'
CMake Error at cuda_compile_1_generated_batch_norm_layer.cu.o.Release.cmake:220 (message):
Error generating
/home/hisham246/openpose/build/caffe/src/openpose_lib-build/src/caffe/CMakeFiles/cuda_compile_1.dir/layers/./cuda_compile_1_generated_batch_norm_layer.cu.o
CMake Error at cuda_compile_1_generated_bias_layer.cu.o.Release.cmake:220 (message):
Error generating
/home/hisham246/openpose/build/caffe/src/openpose_lib-build/src/caffe/CMakeFiles/cuda_compile_1.dir/layers/./cuda_compile_1_generated_bias_layer.cu.o
nvcc fatal : Unsupported gpu architecture 'compute_80'
src/caffe/CMakeFiles/caffe.dir/build.make:103: recipe for target 'src/caffe/CMakeFiles/cuda_compile_1.dir/layers/cuda_compile_1_generated_batch_norm_layer.cu.o' failed
make[5]: *** [src/caffe/CMakeFiles/cuda_compile_1.dir/layers/cuda_compile_1_generated_batch_norm_layer.cu.o] Error 1
src/caffe/CMakeFiles/caffe.dir/build.make:117: recipe for target 'src/caffe/CMakeFiles/cuda_compile_1.dir/layers/cuda_compile_1_generated_bias_layer.cu.o' failed
make[5]: *** [src/caffe/CMakeFiles/cuda_compile_1.dir/layers/cuda_compile_1_generated_bias_layer.cu.o] Error 1
CMake Error at cuda_compile_1_generated_accuracy_layer.cu.o.Release.cmake:220 (message):
Error generating
/home/hisham246/openpose/build/caffe/src/openpose_lib-build/src/caffe/CMakeFiles/cuda_compile_1.dir/layers/./cuda_compile_1_generated_accuracy_layer.cu.o
src/caffe/CMakeFiles/caffe.dir/build.make:89: recipe for target 'src/caffe/CMakeFiles/cuda_compile_1.dir/layers/cuda_compile_1_generated_accuracy_layer.cu.o' failed
make[5]: *** [src/caffe/CMakeFiles/cuda_compile_1.dir/layers/cuda_compile_1_generated_accuracy_layer.cu.o] Error 1
nvcc fatal : Unsupported gpu architecture 'compute_80'
CMake Error at cuda_compile_1_generated_bnll_layer.cu.o.Release.cmake:220 (message):
Error generating
/home/hisham246/openpose/build/caffe/src/openpose_lib-build/src/caffe/CMakeFiles/cuda_compile_1.dir/layers/./cuda_compile_1_generated_bnll_layer.cu.o
nvcc fatal : Unsupported gpu architecture 'compute_80'
src/caffe/CMakeFiles/caffe.dir/build.make:124: recipe for target 'src/caffe/CMakeFiles/cuda_compile_1.dir/layers/cuda_compile_1_generated_bnll_layer.cu.o' failed
make[5]: *** [src/caffe/CMakeFiles/cuda_compile_1.dir/layers/cuda_compile_1_generated_bnll_layer.cu.o] Error 1
CMake Error at cuda_compile_1_generated_batch_reindex_layer.cu.o.Release.cmake:220 (message):
Error generating
/home/hisham246/openpose/build/caffe/src/openpose_lib-build/src/caffe/CMakeFiles/cuda_compile_1.dir/layers/./cuda_compile_1_generated_batch_reindex_layer.cu.o
src/caffe/CMakeFiles/caffe.dir/build.make:110: recipe for target 'src/caffe/CMakeFiles/cuda_compile_1.dir/layers/cuda_compile_1_generated_batch_reindex_layer.cu.o' failed
make[5]: *** [src/caffe/CMakeFiles/cuda_compile_1.dir/layers/cuda_compile_1_generated_batch_reindex_layer.cu.o] Error 1
CMakeFiles/Makefile2:390: recipe for target 'src/caffe/CMakeFiles/caffe.dir/all' failed
make[4]: *** [src/caffe/CMakeFiles/caffe.dir/all] Error 2
Makefile:148: recipe for target 'all' failed
make[3]: *** [all] Error 2
CMakeFiles/openpose_lib.dir/build.make:129: recipe for target 'caffe/src/openpose_lib-stamp/openpose_lib-build' failed
make[2]: *** [caffe/src/openpose_lib-stamp/openpose_lib-build] Error 2
CMakeFiles/Makefile2:94: recipe for target 'CMakeFiles/openpose_lib.dir/all' failed
make[1]: *** [CMakeFiles/openpose_lib.dir/all] Error 2
Makefile:102: recipe for target 'all' failed
make: *** [all] Error 2
How to fix it and compile OpenPose?
Details:
OS: Ubuntu 18.04
GPU: Nvidia Geforce MX150
CUDA 10.1
cuDNN 7.5.1
CMake 3.18.4
OpenCV 3.2
The text was updated successfully, but these errors were encountered: