jrkwon / openpose

Other
7 stars 2 forks source link

Headless machines compatibility? #2

Open dvirginz opened 4 years ago

dvirginz commented 4 years ago

Thank you very much for your repo! I'm working on a headless machine, thus cannot use cmake-gui.

Using simply cmake, I tried

mkdir build ; cd build
cmake ..

But unfortunately when running make -jnproc`` From within the repo I get the following error:

Scanning dependencies of target openpose_caffe
[ 12%] Creating directories for 'openpose_caffe'
[ 25%] No download step for 'openpose_caffe'
[ 37%] No patch step for 'openpose_caffe'
[ 50%] No update step for 'openpose_caffe'
[ 62%] Performing configure step for 'openpose_caffe'
-- The C compiler identification is GNU 7.5.0
-- The CXX compiler identification is GNU 7.5.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Boost version: 1.65.1
-- Found the following Boost libraries:
--   system
--   thread
--   filesystem
--   chrono
--   date_time
--   atomic
-- Found GFlags: /usr/include  
-- Found gflags  (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libgflags.so)
-- Found Glog: /usr/include  
-- Found glog    (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libglog.so)
-- Found Protobuf: /usr/local/lib/libprotobuf.so;-lpthread (found version "3.12.3") 
-- Found PROTOBUF Compiler: /home/abc/anaconda3/envs/openpose/bin/protoc
-- HDF5: Using hdf5 compiler wrapper to determine C configuration
-- HDF5: Using hdf5 compiler wrapper to determine CXX configuration
-- Found HDF5: /home/abc/anaconda3/envs/openpose/lib/libhdf5_cpp.so;/home/abc/anaconda3/envs/openpose/lib/libhdf5.so;/usr/lib/x86_64-linux-gnu/librt.so;/usr/lib/x86_64-linux-gnu/libpthread.so;/home/abc/anaconda3/envs/openpose/lib/libz.so;/usr/lib/x86_64-linux-gnu/libdl.so;/usr/lib/x86_64-linux-gnu/libm.so (found version "1.10.2") found components:  HL 
-- CUDA detected: 10.1
-- Found cuDNN: ver. 7.6.5 found (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libcudnn.so)
-- Added CUDA NVCC flags for: sm_70
-- Found Atlas: /usr/include/x86_64-linux-gnu  
-- Found Atlas (include: /usr/include/x86_64-linux-gnu library: /usr/lib/x86_64-linux-gnu/libatlas.so lapack: /usr/lib/x86_64-linux-gnu/liblapack.so
-- Python interface is disabled or not all required dependencies found. Building without it...
-- Found Git: /usr/bin/git (found version "2.17.1") 
-- 
-- ******************* Caffe Configuration Summary *******************
-- General:
--   Version           :   1.0.0
--   Git               :   5b3032e
--   System            :   Linux
--   C++ compiler      :   /usr/bin/c++
--   Release CXX flags :   -O3 -DNDEBUG -fPIC -Wall -Wno-sign-compare -Wno-uninitialized
--   Debug CXX flags   :   -g -fPIC -Wall -Wno-sign-compare -Wno-uninitialized
--   Build type        :   Release
-- 
--   BUILD_SHARED_LIBS :   ON
--   BUILD_python      :   OFF
--   BUILD_matlab      :   OFF
--   BUILD_docs        :   OFF
--   CPU_ONLY          :   OFF
--   USE_OPENCV        :   OFF
--   USE_LEVELDB       :   OFF
--   USE_LMDB          :   OFF
--   USE_NCCL          :   OFF
--   ALLOW_LMDB_NOLOCK :   OFF
-- 
-- Dependencies:
--   BLAS              :   Yes (Atlas)
--   Boost             :   Yes (ver. 1.65)
--   glog              :   Yes
--   gflags            :   Yes
--   protobuf          :   Yes (ver. ..)
--   CUDA              :   Yes (ver. 10.1)
-- 
-- NVIDIA CUDA:
--   Target GPU(s)     :   Auto
--   GPU arch(s)       :   sm_70
--   cuDNN             :   Yes (ver. 7.6.5)
-- 
-- Install:
--   Install path      :   /home/abc/repos/cloned_repos/openpose/build/caffe
-- 
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
CUDA_cublas_device_LIBRARY (ADVANCED)
    linked by target "caffe" in directory /home/abc/repos/cloned_repos/openpose/3rdparty/caffe/src/caffe

-- Configuring incomplete, errors occurred!
See also "/home/abc/repos/cloned_repos/openpose/build/caffe/src/openpose_caffe-build/CMakeFiles/CMakeOutput.log".
See also "/home/abc/repos/cloned_repos/openpose/build/caffe/src/openpose_caffe-build/CMakeFiles/CMakeError.log".
CMakeFiles/openpose_caffe.dir/build.make:105: recipe for target 'caffe/src/openpose_caffe-stamp/openpose_caffe-configure' failed
make[2]: *** [caffe/src/openpose_caffe-stamp/openpose_caffe-configure] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/openpose_caffe.dir/all' failed
make[1]: *** [CMakeFiles/openpose_caffe.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

Any Idea?

jrkwon commented 4 years ago

It seems that the problem can be fixed by using CMake 3.12.2. The original repo with CMake 3.10.x seems to have an issue with CUDA 10.x. I've got this idea from https://github.com/clab/dynet/issues/1457

On Wed, Jul 29, 2020 at 8:24 AM Dvir Ginzburg notifications@github.com wrote:

Thank you very much for your repo! I'm working on a headless machine, thus cannot use cmake-gui.

Using simply cmake, I tried

mkdir build ; cd build cmake ..

But unfortunately when running make -jnproc`` From within the repo I get the following error:

Scanning dependencies of target openpose_caffe [ 12%] Creating directories for 'openpose_caffe' [ 25%] No download step for 'openpose_caffe' [ 37%] No patch step for 'openpose_caffe' [ 50%] No update step for 'openpose_caffe' [ 62%] Performing configure step for 'openpose_caffe' -- The C compiler identification is GNU 7.5.0 -- The CXX compiler identification is GNU 7.5.0 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Looking for pthread.h -- Looking for pthread.h - found -- Looking for pthread_create -- Looking for pthread_create - not found -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - found -- Found Threads: TRUE -- Boost version: 1.65.1 -- Found the following Boost libraries: -- system -- thread -- filesystem -- chrono -- date_time -- atomic -- Found GFlags: /usr/include -- Found gflags (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libgflags.so) -- Found Glog: /usr/include -- Found glog (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libglog.so) -- Found Protobuf: /usr/local/lib/libprotobuf.so;-lpthread (found version "3.12.3") -- Found PROTOBUF Compiler: /home/abc/anaconda3/envs/openpose/bin/protoc -- HDF5: Using hdf5 compiler wrapper to determine C configuration -- HDF5: Using hdf5 compiler wrapper to determine CXX configuration -- Found HDF5: /home/abc/anaconda3/envs/openpose/lib/libhdf5_cpp.so;/home/abc/anaconda3/envs/openpose/lib/libhdf5.so;/usr/lib/x86_64-linux-gnu/librt.so;/usr/lib/x86_64-linux-gnu/libpthread.so;/home/abc/anaconda3/envs/openpose/lib/libz.so;/usr/lib/x86_64-linux-gnu/libdl.so;/usr/lib/x86_64-linux-gnu/libm.so (found version "1.10.2") found components: HL -- CUDA detected: 10.1 -- Found cuDNN: ver. 7.6.5 found (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libcudnn.so) -- Added CUDA NVCC flags for: sm_70 -- Found Atlas: /usr/include/x86_64-linux-gnu -- Found Atlas (include: /usr/include/x86_64-linux-gnu library: /usr/lib/x86_64-linux-gnu/libatlas.so lapack: /usr/lib/x86_64-linux-gnu/liblapack.so -- Python interface is disabled or not all required dependencies found. Building without it... -- Found Git: /usr/bin/git (found version "2.17.1")

-- Caffe Configuration Summary -- General: -- Version : 1.0.0 -- Git : 5b3032e -- System : Linux -- C++ compiler : /usr/bin/c++ -- Release CXX flags : -O3 -DNDEBUG -fPIC -Wall -Wno-sign-compare -Wno-uninitialized -- Debug CXX flags : -g -fPIC -Wall -Wno-sign-compare -Wno-uninitialized -- Build type : Release

-- BUILD_SHARED_LIBS : ON -- BUILD_python : OFF -- BUILD_matlab : OFF -- BUILD_docs : OFF -- CPU_ONLY : OFF -- USE_OPENCV : OFF -- USE_LEVELDB : OFF -- USE_LMDB : OFF -- USE_NCCL : OFF -- ALLOW_LMDB_NOLOCK : OFF

-- Dependencies: -- BLAS : Yes (Atlas) -- Boost : Yes (ver. 1.65) -- glog : Yes -- gflags : Yes -- protobuf : Yes (ver. ..) -- CUDA : Yes (ver. 10.1)

-- NVIDIA CUDA: -- Target GPU(s) : Auto -- GPU arch(s) : sm_70 -- cuDNN : Yes (ver. 7.6.5)

-- Install: -- Install path : /home/abc/repos/cloned_repos/openpose/build/caffe

CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please set them or make sure they are set and tested correctly in the CMake files: CUDA_cublas_device_LIBRARY (ADVANCED) linked by target "caffe" in directory /home/abc/repos/cloned_repos/openpose/3rdparty/caffe/src/caffe

-- Configuring incomplete, errors occurred! See also "/home/abc/repos/cloned_repos/openpose/build/caffe/src/openpose_caffe-build/CMakeFiles/CMakeOutput.log". See also "/home/abc/repos/cloned_repos/openpose/build/caffe/src/openpose_caffe-build/CMakeFiles/CMakeError.log". CMakeFiles/openpose_caffe.dir/build.make:105: recipe for target 'caffe/src/openpose_caffe-stamp/openpose_caffe-configure' failed make[2]: [caffe/src/openpose_caffe-stamp/openpose_caffe-configure] Error 1 CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/openpose_caffe.dir/all' failed make[1]: [CMakeFiles/openpose_caffe.dir/all] Error 2 Makefile:83: recipe for target 'all' failed make: *** [all] Error 2

Any Idea?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jrkwon/openpose/issues/2, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAKKOSAFHWK73LRDWRJZGH3R6AIFZANCNFSM4PLRKGWA .

-- Jaerock Kwon, Ph.D. http://jrkwon.com/ Assistant Professor Bio-Inspired Machine Intelligence (BIMI) Laboratory http://bimi.jrkwon.com/ Electrical and Computer Engineering University of Michigan-Dearborn W: https://umdearborn.edu/users/jrkwon