openpose icon indicating copy to clipboard operation
openpose copied to clipboard

OpenPose Build/Compilation error

Open azamjon-xusanov opened this issue 5 months ago • 0 comments

I have an issue building OpenPose in build directory with command: make -jnproc, even after successful configuration and generation in CMake The following output appears in the terminal:

make[5]: *** [src/caffe/CMakeFiles/caffe.dir/build.make:3596: src/caffe/CMakeFiles/cuda_compile_1.dir/layers/cuda_compile_1_generated_bnll_layer.cu.o] Error 1 /usr/include/c++/11/bits/std_function.h:435:145: error: parameter packs not expanded with ‘...’: 435 | function(_Functor&& __f) | ^ /usr/include/c++/11/bits/std_function.h:435:145: note: ‘_ArgTypes’ /usr/include/c++/11/bits/std_function.h:530:146: error: parameter packs not expanded with ‘...’: 530 | operator=(_Functor&& __f) | ^ /usr/include/c++/11/bits/std_function.h:530:146: note: ‘_ArgTypes’ /home/azamjon/snap/snapd-desktop-integration/253/Documents/sky-metrics-ai/openpose/3rdparty/caffe/include/caffe/util/cudnn.hpp: In function ‘const char* cudnnGetErrorString(cudnnStatus_t)’: /home/azamjon/snap/snapd-desktop-integration/253/Documents/sky-metrics-ai/openpose/3rdparty/caffe/include/caffe/util/cudnn.hpp:21:8: warning: enumeration value ‘CUDNN_STATUS_SUBLIBRARY_VERSION_MISMATCH’ not handled in switch [-Wswitch] 21 | switch (status) { | ^ /home/azamjon/snap/snapd-desktop-integration/253/Documents/sky-metrics-ai/openpose/3rdparty/caffe/include/caffe/util/cudnn.hpp:21:8: warning: enumeration value ‘CUDNN_STATUS_SERIALIZATION_VERSION_MISMATCH’ not handled in switch [-Wswitch] /home/azamjon/snap/snapd-desktop-integration/253/Documents/sky-metrics-ai/openpose/3rdparty/caffe/include/caffe/util/cudnn.hpp:21:8: warning: enumeration value ‘CUDNN_STATUS_DEPRECATED’ not handled in switch [-Wswitch] /home/azamjon/snap/snapd-desktop-integration/253/Documents/sky-metrics-ai/openpose/3rdparty/caffe/include/caffe/util/cudnn.hpp:21:8: warning: enumeration value ‘CUDNN_STATUS_SUBLIBRARY_LOADING_FAILED’ not handled in switch [-Wswitch] /home/azamjon/snap/snapd-desktop-integration/253/Documents/sky-metrics-ai/openpose/3rdparty/caffe/include/caffe/util/cudnn.hpp:21:8: warning: enumeration value ‘CUDNN_STATUS_BAD_PARAM_NULL_POINTER’ not handled in switch [-Wswitch] /home/azamjon/snap/snapd-desktop-integration/253/Documents/sky-metrics-ai/openpose/3rdparty/caffe/include/caffe/util/cudnn.hpp:21:8: warning: enumeration value ‘CUDNN_STATUS_BAD_PARAM_MISALIGNED_POINTER’ not handled in switch [-Wswitch] /home/azamjon/snap/snapd-desktop-integration/253/Documents/sky-metrics-ai/openpose/3rdparty/caffe/include/caffe/util/cudnn.hpp:21:8: warning: enumeration value ‘CUDNN_STATUS_BAD_PARAM_NOT_FINALIZED’ not handled in switch [-Wswitch] /home/azamjon/snap/snapd-desktop-integration/253/Documents/sky-metrics-ai/openpose/3rdparty/caffe/include/caffe/util/cudnn.hpp:21:8: warning: enumeration value ‘CUDNN_STATUS_BAD_PARAM_OUT_OF_BOUND’ not handled in switch [-Wswitch] /home/azamjon/snap/snapd-desktop-integration/253/Documents/sky-metrics-ai/openpose/3rdparty/caffe/include/caffe/util/cudnn.hpp:21:8: warning: enumeration value ‘CUDNN_STATUS_BAD_PARAM_SIZE_INSUFFICIENT’ not handled in switch [-Wswitch] /home/azamjon/snap/snapd-desktop-integration/253/Documents/sky-metrics-ai/openpose/3rdparty/caffe/include/caffe/util/cudnn.hpp:21:8: warning: enumeration value ‘CUDNN_STATUS_BAD_PARAM_STREAM_MISMATCH’ not handled in switch [-Wswitch] /home/azamjon/snap/snapd-desktop-integration/253/Documents/sky-metrics-ai/openpose/3rdparty/caffe/include/caffe/util/cudnn.hpp:21:8: warning: enumeration value ‘CUDNN_STATUS_BAD_PARAM_SHAPE_MISMATCH’ not handled in switch [-Wswitch] /home/azamjon/snap/snapd-desktop-integration/253/Documents/sky-metrics-ai/openpose/3rdparty/caffe/include/caffe/util/cudnn.hpp:21:8: warning: enumeration value ‘CUDNN_STATUS_BAD_PARAM_DUPLICATED_ENTRIES’ not handled in switch [-Wswitch] /home/azamjon/snap/snapd-desktop-integration/253/Documents/sky-metrics-ai/openpose/3rdparty/caffe/include/caffe/util/cudnn.hpp:21:8: warning: enumeration value ‘CUDNN_STATUS_BAD_PARAM_ATTRIBUTE_TYPE’ not handled in switch [-Wswitch] /home/azamjon/snap/snapd-desktop-integration/253/Documents/sky-metrics-ai/openpose/3rdparty/caffe/include/caffe/util/cudnn.hpp:21:8: warning: enumeration value ‘CUDNN_STATUS_BAD_PARAM_CUDA_GRAPH_MISMATCH’ not handled in switch [-Wswitch] /home/azamjon/snap/snapd-desktop-integration/253/Documents/sky-metrics-ai/openpose/3rdparty/caffe/include/caffe/util/cudnn.hpp:21:8: warning: enumeration value ‘CUDNN_STATUS_BAD_PARAM_DESCRIPTOR_TYPE’ not handled in switch [-Wswitch] /home/azamjon/snap/snapd-desktop-integration/253/Documents/sky-metrics-ai/openpose/3rdparty/caffe/include/caffe/util/cudnn.hpp:21:8: warning: enumeration value ‘CUDNN_STATUS_NOT_SUPPORTED_GRAPH_PATTERN’ not handled in switch [-Wswitch] /home/azamjon/snap/snapd-desktop-integration/253/Documents/sky-metrics-ai/openpose/3rdparty/caffe/include/caffe/util/cudnn.hpp:21:8: warning: enumeration value ‘CUDNN_STATUS_NOT_SUPPORTED_SHAPE’ not handled in switch [-Wswitch] /home/azamjon/snap/snapd-desktop-integration/253/Documents/sky-metrics-ai/openpose/3rdparty/caffe/include/caffe/util/cudnn.hpp:21:8: warning: enumeration value ‘CUDNN_STATUS_NOT_SUPPORTED_DATA_TYPE’ not handled in switch [-Wswitch] /home/azamjon/snap/snapd-desktop-integration/253/Documents/sky-metrics-ai/openpose/3rdparty/caffe/include/caffe/util/cudnn.hpp:21:8: warning: enumeration value ‘CUDNN_STATUS_NOT_SUPPORTED_LAYOUT’ not handled in switch [-Wswitch] /home/azamjon/snap/snapd-desktop-integration/253/Documents/sky-metrics-ai/openpose/3rdparty/caffe/include/caffe/util/cudnn.hpp:21:8: warning: enumeration value ‘CUDNN_STATUS_NOT_SUPPORTED_INCOMPATIBLE_CUDA_DRIVER’ not handled in switch [-Wswitch] /home/azamjon/snap/snapd-desktop-integration/253/Documents/sky-metrics-ai/openpose/3rdparty/caffe/include/caffe/util/cudnn.hpp:21:8: warning: enumeration value ‘CUDNN_STATUS_NOT_SUPPORTED_INCOMPATIBLE_CUDART’ not handled in switch [-Wswitch] /home/azamjon/snap/snapd-desktop-integration/253/Documents/sky-metrics-ai/openpose/3rdparty/caffe/include/caffe/util/cudnn.hpp:21:8: warning: enumeration value ‘CUDNN_STATUS_NOT_SUPPORTED_SUBLIBRARY_UNAVAILABLE’ not handled in switch [-Wswitch] /home/azamjon/snap/snapd-desktop-integration/253/Documents/sky-metrics-ai/openpose/3rdparty/caffe/include/caffe/util/cudnn.hpp:21:8: warning: enumeration value ‘CUDNN_STATUS_NOT_SUPPORTED_SHARED_MEMORY_INSUFFICIENT’ not handled in switch [-Wswitch] /home/azamjon/snap/snapd-desktop-integration/253/Documents/sky-metrics-ai/openpose/3rdparty/caffe/include/caffe/util/cudnn.hpp:21:8: warning: enumeration value ‘CUDNN_STATUS_NOT_SUPPORTED_PADDING’ not handled in switch [-Wswitch] /home/azamjon/snap/snapd-desktop-integration/253/Documents/sky-metrics-ai/openpose/3rdparty/caffe/include/caffe/util/cudnn.hpp:21:8: warning: enumeration value ‘CUDNN_STATUS_NOT_SUPPORTED_BAD_LAUNCH_PARAM’ not handled in switch [-Wswitch] /home/azamjon/snap/snapd-desktop-integration/253/Documents/sky-metrics-ai/openpose/3rdparty/caffe/include/caffe/util/cudnn.hpp:21:8: warning: enumeration value ‘CUDNN_STATUS_NOT_SUPPORTED_CUDA_GRAPH_NATIVE_API’ not handled in switch [-Wswitch] /home/azamjon/snap/snapd-desktop-integration/253/Documents/sky-metrics-ai/openpose/3rdparty/caffe/include/caffe/util/cudnn.hpp:21:8: warning: enumeration value ‘CUDNN_STATUS_INTERNAL_ERROR_COMPILATION_FAILED’ not handled in switch [-Wswitch] /home/azamjon/snap/snapd-desktop-integration/253/Documents/sky-metrics-ai/openpose/3rdparty/caffe/include/caffe/util/cudnn.hpp:21:8: warning: enumeration value ‘CUDNN_STATUS_INTERNAL_ERROR_UNEXPECTED_VALUE’ not handled in switch [-Wswitch] /home/azamjon/snap/snapd-desktop-integration/253/Documents/sky-metrics-ai/openpose/3rdparty/caffe/include/caffe/util/cudnn.hpp:21:8: warning: enumeration value ‘CUDNN_STATUS_INTERNAL_ERROR_DEVICE_ALLOCATION_FAILED’ not handled in switch [-Wswitch] /home/azamjon/snap/snapd-desktop-integration/253/Documents/sky-metrics-ai/openpose/3rdparty/caffe/include/caffe/util/cudnn.hpp:21:8: warning: enumeration value ‘CUDNN_STATUS_INTERNAL_ERROR_BAD_LAUNCH_PARAM’ not handled in switch [-Wswitch] /home/azamjon/snap/snapd-desktop-integration/253/Documents/sky-metrics-ai/openpose/3rdparty/caffe/include/caffe/util/cudnn.hpp:21:8: warning: enumeration value ‘CUDNN_STATUS_EXECUTION_FAILED_CUDA_DRIVER’ not handled in switch [-Wswitch] /home/azamjon/snap/snapd-desktop-integration/253/Documents/sky-metrics-ai/openpose/3rdparty/caffe/include/caffe/util/cudnn.hpp:21:8: warning: enumeration value ‘CUDNN_STATUS_EXECUTION_FAILED_CUBLAS’ not handled in switch [-Wswitch] /home/azamjon/snap/snapd-desktop-integration/253/Documents/sky-metrics-ai/openpose/3rdparty/caffe/include/caffe/util/cudnn.hpp:21:8: warning: enumeration value ‘CUDNN_STATUS_EXECUTION_FAILED_CUDART’ not handled in switch [-Wswitch] /home/azamjon/snap/snapd-desktop-integration/253/Documents/sky-metrics-ai/openpose/3rdparty/caffe/include/caffe/util/cudnn.hpp:21:8: warning: enumeration value ‘CUDNN_STATUS_EXECUTION_FAILED_CURAND’ not handled in switch [-Wswitch] /home/azamjon/snap/snapd-desktop-integration/253/Documents/sky-metrics-ai/openpose/3rdparty/caffe/include/caffe/util/cudnn.hpp:21:8: warning: enumeration value ‘CUDNN_STATUS_VERSION_MISMATCH’ not handled in switch [-Wswitch] CMake Error at cuda_compile_1_generated_math_functions.cu.o.Release.cmake:280 (message): Error generating file /home/azamjon/snap/snapd-desktop-integration/253/Documents/sky-metrics-ai/openpose/build/caffe/src/openpose_lib-build/src/caffe/CMakeFiles/cuda_compile_1.dir/util/./cuda_compile_1_generated_math_functions.cu.o

make[5]: *** [src/caffe/CMakeFiles/caffe.dir/build.make:9016: src/caffe/CMakeFiles/cuda_compile_1.dir/util/cuda_compile_1_generated_math_functions.cu.o] Error 1 make[4]: *** [CMakeFiles/Makefile2:376: src/caffe/CMakeFiles/caffe.dir/all] Error 2 make[3]: *** [Makefile:136: all] Error 2 make[2]: *** [CMakeFiles/openpose_lib.dir/build.make:86: caffe/src/openpose_lib-stamp/openpose_lib-build] Error 2 make[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/openpose_lib.dir/all] Error 2 make: *** [Makefile:91: all] Error 2

How to fix it and compile OpenPose?

Details: OS: Ubuntu 22.04 GPU: NVIDIA GeForce RTX 3080 Ti CUDA 12.2

azamjon-xusanov avatar Jun 17 '25 12:06 azamjon-xusanov