Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed

Hi, I am trying to build openpose but get stuck with several errors. The first of which is a cmake error mentioned in the title while using “cmake …”.

Then I also get this error "CMake Error at cuda_compile_1_generated_conv_layer.cu.o.Release.cmake:280 (message):
Error generating file
/home//software/openpose/3rdparty/caffe/build/src/caffe/CMakeFiles/cuda_compile_1.dir/layers/./cuda_compile_1_generated_conv_layer.cu.o
"


My terminal output when cmake … is used is


:~/software/openpose/3rdparty/caffe/build$ cmake …
– 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
CMake Warning (dev) at cmake/Misc.cmake:32 (set):
implicitly converting ‘BOOLEAN’ to ‘STRING’ type.
Call Stack (most recent call first):
CMakeLists.txt:25 (include)
This warning is for project developers. Use -Wno-dev to suppress it.

– Looking for pthread.h
– Looking for pthread.h - found
– Performing Test CMAKE_HAVE_LIBC_PTHREAD
– Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
– 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
– Found Boost: /usr/include (found suitable version “1.65.1”, minimum required is “1.54”) found components: 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/lib/x86_64-linux-gnu/libprotobuf.so;-lpthread (found version “3.0.0”)
– Found PROTOBUF Compiler: /usr/bin/protoc
– HDF5: Using hdf5 compiler wrapper to determine C configuration
– HDF5: Using hdf5 compiler wrapper to determine CXX configuration
– Found HDF5: /usr/lib/x86_64-linux-gnu/hdf5/serial/libhdf5_cpp.so;/usr/lib/x86_64-linux-gnu/hdf5/serial/libhdf5.so;/usr/lib/x86_64-linux-gnu/libpthread.so;/usr/lib/x86_64-linux-gnu/libsz.so;/usr/lib/x86_64-linux-gnu/libz.so;/usr/lib/x86_64-linux-gnu/libdl.so;/usr/lib/x86_64-linux-gnu/libm.so (found version “1.10.0.1”) found components: HL
– Found LMDB: /usr/include
– Found lmdb (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/liblmdb.so)
– Found LevelDB: /usr/include
– Found LevelDB (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libleveldb.so)
– Found Snappy: /usr/include
– Found Snappy (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libsnappy.so)
– CUDA detected: 10.2
– Found cuDNN: ver. 7.6.5 found (include: /usr/local/cuda/include, library: /usr/local/cuda/lib64/libcudnn.so)
– Automatic GPU detection failed. Building for all known architectures.
– Added CUDA NVCC flags for: sm_30 sm_35 sm_50 sm_60 sm_61
– OpenCV found (/usr/share/OpenCV)
– Found Atlas: /usr/include/x86_64-linux-gnu


My second terminal ~/software/openpose/3rdparty/caffe/build$ make -j’nproc’ is used is


:~/software/openpose/3rdparty/caffe/build$ make -jnproc
[ 1%] Running C++/Python protocol buffer compiler on /home/femifapo/software/openpose/3rdparty/caffe/src/caffe/proto/caffe.proto
Scanning dependencies of target caffeproto
[ 1%] Building CXX object src/caffe/CMakeFiles/caffeproto.dir///include/caffe/proto/caffe.pb.cc.o
[ 1%] Linking CXX static library …/…/lib/libcaffeproto.a
[ 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
[ 1%] Building NVCC (Device) object src/caffe/CMakeFiles/cuda_compile_1.dir/layers/cuda_compile_1_generated_accuracy_layer.cu.o
[ 1%] Building NVCC (Device) object src/caffe/CMakeFiles/cuda_compile_1.dir/util/cuda_compile_1_generated_math_functions.cu.o
[ 1%] Building NVCC (Device) object src/caffe/CMakeFiles/cuda_compile_1.dir/layers/cuda_compile_1_generated_batch_reindex_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/layers/cuda_compile_1_generated_bnll_layer.cu.o
[ 2%] Building NVCC (Device) object src/caffe/CMakeFiles/cuda_compile_1.dir/layers/cuda_compile_1_generated_clip_layer.cu.o
[ 2%] Building NVCC (Device) object src/caffe/CMakeFiles/cuda_compile_1.dir/layers/cuda_compile_1_generated_contrastive_loss_layer.cu.o
[ 4%] Building NVCC (Device) object src/caffe/CMakeFiles/cuda_compile_1.dir/layers/cuda_compile_1_generated_bias_layer.cu.o
[ 5%] Building NVCC (Device) object src/caffe/CMakeFiles/cuda_compile_1.dir/layers/cuda_compile_1_generated_concat_layer.cu.o
[ 6%] Building NVCC (Device) object src/caffe/CMakeFiles/cuda_compile_1.dir/layers/cuda_compile_1_generated_cudnn_deconv_layer.cu.o
[ 6%] Building NVCC (Device) object src/caffe/CMakeFiles/cuda_compile_1.dir/layers/cuda_compile_1_generated_crop_layer.cu.o
[ 8%] Building NVCC (Device) object src/caffe/CMakeFiles/cuda_compile_1.dir/layers/cuda_compile_1_generated_conv_layer.cu.o
[ 8%] Building NVCC (Device) object src/caffe/CMakeFiles/cuda_compile_1.dir/layers/cuda_compile_1_generated_cudnn_lcn_layer.cu.o
[ 8%] Building NVCC (Device) object src/caffe/CMakeFiles/cuda_compile_1.dir/layers/cuda_compile_1_generated_cudnn_conv_layer.cu.o
In file included from /home/femifapo/software/openpose/3rdparty/caffe/src/caffe/util/math_functions.cu:1:0:
/usr/local/cuda/include/math_functions.h:54:2: warning: #warning “math_functions.h is an internal header file and must not be used directly. This file will be removed in a future CUDA release. Please use cuda_runtime_api.h or cuda_runtime.h instead.” [-Wcpp]
#warning “math_functions.h is an internal header file and must not be used directly. This file will be removed in a future CUDA release. Please use cuda_runtime_api.h or cuda_runtime.h instead.”
^~~~~~~
In file included from /home/femifapo/software/openpose/3rdparty/caffe/src/caffe/util/math_functions.cu:1:0:
/usr/local/cuda/include/math_functions.h:54:2: warning: #warning “math_functions.h is an internal header file and must not be used directly. This file will be removed in a future CUDA release. Please use cuda_runtime_api.h or cuda_runtime.h instead.” [-Wcpp]
#warning “math_functions.h is an internal header file and must not be used directly. This file will be removed in a future CUDA release. Please use cuda_runtime_api.h or cuda_runtime.h instead.”
^~~~~~~
In file included from /home/femifapo/software/openpose/3rdparty/caffe/src/caffe/util/math_functions.cu:1:0:
/usr/local/cuda/include/math_functions.h:54:2: warning: #warning “math_functions.h is an internal header file and must not be used directly. This file will be removed in a future CUDA release. Please use cuda_runtime_api.h or cuda_runtime.h instead.” [-Wcpp]
#warning “math_functions.h is an internal header file and must not be used directly. This file will be removed in a future CUDA release. Please use cuda_runtime_api.h or cuda_runtime.h instead.”
^~~~~~~
In file included from /home/femifapo/software/openpose/3rdparty/caffe/src/caffe/util/math_functions.cu:1:0:
/usr/local/cuda/include/math_functions.h:54:2: warning: #warning “math_functions.h is an internal header file and must not be used directly. This file will be removed in a future CUDA release. Please use cuda_runtime_api.h or cuda_runtime.h instead.” [-Wcpp]
#warning “math_functions.h is an internal header file and must not be used directly. This file will be removed in a future CUDA release. Please use cuda_runtime_api.h or cuda_runtime.h instead.”
^~~~~~~
In file included from /home/femifapo/software/openpose/3rdparty/caffe/src/caffe/util/math_functions.cu:1:0:
/usr/local/cuda/include/math_functions.h:54:2: warning: #warning “math_functions.h is an internal header file and must not be used directly. This file will be removed in a future CUDA release. Please use cuda_runtime_api.h or cuda_runtime.h instead.” [-Wcpp]
#warning “math_functions.h is an internal header file and must not be used directly. This file will be removed in a future CUDA release. Please use cuda_runtime_api.h or cuda_runtime.h instead.”
^~~~~~~
/usr/local/cuda/include/cuda_fp16.hpp(571): error: identifier “make_float2” is undefined
.
.
.
In file included from /home/femifapo/software/openpose/3rdparty/caffe/src/caffe/util/math_functions.cu:1:0:
/usr/local/cuda/include/math_functions.h:54:2: warning: #warning “math_functions.h is an internal header file and must not be used directly. This file will be removed in a future CUDA release. Please use cuda_runtime_api.h or cuda_runtime.h instead.” [-Wcpp]
#warning “math_functions.h is an internal header file and must not be used directly. This file will be removed in a future CUDA release. Please use cuda_runtime_api.h or cuda_runtime.h instead.”
^~~~~~~
/home/femifapo/software/openpose/3rdparty/caffe/include/caffe/syncedmem.hpp(22): error: identifier “cudaMallocHost” is undefined
.
.
.
17 errors detected in the compilation of “/tmp/tmpxft_00002be6_00000000-10_cudnn_lcn_layer.compute_61.cpp1.ii”.
CMake Error at cuda_compile_1_generated_cudnn_lcn_layer.cu.o.Release.cmake:280 (message):
Error generating file
/home/femifapo/software/openpose/3rdparty/caffe/build/src/caffe/CMakeFiles/cuda_compile_1.dir/layers/./cuda_compile_1_generated_cudnn_lcn_layer.cu.o

src/caffe/CMakeFiles/caffe.dir/build.make:181: recipe for target ‘src/caffe/CMakeFiles/cuda_compile_1.dir/layers/cuda_compile_1_generated_cudnn_lcn_layer.cu.o’ failed
make[2]: *** [src/caffe/CMakeFiles/cuda_compile_1.dir/layers/cuda_compile_1_generated_cudnn_lcn_layer.cu.o] Error 1
make[2]: *** Waiting for unfinished jobs…
/home/femifapo/software/openpose/3rdparty/caffe/include/caffe/syncedmem.hpp(22): error: identifier “cudaMallocHost” is undefined

/home/femifapo/software/openpose/3rdparty/caffe/include/caffe/syncedmem.hpp(22): error: identifier “cudaGetErrorString” is undefined

/home/femifapo/software/openpose/3rdparty/caffe/include/caffe/syncedmem.hpp(39): error: identifier “cudaFreeHost” is undefined

/home/femifapo/software/openpose/3rdparty/caffe/include/caffe/syncedmem.hpp(39): error: identifier “cudaGetErrorString” is undefined

/home/femifapo/software/openpose/3rdparty/caffe/include/caffe/util/math_functions.hpp(179): error: identifier “cudaMemset” is undefined

/home/femifapo/software/openpose/3rdparty/caffe/include/caffe/util/math_functions.hpp(179): error: identifier “cudaGetErrorString” is undefined

/home/femifapo/software/openpose/3rdparty/caffe/include/caffe/syncedmem.hpp(22): error: identifier “cudaMallocHost” is undefined

/home/femifapo/software/openpose/3rdparty/caffe/include/caffe/syncedmem.hpp(22): error: identifier “cudaGetErrorString” is undefined

/home/femifapo/software/openpose/3rdparty/caffe/include/caffe/syncedmem.hpp(39): error: identifier “cudaFreeHost” is undefined

/home/femifapo/software/openpose/3rdparty/caffe/include/caffe/syncedmem.hpp(39): error: identifier “cudaGetErrorString” is undefined

17 errors detected in the compilation of “/tmp/tmpxft_00002bf2_00000000-10_conv_layer.compute_61.cpp1.ii”.
/home/femifapo/software/openpose/3rdparty/caffe/include/caffe/syncedmem.hpp(22): error: identifier “cudaMallocHost” is undefined

/home/femifapo/software/openpose/3rdparty/caffe/include/caffe/syncedmem.hpp(22): error: identifier “cudaGetErrorString” is undefined

/home/femifapo/software/openpose/3rdparty/caffe/include/caffe/syncedmem.hpp(39): error: identifier “cudaFreeHost” is undefined

/home/femifapo/software/openpose/3rdparty/caffe/include/caffe/syncedmem.hpp(39): error: identifier “cudaGetErrorString” is undefined

/home/femifapo/software/openpose/3rdparty/caffe/include/caffe/util/math_functions.hpp(179): error: identifier “cudaMemset” is undefined

/home/femifapo/software/openpose/3rdparty/caffe/include/caffe/util/math_functions.hpp(179): error: identifier “cudaGetErrorString” is undefined

CMake Error at cuda_compile_1_generated_conv_layer.cu.o.Release.cmake:280 (message):
Error generating file
/home/femifapo/software/openpose/3rdparty/caffe/build/src/caffe/CMakeFiles/cuda_compile_1.dir/layers/./cuda_compile_1_generated_conv_layer.cu.o

src/caffe/CMakeFiles/caffe.dir/build.make:153: recipe for target ‘src/caffe/CMakeFiles/cuda_compile_1.dir/layers/cuda_compile_1_generated_conv_layer.cu.o’ failed
make[2]: *** [src/caffe/CMakeFiles/cuda_compile_1.dir/layers/cuda_compile_1_generated_conv_layer.cu.o] Error 1
/home/femifapo/software/openpose/3rdparty/caffe/include/caffe/util/math_functions.hpp(179): error: identifier “cudaMemset” is undefined

/home/femifapo/software/openpose/3rdparty/caffe/include/caffe/util/math_functions.hpp(179): error: identifier “cudaGetErrorString” is undefined

17 errors detected in the compilation of “/tmp/tmpxft_00002c10_00000000-10_absval_layer.compute_61.cpp1.ii”.
CMake Error at cuda_compile_1_generated_absval_layer.cu.o.Release.cmake:280 (message):
Error generating file
/home/femifapo/software/openpose/3rdparty/caffe/build/src/caffe/CMakeFiles/cuda_compile_1.dir/layers/./cuda_compile_1_generated_absval_layer.cu.o

/home/femifapo/software/openpose/3rdparty/caffe/include/caffe/syncedmem.hpp(22): error: identifier “cudaMallocHost” is undefined

src/caffe/CMakeFiles/caffe.dir/build.make:83: recipe for target ‘src/caffe/CMakeFiles/cuda_compile_1.dir/layers/cuda_compile_1_generated_absval_layer.cu.o’ failed
make[2]: *** [src/caffe/CMakeFiles/cuda_compile_1.dir/layers/cuda_compile_1_generated_absval_layer.cu.o] Error 1
/home/femifapo/software/openpose/3rdparty/caffe/include/caffe/syncedmem.hpp(22): error: identifier “cudaGetErrorString” is undefined

/home/femifapo/software/openpose/3rdparty/caffe/include/caffe/syncedmem.hpp(39): error: identifier “cudaFreeHost” is undefined

/home/femifapo/software/openpose/3rdparty/caffe/include/caffe/syncedmem.hpp(39): error: identifier “cudaGetErrorString” is undefined

/home/femifapo/software/openpose/3rdparty/caffe/include/caffe/util/math_functions.hpp(179): error: identifier “cudaMemset” is undefined

/home/femifapo/software/openpose/3rdparty/caffe/include/caffe/util/math_functions.hpp(179): error: identifier “cudaGetErrorString” is undefined

17 errors detected in the compilation of “/tmp/tmpxft_00002c14_00000000-10_batch_norm_layer.compute_61.cpp1.ii”.
CMake Error at cuda_compile_1_generated_batch_norm_layer.cu.o.Release.cmake:280 (message):
Error generating file
/home/femifapo/software/openpose/3rdparty/caffe/build/src/caffe/CMakeFiles/cuda_compile_1.dir/layers/./cuda_compile_1_generated_batch_norm_layer.cu.o

src/caffe/CMakeFiles/caffe.dir/build.make:104: recipe for target ‘src/caffe/CMakeFiles/cuda_compile_1.dir/layers/cuda_compile_1_generated_batch_norm_layer.cu.o’ failed
make[2]: *** [src/caffe/CMakeFiles/cuda_compile_1.dir/layers/cuda_compile_1_generated_batch_norm_layer.cu.o] Error 1
Segmentation fault (core dumped)
CMake Error at cuda_compile_1_generated_contrastive_loss_layer.cu.o.Release.cmake:280 (message):
Error generating file
/home/femifapo/software/openpose/3rdparty/caffe/build/src/caffe/CMakeFiles/cuda_compile_1.dir/layers/./cuda_compile_1_generated_contrastive_loss_layer.cu.o

src/caffe/CMakeFiles/caffe.dir/build.make:146: recipe for target ‘src/caffe/CMakeFiles/cuda_compile_1.dir/layers/cuda_compile_1_generated_contrastive_loss_layer.cu.o’ failed
make[2]: *** [src/caffe/CMakeFiles/cuda_compile_1.dir/layers/cuda_compile_1_generated_contrastive_loss_layer.cu.o] Error 1
Segmentation fault (core dumped)
CMake Error at cuda_compile_1_generated_concat_layer.cu.o.Release.cmake:280 (message):
Error generating file
/home/femifapo/software/openpose/3rdparty/caffe/build/src/caffe/CMakeFiles/cuda_compile_1.dir/layers/./cuda_compile_1_generated_concat_layer.cu.o

src/caffe/CMakeFiles/caffe.dir/build.make:139: recipe for target ‘src/caffe/CMakeFiles/cuda_compile_1.dir/layers/cuda_compile_1_generated_concat_layer.cu.o’ failed
make[2]: *** [src/caffe/CMakeFiles/cuda_compile_1.dir/layers/cuda_compile_1_generated_concat_layer.cu.o] Error 1
/home/femifapo/software/openpose/3rdparty/caffe/include/caffe/syncedmem.hpp(22): error: identifier “cudaMallocHost” is undefined

/home/femifapo/software/openpose/3rdparty/caffe/include/caffe/syncedmem.hpp(22): error: identifier “cudaGetErrorString” is undefined

/home/femifapo/software/openpose/3rdparty/caffe/include/caffe/syncedmem.hpp(39): error: identifier “cudaFreeHost” is undefined

/home/femifapo/software/openpose/3rdparty/caffe/include/caffe/syncedmem.hpp(39): error: identifier “cudaGetErrorString” is undefined

Segmentation fault (core dumped)
CMake Error at cuda_compile_1_generated_clip_layer.cu.o.Release.cmake:280 (message):
Error generating file
/home/femifapo/software/openpose/3rdparty/caffe/build/src/caffe/CMakeFiles/cuda_compile_1.dir/layers/./cuda_compile_1_generated_clip_layer.cu.o

src/caffe/CMakeFiles/caffe.dir/build.make:132: recipe for target ‘src/caffe/CMakeFiles/cuda_compile_1.dir/layers/cuda_compile_1_generated_clip_layer.cu.o’ failed
make[2]: *** [src/caffe/CMakeFiles/cuda_compile_1.dir/layers/cuda_compile_1_generated_clip_layer.cu.o] Error 1
/home/femifapo/software/openpose/3rdparty/caffe/include/caffe/util/math_functions.hpp(179): error: identifier “cudaMemset” is undefined

/home/femifapo/software/openpose/3rdparty/caffe/include/caffe/util/math_functions.hpp(179): error: identifier “cudaGetErrorString” is undefined

Segmentation fault (core dumped)
CMake Error at cuda_compile_1_generated_bias_layer.cu.o.Release.cmake:280 (message):
Error generating file
/home/femifapo/software/openpose/3rdparty/caffe/build/src/caffe/CMakeFiles/cuda_compile_1.dir/layers/./cuda_compile_1_generated_bias_layer.cu.o

src/caffe/CMakeFiles/caffe.dir/build.make:118: recipe for target ‘src/caffe/CMakeFiles/cuda_compile_1.dir/layers/cuda_compile_1_generated_bias_layer.cu.o’ failed
make[2]: *** [src/caffe/CMakeFiles/cuda_compile_1.dir/layers/cuda_compile_1_generated_bias_layer.cu.o] Error 1
/home/femifapo/software/openpose/3rdparty/caffe/include/caffe/syncedmem.hpp(22): error: identifier “cudaMallocHost” is undefined

/home/femifapo/software/openpose/3rdparty/caffe/include/caffe/syncedmem.hpp(22): error: identifier “cudaGetErrorString” is undefined

/home/femifapo/software/openpose/3rdparty/caffe/include/caffe/syncedmem.hpp(39): error: identifier “cudaFreeHost” is undefined

/home/femifapo/software/openpose/3rdparty/caffe/include/caffe/syncedmem.hpp(39): error: identifier “cudaGetErrorString” is undefined

Segmentation fault (core dumped)
CMake Error at cuda_compile_1_generated_batch_reindex_layer.cu.o.Release.cmake:280 (message):
Error generating file
/home/femifapo/software/openpose/3rdparty/caffe/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:111: recipe for target ‘src/caffe/CMakeFiles/cuda_compile_1.dir/layers/cuda_compile_1_generated_batch_reindex_layer.cu.o’ failed
make[2]: *** [src/caffe/CMakeFiles/cuda_compile_1.dir/layers/cuda_compile_1_generated_batch_reindex_layer.cu.o] Error 1
/home/femifapo/software/openpose/3rdparty/caffe/include/caffe/util/math_functions.hpp(179): error: identifier “cudaMemset” is undefined

/home/femifapo/software/openpose/3rdparty/caffe/include/caffe/util/math_functions.hpp(179): error: identifier “cudaGetErrorString” is undefined

Segmentation fault (core dumped)
CMake Error at cuda_compile_1_generated_cudnn_deconv_layer.cu.o.Release.cmake:280 (message):
Error generating file
/home/femifapo/software/openpose/3rdparty/caffe/build/src/caffe/CMakeFiles/cuda_compile_1.dir/layers/./cuda_compile_1_generated_cudnn_deconv_layer.cu.o

src/caffe/CMakeFiles/caffe.dir/build.make:174: recipe for target ‘src/caffe/CMakeFiles/cuda_compile_1.dir/layers/cuda_compile_1_generated_cudnn_deconv_layer.cu.o’ failed
make[2]: *** [src/caffe/CMakeFiles/cuda_compile_1.dir/layers/cuda_compile_1_generated_cudnn_deconv_layer.cu.o] Error 1
Segmentation fault (core dumped)
CMake Error at cuda_compile_1_generated_accuracy_layer.cu.o.Release.cmake:280 (message):
Error generating file
/home/femifapo/software/openpose/3rdparty/caffe/build/src/caffe/CMakeFiles/cuda_compile_1.dir/layers/./cuda_compile_1_generated_accuracy_layer.cu.o

src/caffe/CMakeFiles/caffe.dir/build.make:90: recipe for target ‘src/caffe/CMakeFiles/cuda_compile_1.dir/layers/cuda_compile_1_generated_accuracy_layer.cu.o’ failed
make[2]: *** [src/caffe/CMakeFiles/cuda_compile_1.dir/layers/cuda_compile_1_generated_accuracy_layer.cu.o] Error 1
Segmentation fault (core dumped)
CMake Error at cuda_compile_1_generated_bnll_layer.cu.o.Release.cmake:280 (message):
Error generating file
/home/femifapo/software/openpose/3rdparty/caffe/build/src/caffe/CMakeFiles/cuda_compile_1.dir/layers/./cuda_compile_1_generated_bnll_layer.cu.o

src/caffe/CMakeFiles/caffe.dir/build.make:125: recipe for target ‘src/caffe/CMakeFiles/cuda_compile_1.dir/layers/cuda_compile_1_generated_bnll_layer.cu.o’ failed
make[2]: *** [src/caffe/CMakeFiles/cuda_compile_1.dir/layers/cuda_compile_1_generated_bnll_layer.cu.o] Error 1
17 errors detected in the compilation of “/tmp/tmpxft_00002c6f_00000000-10_base_data_layer.compute_61.cpp1.ii”.
Segmentation fault (core dumped)
CMake Error at cuda_compile_1_generated_base_data_layer.cu.o.Release.cmake:280 (message):
Error generating file
/home/femifapo/software/openpose/3rdparty/caffe/build/src/caffe/CMakeFiles/cuda_compile_1.dir/layers/./cuda_compile_1_generated_base_data_layer.cu.o

CMake Error at cuda_compile_1_generated_crop_layer.cu.o.Release.cmake:280 (message):
Error generating file
/home/femifapo/software/openpose/3rdparty/caffe/build/src/caffe/CMakeFiles/cuda_compile_1.dir/layers/./cuda_compile_1_generated_crop_layer.cu.o

src/caffe/CMakeFiles/caffe.dir/build.make:97: recipe for target ‘src/caffe/CMakeFiles/cuda_compile_1.dir/layers/cuda_compile_1_generated_base_data_layer.cu.o’ failed
make[2]: *** [src/caffe/CMakeFiles/cuda_compile_1.dir/layers/cuda_compile_1_generated_base_data_layer.cu.o] Error 1
src/caffe/CMakeFiles/caffe.dir/build.make:160: recipe for target ‘src/caffe/CMakeFiles/cuda_compile_1.dir/layers/cuda_compile_1_generated_crop_layer.cu.o’ failed
make[2]: *** [src/caffe/CMakeFiles/cuda_compile_1.dir/layers/cuda_compile_1_generated_crop_layer.cu.o] Error 1
In file included from /home/femifapo/software/openpose/3rdparty/caffe/src/caffe/util/math_functions.cu:1:0:
/usr/local/cuda/include/math_functions.h:54:2: warning: #warning “math_functions.h is an internal header file and must not be used directly. This file will be removed in a future CUDA release. Please use cuda_runtime_api.h or cuda_runtime.h instead.” [-Wcpp]
#warning “math_functions.h is an internal header file and must not be used directly. This file will be removed in a future CUDA release. Please use cuda_runtime_api.h or cuda_runtime.h instead.”
^~~~~~~
Segmentation fault (core dumped)
CMake Error at cuda_compile_1_generated_cudnn_conv_layer.cu.o.Release.cmake:280 (message):
Error generating file
/home/femifapo/software/openpose/3rdparty/caffe/build/src/caffe/CMakeFiles/cuda_compile_1.dir/layers/./cuda_compile_1_generated_cudnn_conv_layer.cu.o

src/caffe/CMakeFiles/caffe.dir/build.make:167: recipe for target ‘src/caffe/CMakeFiles/cuda_compile_1.dir/layers/cuda_compile_1_generated_cudnn_conv_layer.cu.o’ failed
make[2]: *** [src/caffe/CMakeFiles/cuda_compile_1.dir/layers/cuda_compile_1_generated_cudnn_conv_layer.cu.o] Error 1
/usr/local/cuda/include/thrust/system/cuda/detail/error.inl(64): error: the global scope has no “cudaGetErrorString”

/usr/local/cuda/include/thrust/system/cuda/detail/error.inl(65): error: the global scope has no “cudaGetErrorName”

/usr/local/cuda/include/cuda_fp16.hpp(571): error: identifier “make_float2” is undefined

/usr/local/cuda/include/cuda_fp16.hpp(1539): error: identifier “__fmaf_rn” is undefined

/usr/local/cuda/include/cuda_fp16.hpp(1665): error: identifier “__float2int_rn” is undefined

/usr/local/cuda/include/cuda_fp16.hpp(1667): error: identifier “__fmaf_rn” is undefined

/usr/local/cuda/include/cuda_fp16.hpp(1679): error: identifier “__fmaf_rn” is undefined

/usr/local/cuda/include/cuda_fp16.hpp(1683): error: identifier “__fmaf_rn” is undefined

/usr/local/cuda/include/cuda_fp16.hpp(1686): error: identifier “__fmaf_rn” is undefined

/usr/local/cuda/include/cuda_fp16.hpp(1690): error: identifier “__fmaf_rn” is undefined

/usr/local/cuda/include/cuda_fp16.hpp(1693): error: identifier “__fmaf_rn” is undefined

/usr/local/cuda/include/thrust/system/cuda/detail/cub/block/…/util_ptx.cuh(266): error: identifier “__syncthreads_and” is undefined

/usr/local/cuda/include/thrust/system/cuda/detail/cub/block/…/util_ptx.cuh(276): error: identifier “__syncwarp” is undefined

/usr/local/cuda/include/thrust/system/cuda/detail/cub/block/…/util_ptx.cuh(287): error: identifier “__any_sync” is undefined

/usr/local/cuda/include/thrust/system/cuda/detail/cub/block/…/util_ptx.cuh(300): error: identifier “__all_sync” is undefined

/usr/local/cuda/include/thrust/system/cuda/detail/cub/block/…/util_ptx.cuh(313): error: identifier “__ballot_sync” is undefined

/usr/local/cuda/include/thrust/system/cuda/detail/cub/block/…/util_ptx.cuh(411): error: identifier “threadIdx” is undefined

/usr/local/cuda/include/thrust/system/cuda/detail/cub/block/…/iterator/…/util_device.cuh(206): error: identifier “cudaDeviceSynchronize” is undefined

/usr/local/cuda/include/thrust/system/cuda/detail/core/util.h(444): error: identifier “cudaDeviceGetAttribute” is undefined

/usr/local/cuda/include/thrust/system/cuda/detail/core/util.h(495): error: identifier “cudaGetDevice” is undefined

/usr/local/cuda/include/thrust/system/cuda/detail/core/util.h(501): error: identifier “cudaDeviceGetAttribute” is undefined

/usr/local/cuda/include/thrust/system/cuda/detail/core/util.h(514): error: identifier “cudaGetDevice” is undefined

/usr/local/cuda/include/thrust/system/cuda/detail/core/util.h(520): error: identifier “cudaDeviceGetAttribute” is undefined

/usr/local/cuda/include/thrust/system/cuda/detail/core/util.h(809): error: identifier “cudaGetDevice” is undefined

/usr/local/cuda/include/thrust/system/cuda/detail/core/util.h(813): error: identifier “cudaDeviceGetAttribute” is undefined

/usr/local/cuda/include/thrust/system/cuda/memory_resource.h(75): error: the global scope has no “cudaMallocManaged”

/usr/local/cuda/include/thrust/system/cuda/memory_resource.h(78): error: identifier “cudaMalloc” is undefined

/usr/local/cuda/include/thrust/system/cuda/memory_resource.h(78): error: identifier “cudaFree” is undefined

/usr/local/cuda/include/thrust/system/cuda/memory_resource.h(84): error: identifier “cudaMallocHost” is undefined

/usr/local/cuda/include/thrust/system/cuda/memory_resource.h(84): error: identifier “cudaFreeHost” is undefined

/home/femifapo/software/openpose/3rdparty/caffe/include/caffe/util/math_functions.hpp(179): error: identifier “cudaMemset” is undefined

/home/femifapo/software/openpose/3rdparty/caffe/include/caffe/util/math_functions.hpp(179): error: identifier “cudaGetErrorString” is undefined

/home/femifapo/software/openpose/3rdparty/caffe/src/caffe/util/math_functions.cu(80): error: identifier “cudaMemcpy” is undefined

/home/femifapo/software/openpose/3rdparty/caffe/src/caffe/util/math_functions.cu(80): error: identifier “cudaGetErrorString” is undefined

Segmentation fault (core dumped)
CMake Error at cuda_compile_1_generated_math_functions.cu.o.Release.cmake:280 (message):
Error generating file
/home/femifapo/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