It seems that there are some problems when I was installing caffe2. Could someone help?
/raid5/hithere/envs/pytorch
+ for arg in '"$@"'
+ [[ caffe2 == \n\c\c\l ]]
+ [[ caffe2 == \g\l\o\o ]]
+ [[ caffe2 == \c\a\f\f\e\2 ]]
+ pushd /raid5/hithere/envs/pytorch
/raid5/hithere/envs/pytorch /raid5/hithere/envs/pytorch
+ build_caffe2
+ mkdir -p build
+ pushd build
/raid5/hithere/envs/pytorch/build /raid5/hithere/envs/pytorch /raid5/hithere/envs/pytorch
+ cmake .. -DCMAKE_BUILD_TYPE=Release -DBUILD_CAFFE2=OFF -DBUILD_ATEN=ON -DBUILD_PYTHON=OFF -DBUILD_BINARY=OFF -DBUILD_SHARED_LIBS=ON -DUSE_CUDA=1 -DUSE_ROCM=0 -DUSE_NNPACK=1 -DCUDNN_INCLUDE_DIR=/home/hithere/dependencies/cudnn_v7_8/include -DCUDNN_LIB_DIR=/home/hithere/dependencies/cudnn_v7_8/lib64 -DCUDNN_LIBRARY=/home/hithere/dependencies/cudnn_v7_8/lib64/libcudnn.so.7 -DUSE_MKLDNN=1 -DMKLDNN_INCLUDE_DIR=/home/hithere/anaconda2/envs/t0.5py2.7/bin/../include -DMKLDNN_LIB_DIR=/home/hithere/anaconda2/envs/t0.5py2.7/bin/../lib -DMKLDNN_LIBRARY=/home/hithere/anaconda2/envs/t0.5py2.7/bin/../lib/libmkldnn.so -DCMAKE_INSTALL_PREFIX=/raid5/hithere/envs/pytorch/torch/lib/tmp_install -DCMAKE_EXPORT_COMPILE_COMMANDS=1 '-DCMAKE_C_FLAGS= /usr/bin/g++-4.8' '-DCMAKE_CXX_FLAGS= /usr/bin/g++-4.8' '-DCMAKE_EXE_LINKER_FLAGS= /usr/bin/g++-4.8' '-DCMAKE_SHARED_LINKER_FLAGS= /usr/bin/g++-4.8'
-- The CXX compiler identification is GNU 4.8.5
-- The C compiler identification is GNU 4.8.5
-- Check for working CXX compiler: /usr/bin/g++-4.8
-- Check for working CXX compiler: /usr/bin/g++-4.8 -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- 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
-- Not forcing any particular BLAS to be found
-- Performing Test CAFFE2_LONG_IS_INT32_OR_64
-- Performing Test CAFFE2_LONG_IS_INT32_OR_64 - Success
-- Does not need to define long separately.
-- Performing Test CAFFE2_EXCEPTION_PTR_SUPPORTED
-- Performing Test CAFFE2_EXCEPTION_PTR_SUPPORTED - Success
-- std::exception_ptr is supported.
-- Performing Test CAFFE2_IS_NUMA_AVAILABLE
-- Performing Test CAFFE2_IS_NUMA_AVAILABLE - Failed
-- NUMA is not available
-- Performing Test CAFFE2_NEED_TO_TURN_OFF_DEPRECATION_WARNING
-- Performing Test CAFFE2_NEED_TO_TURN_OFF_DEPRECATION_WARNING - Failed
-- Turning off deprecation warning due to glog.
-- Performing Test CAFFE2_COMPILER_SUPPORTS_AVX2_EXTENSIONS
-- Performing Test CAFFE2_COMPILER_SUPPORTS_AVX2_EXTENSIONS - Success
-- Current compiler supports avx2 extention. Will build perfkernels.
-- Performing Test COMPILER_SUPPORTS_HIDDEN_VISIBILITY
-- Performing Test COMPILER_SUPPORTS_HIDDEN_VISIBILITY - Success
-- Performing Test COMPILER_SUPPORTS_HIDDEN_INLINE_VISIBILITY
-- Performing Test COMPILER_SUPPORTS_HIDDEN_INLINE_VISIBILITY - Success
-- Building using own protobuf under third_party per request.
-- Use custom protobuf build.
-- 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
-- Caffe2 protobuf include directory: $<BUILD_INTERFACE:/raid5/hithere/envs/pytorch/third_party/protobuf/src>$<INSTALL_INTERFACE:include>
-- The BLAS backend of choice:MKL
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of void*
-- Check size of void* - done
-- Checking for [mkl_gf_lp64 - mkl_gnu_thread - mkl_core - gomp - pthread - m - dl]
-- Library mkl_gf_lp64: /home/hithere/anaconda2/envs/t0.5py2.7/lib/libmkl_gf_lp64.so
-- Library mkl_gnu_thread: /home/hithere/anaconda2/envs/t0.5py2.7/lib/libmkl_gnu_thread.so
-- Library mkl_core: /home/hithere/anaconda2/envs/t0.5py2.7/lib/libmkl_core.so
-- Found OpenMP_C: -fopenmp (found version "3.1")
-- Found OpenMP_CXX: -fopenmp (found version "3.1")
-- Found OpenMP: TRUE (found version "3.1")
-- Library gomp: -fopenmp
-- Library pthread: /usr/lib/x86_64-linux-gnu/libpthread.so
-- Library m: /usr/lib/x86_64-linux-gnu/libm.so
-- Library dl: /usr/lib/x86_64-linux-gnu/libdl.so
-- Looking for cblas_sgemm
-- Looking for cblas_sgemm - found
-- Brace yourself, we are building NNPACK
-- The ASM compiler identification is GNU
-- Found assembler: /usr/bin/cc
-- Found PythonInterp: /home/hithere/anaconda2/envs/t0.5py2.7/bin/python (found version "2.7.15")
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - yes
-- Could NOT find pybind11 (missing: pybind11_INCLUDE_DIR)
-- Found CUDA: /usr/local/cuda-8.0 (found suitable version "8.0", minimum required is "7.0")
-- Found CUDNN: /home/hithere/dependencies/cudnn_v7_8/include
-- Caffe2: CUDA detected: 8.0
-- Found cuDNN: v7.0.5 (include: /home/hithere/dependencies/cudnn_v7_8/include, library: /home/hithere/dependencies/cudnn_v7_8/lib64/libcudnn.so.7)
-- Set CUDA arch from CUDA_ARCH_NAME: Auto
-- Automatic GPU detection failed. Building for all known architectures.
-- Added CUDA NVCC flags for: sm_30 sm_35 sm_50 sm_52 sm_60 sm_61
-- Found NCCL: /raid5/hithere/envs/pytorch/torch/lib/tmp_install/include
-- Found NCCL (include: /raid5/hithere/envs/pytorch/torch/lib/tmp_install/include, library: /raid5/hithere/envs/pytorch/torch/lib/tmp_install/lib/libnccl.so)
-- Performing Test SUPPORT_GLIBCXX_USE_C99
-- Performing Test SUPPORT_GLIBCXX_USE_C99 - Success
-- Found CUDA with FP16 support, compiling with torch.CudaHalfTensor
-- Removing -DNDEBUG from compile flags
-- Found OpenMP_C: -fopenmp (found version "3.1")
-- Found OpenMP_CXX: -fopenmp (found version "3.1")
-- Compiling with OpenMP support
-- Checking prototype magma_get_sgeqrf_nb for MAGMA_V2 - True
-- Compiling with MAGMA support
-- MAGMA INCLUDE DIRECTORIES: /home/hithere/anaconda2/envs/t0.5py2.7/include
-- MAGMA LIBRARIES: /home/hithere/anaconda2/envs/t0.5py2.7/lib/libmagma.a
-- MAGMA V2 check: 1
-- Could not find hardware support for NEON on this machine.
-- No OMAP3 processor on this machine.
-- No OMAP4 processor on this machine.
-- Performing Test COMPILER_WORKS
-- Performing Test COMPILER_WORKS - Failed
CMake Error at cmake/Dependencies.cmake:913 (MESSAGE):
Could not run a simple program built with your compiler. If you are trying
to use -fsanitize=address, make sure libasan is properly installed on your
system (you can confirm if the problem is this by attempting to build and
run a small program.)
Call Stack (most recent call first):
CMakeLists.txt:189 (include)
-- Configuring incomplete, errors occurred!
See also "/raid5/hithere/envs/pytorch/build/CMakeFiles/CMakeOutput.log".
See also "/raid5/hithere/envs/pytorch/build/CMakeFiles/CMakeError.log".
Failed to run 'bash tools/build_pytorch_libs.sh --with-cuda --with-nnpack --with-mkldnn nccl caffe2 nanopb libshm gloo THD'