Repository: pytorch
Issue: Failed to config caffe2_rocksdb in cmake
Labels: module: build,triaged

## Bug

Got this today.
Should be something new since I was able to build with exact same script a few days ago.
RocksDB is freshly compiled with CMake for latest release tag (6.5.2) a few hours before this.
Issue reproduced on both Ubuntu 18.04 and CentOS 7.

```
#9 537.6 CMake Error at modules/rocksdb/CMakeLists.txt:58 (add_library):
#9 537.6   Target "caffe2_rocksdb" links to target "snappy::snappy" but the target was
#9 537.6   not found.  Perhaps a find_package() call is missing for an IMPORTED
#9 537.6   target, or an ALIAS target is missing?
#9 537.6
#9 537.6
#9 537.6 CMake Error at modules/rocksdb/CMakeLists.txt:58 (add_library):
#9 537.6   Target "caffe2_rocksdb" links to target "lz4::lz4" but the target was not
#9 537.6   found.  Perhaps a find_package() call is missing for an IMPORTED target, or
#9 537.6   an ALIAS target is missing?
#9 537.6
#9 537.6
#9 537.6 CMake Error at modules/rocksdb/CMakeLists.txt:58 (add_library):
#9 537.6   Target "caffe2_rocksdb" links to target "zstd::zstd" but the target was not
#9 537.6   found.  Perhaps a find_package() call is missing for an IMPORTED target, or
#9 537.6   an ALIAS target is missing?
#9 537.6
#9 537.6
#9 537.6 CMake Error at modules/rocksdb/CMakeLists.txt:58 (add_library):
#9 537.6   Target "caffe2_rocksdb" links to target "NUMA::NUMA" but the target was not
#9 537.6   found.  Perhaps a find_package() call is missing for an IMPORTED target, or
#9 537.6   an ALIAS target is missing?
```

## Environment

 - PyTorch Version (e.g., 1.0): master
 - OS (e.g., Linux): CentOS 7 / Ubuntu 18.04
 - How you installed PyTorch (`conda`, `pip`, source): source
 - Build command you used (if compiling from source): cmake+ninja+gcc8
 - Python version: 3.6
 - CUDA/cuDNN version: 10.2

## Additional context

Screenshot
![image](https://user-images.githubusercontent.com/5203025/70832015-deece600-1da8-11ea-93ee-1aa7b55741dc.png)

Full log in case needed:
```
#9 515.1 ++ cmake -DATEN_NO_TEST=ON -DBLAS=MKL -DBUILD_BINARY=ON -DBUILD_CUSTOM_PROTOBUF=OFF -DBUILD_SHARED_LIBS=ON -DBUILD_TEST=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=gcc-8 -DCMAKE_CXX_COMPILER=g++-8 -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_CUDA_COMPILER_LAUNCHER=ccache '-DCMAKE_C_FLAGS=-fdebug-prefix-map='\''/tmp/scratch'\''='\''/usr/local/src'\'' -g -march=haswell -mtune=generic' '-DCMAKE_CXX_FLAGS=-fdebug-prefix-map='\''/tmp/scratch'\''='\''/usr/local/src'\'' -g -march=haswell -mtune=generic' -DCMAKE_INSTALL_PREFIX=/tmp/scratch/pytorch/install.ha2MkvZc8O/root/usr/local -DCMAKE_POLICY_DEFAULT_CMP0003=NEW -DCMAKE_POLICY_DEFAULT_CMP0060=NEW -DCMAKE_VERBOSE_MAKEFILE=ON -DCPUINFO_BUILD_TOOLS=ON -DINSTALL_TEST=ON -DPYTHON_EXECUTABLE=/usr/bin/python3 '-DTORCH_CUDA_ARCH_LIST=Pascal;Volta' -DUSE_FBGEMM=ON -DUSE_GFLAGS=ON -DUSE_GLOG=ON -DUSE_LEVELDB=ON -DUSE_LMDB=ON -DUSE_MKLDNN=ON -DUSE_NATIVE_ARCH=OFF -DUSE_OBSERVERS=ON -DUSE_OPENCV=ON -DUSE_OPENMP=ON -DUSE_PROF=ON -DUSE_ROCKSDB=ON -DUSE_SYSTEM_EIGEN_INSTALL=ON -DUSE_SYSTEM_NCCL=ON -DUSE_TENSORRT=OFF -DUSE_ZMQ=ON -DUSE_ZSTD=OFF -DWITH_BLAS=mkl -GNinja ..
#9 515.2 -- The CXX compiler identification is GNU 8.3.0
#9 515.3 -- The C compiler identification is GNU 8.3.0
#9 515.3 -- Check for working CXX compiler: /usr/bin/g++-8
#9 515.4 -- Check for working CXX compiler: /usr/bin/g++-8 -- works
#9 515.4 -- Detecting CXX compiler ABI info
#9 515.5 -- Detecting CXX compiler ABI info - done
#9 515.6 -- Detecting CXX compile features
#9 515.6 -- Detecting CXX compile features - done
#9 515.6 -- Check for working C compiler: /usr/bin/gcc-8
#9 515.6 -- Check for working C compiler: /usr/bin/gcc-8 -- works
#9 515.6 -- Detecting C compiler ABI info
#9 515.7 -- Detecting C compiler ABI info - done
#9 515.8 -- Detecting C compile features
#9 515.8 -- Detecting C compile features - done
#9 515.8 -- Performing Test COMPILER_WORKS
#9 515.9 -- Performing Test COMPILER_WORKS - Success
#9 515.9 -- Performing Test SUPPORT_GLIBCXX_USE_C99
#9 516.1 -- Performing Test SUPPORT_GLIBCXX_USE_C99 - Success
#9 516.1 -- Performing Test CAFFE2_EXCEPTION_PTR_SUPPORTED
#9 516.3 -- Performing Test CAFFE2_EXCEPTION_PTR_SUPPORTED - Success
#9 516.3 -- std::exception_ptr is supported.
#9 516.3 -- Performing Test CAFFE2_IS_NUMA_AVAILABLE
#9 516.4 -- Performing Test CAFFE2_IS_NUMA_AVAILABLE - Success
#9 516.4 -- NUMA is available
#9 516.4 -- Performing Test CAFFE2_NEED_TO_TURN_OFF_DEPRECATION_WARNING
#9 516.7 -- Performing Test CAFFE2_NEED_TO_TURN_OFF_DEPRECATION_WARNING - Success
#9 516.7 -- Performing Test CAFFE2_COMPILER_SUPPORTS_AVX2_EXTENSIONS
#9 517.0 -- Performing Test CAFFE2_COMPILER_SUPPORTS_AVX2_EXTENSIONS - Success
#9 517.0 -- Current compiler supports avx2 extension. Will build perfkernels.
#9 517.0 -- Performing Test CAFFE2_COMPILER_SUPPORTS_AVX512_EXTENSIONS
#9 517.2 -- Performing Test CAFFE2_COMPILER_SUPPORTS_AVX512_EXTENSIONS - Success
#9 517.2 -- Current compiler supports avx512f extension. Will build fbgemm.
#9 517.2 -- Performing Test COMPILER_SUPPORTS_HIDDEN_VISIBILITY
#9 517.6 -- Performing Test COMPILER_SUPPORTS_HIDDEN_VISIBILITY - Success
#9 517.6 -- Performing Test COMPILER_SUPPORTS_HIDDEN_INLINE_VISIBILITY
#9 517.7 -- Performing Test COMPILER_SUPPORTS_HIDDEN_INLINE_VISIBILITY - Success
#9 517.7 -- Performing Test COMPILER_SUPPORTS_RDYNAMIC
#9 517.7 -- Performing Test COMPILER_SUPPORTS_RDYNAMIC - Success
#9 517.9 -- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.11")
#9 517.9 -- Caffe2: Found protobuf with new-style protobuf targets.
#9 517.9 -- Caffe2 protobuf include directory: /usr/local/include
#9 517.9 -- Looking for pthread.h
#9 517.9 -- Looking for pthread.h - found
#9 517.9 -- Performing Test CMAKE_HAVE_LIBC_PTHREAD
#9 518.0 -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
#9 518.0 -- Looking for pthread_create in pthreads
#9 518.0 -- Looking for pthread_create in pthreads - not found
#9 518.0 -- Looking for pthread_create in pthread
#9 518.1 -- Looking for pthread_create in pthread - found
#9 518.1 -- Found Threads: TRUE
#9 518.1 -- Trying to find preferred BLAS backend of choice: MKL
#9 518.1 -- MKL_THREADING = OMP
#9 518.1 -- Looking for sys/types.h
#9 518.2 -- Looking for sys/types.h - found
#9 518.2 -- Looking for stdint.h
#9 518.2 -- Looking for stdint.h - found
#9 518.2 -- Looking for stddef.h
#9 518.3 -- Looking for stddef.h - found
#9 518.3 -- Check size of void*
#9 518.4 -- Check size of void* - done
#9 518.4 -- Checking for [mkl_intel_lp64 - mkl_gnu_thread - mkl_core - gomp - pthread - m - dl]
#9 518.4 --   Library mkl_intel_lp64: /opt/intel/mkl/lib/intel64/libmkl_intel_lp64.so
#9 518.4 --   Library mkl_gnu_thread: /opt/intel/mkl/lib/intel64/libmkl_gnu_thread.so
#9 518.4 --   Library mkl_core: /opt/intel/mkl/lib/intel64/libmkl_core.so
#9 518.8 --   Library gomp: -fopenmp
#9 518.8 --   Library pthread: /usr/lib/x86_64-linux-gnu/libpthread.so
#9 518.8 --   Library m: /usr/lib/x86_64-linux-gnu/libm.so
#9 518.8 --   Library dl: /usr/lib/x86_64-linux-gnu/libdl.so
#9 518.8 -- Looking for cblas_sgemm
#9 519.0 -- Looking for cblas_sgemm - found
#9 519.1 -- MKL library found
#9 519.1 -- MKL libraries: /opt/intel/mkl/lib/intel64/libmkl_intel_lp64.so;/opt/intel/mkl/lib/intel64/libmkl_gnu_thread.so;/opt/intel/mkl/lib/intel64/libmkl_core.so;-fopenmp;/usr/lib/x86_64-linux-gnu/libpthread.so;/usr/lib/x86_64-linux-gnu/libm.so;/usr/lib/x86_64-linux-gnu/libdl.so
#9 519.1 -- MKL include directory: /opt/intel/mkl/include
#9 519.1 -- MKL OpenMP type: GNU
#9 519.1 -- MKL OpenMP library: -fopenmp
#9 519.1 -- The ASM compiler identification is GNU
#9 519.1 -- Found assembler: /usr/bin/gcc-8
#9 519.1 -- Check if compiler accepts -pthread
#9 519.2 -- Check if compiler accepts -pthread - yes
#9 519.3 -- Brace yourself, we are building NNPACK
#9 519.3 -- Performing Test NNPACK_ARCH_IS_X86_32
#9 519.4 -- Performing Test NNPACK_ARCH_IS_X86_32 - Failed
#9 519.4 -- Found PythonInterp: /usr/bin/python3 (found version "3.6.9")
#9 519.4 -- NNPACK backend is x86-64
#9 519.4 -- Caffe2: Found gflags with new-style gflags target.
#9 519.4 -- Caffe2: Found glog with new-style glog target.
#9 519.5 -- LLVM FileCheck Found: /usr/local/bin/FileCheck
#9 519.5 -- Found Git: /usr/bin/git (found version "2.17.1")
#9 519.5 -- git Version: v1.4.0-505be96a
#9 519.5 -- Version: 1.4.0
#9 519.5 -- Performing Test HAVE_CXX_FLAG_STD_CXX11
#9 519.6 -- Performing Test HAVE_CXX_FLAG_STD_CXX11 - Success
#9 519.6 -- Performing Test HAVE_CXX_FLAG_WALL
#9 519.7 -- Performing Test HAVE_CXX_FLAG_WALL - Success
#9 519.7 -- Performing Test HAVE_CXX_FLAG_WEXTRA
#9 519.7 -- Performing Test HAVE_CXX_FLAG_WEXTRA - Success
#9 519.8 -- Performing Test HAVE_CXX_FLAG_WSHADOW
#9 519.8 -- Performing Test HAVE_CXX_FLAG_WSHADOW - Success
#9 519.8 -- Performing Test HAVE_CXX_FLAG_WERROR
#9 519.9 -- Performing Test HAVE_CXX_FLAG_WERROR - Success
#9 519.9 -- Performing Test HAVE_CXX_FLAG_PEDANTIC
#9 520.0 -- Performing Test HAVE_CXX_FLAG_PEDANTIC - Success
#9 520.0 -- Performing Test HAVE_CXX_FLAG_PEDANTIC_ERRORS
#9 520.1 -- Performing Test HAVE_CXX_FLAG_PEDANTIC_ERRORS - Success
#9 520.1 -- Performing Test HAVE_CXX_FLAG_WSHORTEN_64_TO_32
#9 520.1 -- Performing Test HAVE_CXX_FLAG_WSHORTEN_64_TO_32 - Failed
#9 520.1 -- Performing Test HAVE_CXX_FLAG_WFLOAT_EQUAL
#9 520.2 -- Performing Test HAVE_CXX_FLAG_WFLOAT_EQUAL - Success
#9 520.2 -- Performing Test HAVE_CXX_FLAG_FSTRICT_ALIASING
#9 520.3 -- Performing Test HAVE_CXX_FLAG_FSTRICT_ALIASING - Success
#9 520.3 -- Performing Test HAVE_CXX_FLAG_WNO_DEPRECATED_DECLARATIONS
#9 520.3 -- Performing Test HAVE_CXX_FLAG_WNO_DEPRECATED_DECLARATIONS - Success
#9 520.3 -- Performing Test HAVE_CXX_FLAG_WSTRICT_ALIASING
#9 520.4 -- Performing Test HAVE_CXX_FLAG_WSTRICT_ALIASING - Success
#9 520.4 -- Performing Test HAVE_CXX_FLAG_WD654
#9 520.5 -- Performing Test HAVE_CXX_FLAG_WD654 - Failed
#9 520.5 -- Performing Test HAVE_CXX_FLAG_WTHREAD_SAFETY
#9 520.6 -- Performing Test HAVE_CXX_FLAG_WTHREAD_SAFETY - Failed
#9 520.6 -- Performing Test HAVE_CXX_FLAG_COVERAGE
#9 520.6 -- Performing Test HAVE_CXX_FLAG_COVERAGE - Success
#9 520.6 -- Performing Test HAVE_STD_REGEX
#9 520.6 -- Performing Test HAVE_STD_REGEX
#9 523.5 -- Performing Test HAVE_STD_REGEX -- success
#9 523.5 -- Performing Test HAVE_GNU_POSIX_REGEX
#9 523.5 -- Performing Test HAVE_GNU_POSIX_REGEX
#9 523.9 -- Performing Test HAVE_GNU_POSIX_REGEX -- failed to compile
#9 523.9 -- Performing Test HAVE_POSIX_REGEX
#9 523.9 -- Performing Test HAVE_POSIX_REGEX
#9 524.3 -- Performing Test HAVE_POSIX_REGEX -- success
#9 524.3 -- Performing Test HAVE_STEADY_CLOCK
#9 524.3 -- Performing Test HAVE_STEADY_CLOCK
#9 524.4 -- Performing Test HAVE_STEADY_CLOCK -- success
#9 524.5 -- Performing Test COMPILER_SUPPORTS_AVX512
#9 524.6 -- Performing Test COMPILER_SUPPORTS_AVX512 - Success
#9 524.6 -- Found OpenMP_C: -fopenmp (found version "4.5")
#9 524.6 -- Found OpenMP_CXX: -fopenmp (found version "4.5")
#9 524.7 -- Found OpenMP: TRUE (found version "4.5")
#9 524.7 -- Performing Test __CxxFlag__fmerge_all_constants
#9 524.8 -- Performing Test __CxxFlag__fmerge_all_constants - Success
#9 524.8 ** AsmJit Summary **
#9 524.8    ASMJIT_DIR=/tmp/scratch/pytorch/third_party/fbgemm/third_party/asmjit
#9 524.8    ASMJIT_TEST=FALSE
#9 524.8    ASMJIT_TARGET_TYPE=STATIC
#9 524.8    ASMJIT_DEPS=pthread;rt
#9 524.8    ASMJIT_LIBS=asmjit;pthread;rt
#9 524.8    ASMJIT_CFLAGS=-DASMJIT_STATIC
#9 524.8    ASMJIT_PRIVATE_CFLAGS=-Wall;-Wextra;-fno-math-errno;-fno-threadsafe-statics;-DASMJIT_STATIC
#9 524.8    ASMJIT_PRIVATE_CFLAGS_DBG=
#9 524.8    ASMJIT_PRIVATE_CFLAGS_REL=-O2;-fmerge-all-constants
#9 524.8 -- Found LMDB: /usr/local/include
#9 524.8 -- Found lmdb    (include: /usr/local/include, library: /usr/local/lib/liblmdb.so)
#9 524.8 -- Found LevelDB: /usr/local/include
#9 524.8 -- Found LevelDB (include: /usr/local/include, library: /usr/local/lib/libleveldb.a)
#9 524.8 -- Found Snappy: /usr/local/include
#9 524.8 -- Found Snappy  (include: /usr/local/include, library: /usr/local/lib/libsnappy.so)
#9 524.8 -- Found Numa: /usr/include
#9 524.8 -- Found Numa  (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libnuma.so)
#9 525.1 -- Could NOT find ZMQ (missing: ZMQ_INCLUDE_DIR ZMQ_LIBRARIES)
#9 525.1 CMake Warning at cmake/Dependencies.cmake:618 (message):
#9 525.1   Not compiling with ZMQ.  Suppress this warning with -DUSE_ZMQ=OFF
#9 525.1 Call Stack (most recent call first):
#9 525.1   CMakeLists.txt:390 (include)
#9 525.1
#9 525.1
#9 525.2 -- OpenCV found (/usr/local/lib/cmake/opencv4)
#9 525.2 -- Found system Eigen at /usr/local/include/eigen3
#9 525.2 Python 3.6.9
#9 525.2 -- Setting Python's include dir to /usr/include/python3.6m from distutils.sysconfig
#9 525.2 -- Setting Python's library to /usr/lib/python3.6
#9 525.3 -- Found PythonInterp: /usr/bin/python3 (found suitable version "3.6.9", minimum required is "2.7")
#9 525.3 -- Found PythonLibs: /usr/lib/python3.6 (found suitable version "3.6.9", minimum required is "2.7")
#9 525.8 -- Found NumPy: /usr/local/lib/python3.6/dist-packages/numpy/core/include (found version "1.17.4")
#9 525.8 -- NumPy ver. 1.17.4 found (include: /usr/local/lib/python3.6/dist-packages/numpy/core/include)
#9 525.8 -- Found PythonInterp: /usr/bin/python3 (found version "3.6.9")
#9 525.9 -- Found PythonLibs: python3.6m
#9 525.9 -- System pybind11 found
#9 525.9 -- pybind11 include dirs: /usr/local/include;/usr/include/python3.6m
#9 526.0 -- Could NOT find MPI_C (missing: MPI_C_LIB_NAMES MPI_C_HEADER_DIR MPI_C_WORKS)
#9 526.1 -- Could NOT find MPI_CXX (missing: MPI_CXX_LIB_NAMES MPI_CXX_HEADER_DIR MPI_CXX_WORKS)
#9 526.1 -- Could NOT find MPI (missing: MPI_C_FOUND MPI_CXX_FOUND)
#9 526.1 CMake Warning at cmake/Dependencies.cmake:838 (message):
#9 526.1   Not compiling with MPI.  Suppress this warning with -DUSE_MPI=OFF
#9 526.1 Call Stack (most recent call first):
#9 526.1   CMakeLists.txt:390 (include)
#9 526.1
#9 526.1
#9 526.1 -- Adding OpenMP CXX_FLAGS: -fopenmp
#9 526.1 -- Will link against OpenMP libraries: /usr/lib/gcc/x86_64-linux-gnu/8/libgomp.so;/usr/lib/x86_64-linux-gnu/libpthread.so
#9 526.2 -- Found CUDA: /usr/local/cuda (found version "10.2")
#9 526.2 -- Caffe2: CUDA detected: 10.2
#9 526.2 -- Caffe2: CUDA nvcc is: /usr/local/cuda/bin/nvcc
#9 526.2 -- Caffe2: CUDA toolkit directory: /usr/local/cuda
#9 526.3 -- Caffe2: Header version is: 10.2
#9 526.3 -- Found CUDNN: /usr/lib/x86_64-linux-gnu/libcudnn.so
#9 526.3 -- Found cuDNN: v7.6.5  (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libcudnn.so)
#9 526.3 -- Added CUDA NVCC flags for: -gencode;arch=compute_60,code=sm_60;-gencode;arch=compute_61,code=sm_61;-gencode;arch=compute_70,code=sm_70
#9 526.3 -- Found NCCL: /usr/include
#9 526.3 -- Determining NCCL version from /usr/include/nccl.h...
#9 526.3 -- Looking for NCCL_VERSION_CODE
#9 526.4 -- Looking for NCCL_VERSION_CODE - not found
#9 526.4 -- NCCL version < 2.3.5-5
#9 526.4 -- Found NCCL (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libnccl.so)
#9 526.4 -- Could NOT find CUB (missing: CUB_INCLUDE_DIR)
#9 526.4 CMake Warning (dev) at third_party/gloo/CMakeLists.txt:21 (option):
#9 526.4   Policy CMP0077 is not set: option() honors normal variables.  Run "cmake
#9 526.4   --help-policy CMP0077" for policy details.  Use the cmake_policy command to
#9 526.4   set the policy and suppress this warning.
#9 526.4
#9 526.4   For compatibility with older versions of CMake, option is clearing the
#9 526.4   normal variable 'BUILD_BENCHMARK'.
#9 526.4 This warning is for project developers.  Use -Wno-dev to suppress it.
#9 526.4
#9 526.4 -- Found CUDA: /usr/local/cuda (found suitable version "10.2", minimum required is "7.0")
#9 526.4 -- CUDA detected: 10.2
#9 526.4 -- Could NOT find NCCL (missing: NCCL_INCLUDE_DIR)
#9 526.4 CMake Warning at third_party/gloo/cmake/Dependencies.cmake:96 (message):
#9 526.4   Not compiling with NCCL support.  Suppress this warning with
#9 526.4   -DUSE_NCCL=OFF.
#9 526.4 Call Stack (most recent call first):
#9 526.4   third_party/gloo/CMakeLists.txt:56 (include)
#9 526.4
#9 526.4
#9 526.5 CMake Warning at cmake/Dependencies.cmake:1083 (find_package):
#9 526.5   By not providing "Findhtrace.cmake" in CMAKE_MODULE_PATH this project has
#9 526.5   asked CMake to find a package configuration file provided by "htrace", but
#9 526.5   CMake did not find one.
#9 526.5
#9 526.5   Could not find a package configuration file provided by "htrace" with any
#9 526.5   of the following names:
#9 526.5
#9 526.5     htraceConfig.cmake
#9 526.5     htrace-config.cmake
#9 526.5
#9 526.5   Add the installation prefix of "htrace" to CMAKE_PREFIX_PATH or set
#9 526.5   "htrace_DIR" to a directory containing one of the above files.  If "htrace"
#9 526.5   provides a separate development package or SDK, be sure it has been
#9 526.5   installed.
#9 526.5 Call Stack (most recent call first):
#9 526.5   CMakeLists.txt:390 (include)
#9 526.5
#9 526.5
#9 526.5 CMake Warning at cmake/Dependencies.cmake:1087 (message):
#9 526.5   htrace not found.  Caffe2 will build without htrace prof
#9 526.5 Call Stack (most recent call first):
#9 526.5   CMakeLists.txt:390 (include)
#9 526.5
#9 526.5
#9 526.5 CMake Warning at cmake/Dependencies.cmake:1106 (message):
#9 526.5   Metal is only used in ios builds.
#9 526.5 Call Stack (most recent call first):
#9 526.5   CMakeLists.txt:390 (include)
#9 526.5
#9 526.5
#9 526.5 Generated: /tmp/scratch/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.proto
#9 526.5 Generated: /tmp/scratch/pytorch/build/third_party/onnx/onnx/onnx-operators_onnx_torch-ml.proto
#9 526.6 --
#9 526.6 -- ******** Summary ********
#9 526.6 --   CMake version         : 3.16.1
#9 526.6 --   CMake command         : /usr/local/bin/cmake
#9 526.6 --   System                : Linux
#9 526.6 --   C++ compiler          : /usr/bin/g++-8
#9 526.6 --   C++ compiler version  : 8.3.0
#9 526.6 --   CXX flags             : -fdebug-prefix-map='/tmp/scratch'='/usr/local/src' -g -march=haswell -mtune=generic -fvisibility-inlines-hidden -fopenmp -Wnon-virtual-dtor
#9 526.6 --   Build type            : Release
#9 526.6 --   Compile definitions   : TH_BLAS_MKL;ONNX_ML=1
#9 526.6 --   CMAKE_PREFIX_PATH     : /usr/local/cuda;/usr/local/cuda
#9 526.6 --   CMAKE_INSTALL_PREFIX  : /tmp/scratch/pytorch/install.ha2MkvZc8O/root/usr/local
#9 526.6 --   CMAKE_MODULE_PATH     : /tmp/scratch/pytorch/cmake/Modules;/usr/local/share/cmake/pybind11;/tmp/scratch/pytorch/cmake/public/../Modules_CUDA_fix
#9 526.6 --
#9 526.6 --   ONNX version          : 1.6.0
#9 526.6 --   ONNX NAMESPACE        : onnx_torch
#9 526.6 --   ONNX_BUILD_TESTS      : OFF
#9 526.6 --   ONNX_BUILD_BENCHMARKS : OFF
#9 526.6 --   ONNX_USE_LITE_PROTO   : OFF
#9 526.6 --   ONNXIFI_DUMMY_BACKEND : OFF
#9 526.6 --   ONNXIFI_ENABLE_EXT    : OFF
#9 526.6 --
#9 526.6 --   Protobuf compiler     :
#9 526.6 --   Protobuf includes     :
#9 526.6 --   Protobuf libraries    :
#9 526.6 --   BUILD_ONNX_PYTHON     : OFF
#9 526.6 --
#9 526.6 -- ******** Summary ********
#9 526.6 --   CMake version         : 3.16.1
#9 526.6 --   CMake command         : /usr/local/bin/cmake
#9 526.6 --   System                : Linux
#9 526.6 --   C++ compiler          : /usr/bin/g++-8
#9 526.6 --   C++ compiler version  : 8.3.0
#9 526.6 --   CXX flags             : -fdebug-prefix-map='/tmp/scratch'='/usr/local/src' -g -march=haswell -mtune=generic -fvisibility-inlines-hidden -fopenmp -Wnon-virtual-dtor
#9 526.6 --   Build type            : Release
#9 526.6 --   Compile definitions   : TH_BLAS_MKL;ONNX_ML=1
#9 526.6 --   CMAKE_PREFIX_PATH     : /usr/local/cuda;/usr/local/cuda
#9 526.6 --   CMAKE_INSTALL_PREFIX  : /tmp/scratch/pytorch/install.ha2MkvZc8O/root/usr/local
#9 526.6 --   CMAKE_MODULE_PATH     : /tmp/scratch/pytorch/cmake/Modules;/usr/local/share/cmake/pybind11;/tmp/scratch/pytorch/cmake/public/../Modules_CUDA_fix
#9 526.6 --
#9 526.6 --   ONNX version          : 1.4.1
#9 526.6 --   ONNX NAMESPACE        : onnx_torch
#9 526.6 --   ONNX_BUILD_TESTS      : OFF
#9 526.6 --   ONNX_BUILD_BENCHMARKS : OFF
#9 526.6 --   ONNX_USE_LITE_PROTO   : OFF
#9 526.6 --   ONNXIFI_DUMMY_BACKEND : OFF
#9 526.6 --
#9 526.6 --   Protobuf compiler     :
#9 526.6 --   Protobuf includes     :
#9 526.6 --   Protobuf libraries    :
#9 526.6 --   BUILD_ONNX_PYTHON     : OFF
#9 526.6 -- Found CUDA with FP16 support, compiling with torch.cuda.HalfTensor
#9 526.6 -- Removing -DNDEBUG from compile flags
#9 526.6 -- MAGMA not found. Compiling without MAGMA support
#9 526.6 -- Could not find hardware support for NEON on this machine.
#9 526.6 -- No OMAP3 processor on this machine.
#9 526.6 -- No OMAP4 processor on this machine.
#9 526.7 -- Looking for cpuid.h
#9 526.7 -- Looking for cpuid.h - found
#9 526.7 -- Performing Test HAVE_GCC_GET_CPUID
#9 526.8 -- Performing Test HAVE_GCC_GET_CPUID - Success
#9 526.8 -- Performing Test NO_GCC_EBX_FPIC_BUG
#9 526.8 -- Performing Test NO_GCC_EBX_FPIC_BUG - Success
#9 526.8 -- Performing Test C_HAS_AVX_1
#9 527.0 -- Performing Test C_HAS_AVX_1 - Success
#9 527.0 -- Performing Test C_HAS_AVX2_1
#9 527.2 -- Performing Test C_HAS_AVX2_1 - Success
#9 527.2 -- Performing Test CXX_HAS_AVX_1
#9 527.3 -- Performing Test CXX_HAS_AVX_1 - Success
#9 527.3 -- Performing Test CXX_HAS_AVX2_1
#9 527.5 -- Performing Test CXX_HAS_AVX2_1 - Success
#9 527.5 -- AVX compiler support found
#9 527.5 -- AVX2 compiler support found
#9 527.5 -- Performing Test BLAS_F2C_DOUBLE_WORKS
#9 527.7 -- Performing Test BLAS_F2C_DOUBLE_WORKS - Failed
#9 527.7 -- Performing Test BLAS_F2C_FLOAT_WORKS
#9 527.9 -- Performing Test BLAS_F2C_FLOAT_WORKS - Success
#9 527.9 -- Performing Test BLAS_USE_CBLAS_DOT
#9 528.1 -- Performing Test BLAS_USE_CBLAS_DOT - Success
#9 528.1 -- Found a library with BLAS API (mkl).
#9 528.1 -- Found a library with LAPACK API (mkl).
#9 528.1 -- MIOpen not found. Compiling without MIOpen support
#9 528.1 disabling ROCM because NOT USE_ROCM is set
#9 528.1 -- MKLDNN_THREADING = OMP:COMP
#9 528.1 CMake Warning (dev) at third_party/ideep/mkl-dnn/cmake/options.cmake:33 (option):
#9 528.1   Policy CMP0077 is not set: option() honors normal variables.  Run "cmake
#9 528.1   --help-policy CMP0077" for policy details.  Use the cmake_policy command to
#9 528.1   set the policy and suppress this warning.
#9 528.1
#9 528.1   For compatibility with older versions of CMake, option is clearing the
#9 528.1   normal variable 'MKLDNN_ENABLE_CONCURRENT_EXEC'.
#9 528.1 Call Stack (most recent call first):
#9 528.1   third_party/ideep/mkl-dnn/cmake/utils.cmake:24 (include)
#9 528.1   third_party/ideep/mkl-dnn/CMakeLists.txt:74 (include)
#9 528.1 This warning is for project developers.  Use -Wno-dev to suppress it.
#9 528.1
#9 528.2 -- Found OpenMP_C: -fopenmp (found version "4.5")
#9 528.2 -- Found OpenMP_CXX: -fopenmp (found version "4.5")
#9 528.2 -- OpenMP lib: provided by compiler
#9 528.2 -- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
#9 528.2 -- VTune profiling environment is unset
#9 528.2 -- Found MKL-DNN: TRUE
#9 528.2 -- Looking for clock_gettime in rt
#9 528.3 -- Looking for clock_gettime in rt - found
#9 528.3 -- Looking for mmap
#9 528.4 -- Looking for mmap - found
#9 528.4 -- Looking for shm_open
#9 528.4 -- Looking for shm_open - found
#9 528.4 -- Looking for shm_unlink
#9 528.5 -- Looking for shm_unlink - found
#9 528.5 -- Looking for malloc_usable_size
#9 528.6 -- Looking for malloc_usable_size - found
#9 528.6 -- Performing Test C_HAS_THREAD
#9 528.6 -- Performing Test C_HAS_THREAD - Success
#9 528.6 -- GCC 8.3.0: Adding gcc and gcc_s libs to link line
#9 528.7 -- NUMA paths:
#9 528.7 -- /usr/include
#9 528.7 -- /usr/lib/x86_64-linux-gnu/libnuma.so
#9 528.7 -- Performing Test COMPILER_SUPPORTS_NO_AVX256_SPLIT
#9 528.8 -- Performing Test COMPILER_SUPPORTS_NO_AVX256_SPLIT - Success
#9 529.0 CMake Deprecation Warning at third_party/sleef/CMakeLists.txt:20 (cmake_policy):
#9 529.0   The OLD behavior for policy CMP0066 will be removed from a future version
#9 529.0   of CMake.
#9 529.0
#9 529.0   The cmake-policies(7) manual explains that the OLD behaviors of all
#9 529.0   policies are deprecated and that a policy should be set to OLD only under
#9 529.0   specific short-term circumstances.  Projects should be ported to the NEW
#9 529.0   behavior and not rely on setting a policy to OLD.
#9 529.0
#9 529.0
#9 529.1 -- Found OpenSSL: /usr/lib/x86_64-linux-gnu/libcrypto.so (found version "1.1.1")
#9 529.1 -- Check size of long double
#9 529.2 -- Check size of long double - done
#9 529.2 -- Performing Test COMPILER_SUPPORTS_LONG_DOUBLE
#9 529.2 -- Performing Test COMPILER_SUPPORTS_LONG_DOUBLE - Success
#9 529.2 -- Performing Test COMPILER_SUPPORTS_FLOAT128
#9 529.3 -- Performing Test COMPILER_SUPPORTS_FLOAT128 - Success
#9 529.3 -- Performing Test COMPILER_SUPPORTS_SSE2
#9 529.5 -- Performing Test COMPILER_SUPPORTS_SSE2 - Success
#9 529.5 -- Performing Test COMPILER_SUPPORTS_SSE4
#9 529.7 -- Performing Test COMPILER_SUPPORTS_SSE4 - Success
#9 529.7 -- Performing Test COMPILER_SUPPORTS_AVX
#9 529.9 -- Performing Test COMPILER_SUPPORTS_AVX - Success
#9 529.9 -- Performing Test COMPILER_SUPPORTS_FMA4
#9 530.1 -- Performing Test COMPILER_SUPPORTS_FMA4 - Success
#9 530.1 -- Performing Test COMPILER_SUPPORTS_AVX2
#9 530.3 -- Performing Test COMPILER_SUPPORTS_AVX2 - Success
#9 530.3 -- Performing Test COMPILER_SUPPORTS_AVX512F
#9 530.5 -- Performing Test COMPILER_SUPPORTS_AVX512F - Success
#9 530.5 -- Performing Test COMPILER_SUPPORTS_OPENMP
#9 530.6 -- Performing Test COMPILER_SUPPORTS_OPENMP - Success
#9 530.6 -- Performing Test COMPILER_SUPPORTS_WEAK_ALIASES
#9 530.6 -- Performing Test COMPILER_SUPPORTS_WEAK_ALIASES - Success
#9 530.6 -- Performing Test COMPILER_SUPPORTS_BUILTIN_MATH
#9 530.7 -- Performing Test COMPILER_SUPPORTS_BUILTIN_MATH - Success
#9 530.7 -- Performing Test COMPILER_SUPPORTS_SYS_GETRANDOM
#9 531.7 -- Performing Test COMPILER_SUPPORTS_SYS_GETRANDOM - Success
#9 531.7 -- Configuring build for SLEEF-v3.4.0
#9 531.7    Target system: Linux-3.10.0-1062.1.1.el7.x86_64
#9 531.7    Target processor: x86_64
#9 531.7    Host system: Linux-3.10.0-1062.1.1.el7.x86_64
#9 531.7    Host processor: x86_64
#9 531.7    Detected C compiler: GNU @ /usr/bin/gcc-8
#9 531.7 -- Using option `-Wall -Wno-unused -Wno-attributes -Wno-unused-result -Wno-psabi -ffp-contract=off -fno-math-errno -fno-trapping-math` to compile libsleef
#9 531.7 -- Building shared libs : OFF
#9 531.7 -- MPFR : LIB_MPFR-NOTFOUND
#9 531.7 -- GMP : /usr/lib/x86_64-linux-gnu/libgmp.so
#9 531.7 -- RT : /usr/lib/x86_64-linux-gnu/librt.so
#9 531.7 -- FFTW3 : LIBFFTW3-NOTFOUND
#9 531.7 -- OPENSSL : 1.1.1
#9 531.7 -- SDE : SDE_COMMAND-NOTFOUND
#9 531.7 -- RUNNING_ON_TRAVIS : 0
#9 531.7 -- COMPILER_SUPPORTS_OPENMP : 1
#9 531.8 AT_INSTALL_INCLUDE_DIR include/ATen/core
#9 531.8 core header install: /tmp/scratch/pytorch/build/aten/src/ATen/core/TensorBody.h
#9 531.8 core header install: /tmp/scratch/pytorch/build/aten/src/ATen/core/TensorMethods.h
#9 531.8 disable test because ATEN_NO_TEST is set
#9 531.9 -- Include NCCL operators
#9 531.9 -- Including IDEEP operators
#9 531.9 -- Including image processing operators
#9 532.0 -- Excluding video processing operators due to no opencv
#9 532.0 -- MPI operators skipped due to no MPI support
#9 532.0 -- Include Observer library
#9 535.7 -- /usr/bin/g++-8 /tmp/scratch/pytorch/caffe2/../torch/abi-check.cpp -o /tmp/scratch/pytorch/build/abi-check
#9 535.9 -- Determined _GLIBCXX_USE_CXX11_ABI=1
#9 536.0 -- pytorch is compiling with OpenMP.
#9 536.0 OpenMP CXX_FLAGS: -fopenmp.
#9 536.0 OpenMP libraries: /usr/lib/gcc/x86_64-linux-gnu/8/libgomp.so;/usr/lib/x86_64-linux-gnu/libpthread.so.
#9 536.0 -- Caffe2 is compiling with OpenMP.
#9 536.0 OpenMP CXX_FLAGS: -fopenmp.
#9 536.0 OpenMP libraries: /usr/lib/gcc/x86_64-linux-gnu/8/libgomp.so;/usr/lib/x86_64-linux-gnu/libpthread.so.
#9 536.0 -- Using ATen parallel backend: OMP
#9 536.2 -- Using lib/python3/dist-packages as python relative installation path
#9 536.6 --
#9 536.6 -- ******** Summary ********
#9 536.6 -- General:
#9 536.6 --   CMake version         : 3.16.1
#9 536.6 --   CMake command         : /usr/local/bin/cmake
#9 536.6 --   System                : Linux
#9 536.6 --   C++ compiler          : /usr/bin/g++-8
#9 536.6 --   C++ compiler id       : GNU
#9 536.6 --   C++ compiler version  : 8.3.0
#9 536.6 --   BLAS                  : MKL
#9 536.6 --   CXX flags             : -fdebug-prefix-map='/tmp/scratch'='/usr/local/src' -g -march=haswell -mtune=generic -fvisibility-inlines-hidden -fopenmp -DUSE_FBGEMM -DUSE_QNNPACK -DUSE_PYTORCH_QNNPACK -O2 -fPIC -Wno-narrowing -Wall -Wextra -Wno-missing-field-initializers -Wno-type-limits -Wno-array-bounds -Wno-unknown-pragmas -Wno-sign-compare -Wno-unused-parameter -Wno-unused-variable -Wno-unused-function -Wno-unused-result -Wno-strict-overflow -Wno-strict-aliasing -Wno-error=deprecated-declarations -Wno-stringop-overflow -Wno-error=pedantic -Wno-error=redundant-decls -Wno-error=old-style-cast -fdiagnostics-color=always -faligned-new -Wno-unused-but-set-variable -Wno-maybe-uninitialized -fno-math-errno -fno-trapping-math -Wno-stringop-overflow
#9 536.6 --   Build type            : Release
#9 536.6 --   Compile definitions   : TH_BLAS_MKL;ONNX_ML=1;ONNX_NAMESPACE=onnx_torch;IDEEP_USE_MKL;HAVE_MMAP=1;_FILE_OFFSET_BITS=64;HAVE_SHM_OPEN=1;HAVE_SHM_UNLINK=1;HAVE_MALLOC_USABLE_SIZE=1
#9 536.6 --   CMAKE_PREFIX_PATH     : /usr/local/cuda;/usr/local/cuda
#9 536.6 --   CMAKE_INSTALL_PREFIX  : /tmp/scratch/pytorch/install.ha2MkvZc8O/root/usr/local
#9 536.6 --
#9 536.6 --   TORCH_VERSION         : 1.1.0
#9 536.6 --   CAFFE2_VERSION        : 1.1.0
#9 536.6 --   BUILD_CAFFE2_MOBILE   : ON
#9 536.6 --   USE_STATIC_DISPATCH   : OFF
#9 536.6 --   BUILD_BINARY          : ON
#9 536.6 --   BUILD_CUSTOM_PROTOBUF : OFF
#9 536.6 --     Protobuf compiler   :
#9 536.6 --     Protobuf includes   :
#9 536.6 --     Protobuf libraries  :
#9 536.6 --   BUILD_DOCS            : OFF
#9 536.6 --   BUILD_PYTHON          : ON
#9 536.6 --     Python version      : 3.6.9
#9 536.6 --     Python executable   : /usr/bin/python3
#9 536.6 --     Pythonlibs version  : 3.6.9
#9 536.6 --     Python library      : python3.6m
#9 536.6 --     Python includes     : /usr/include/python3.6m
#9 536.6 --     Python site-packages: lib/python3/dist-packages
#9 536.6 --   BUILD_CAFFE2_OPS      : ON
#9 536.6 --   BUILD_SHARED_LIBS     : ON
#9 536.6 --   BUILD_TEST            : ON
#9 536.6 --   BUILD_JNI             : OFF
#9 536.6 --   INTERN_BUILD_MOBILE   :
#9 536.6 --   USE_ASAN              : OFF
#9 536.6 --   USE_CUDA              : ON
#9 536.6 --     CUDA static link    : OFF
#9 536.6 --     USE_CUDNN           : ON
#9 536.6 --     CUDA version        : 10.2
#9 536.6 --     cuDNN version       : 7.6.5
#9 536.6 --     CUDA root directory : /usr/local/cuda
#9 536.6 --     CUDA library        : /usr/local/cuda/lib64/stubs/libcuda.so
#9 536.6 --     cudart library      : /usr/local/cuda/lib64/libcudart.so
#9 536.6 --     cublas library      : /usr/lib/x86_64-linux-gnu/libcublas.so
#9 536.6 --     cufft library       : /usr/local/cuda/lib64/libcufft.so
#9 536.6 --     curand library      : /usr/local/cuda/lib64/libcurand.so
#9 536.6 --     cuDNN library       : /usr/lib/x86_64-linux-gnu/libcudnn.so
#9 536.6 --     nvrtc               : /usr/local/cuda/lib64/libnvrtc.so
#9 536.6 --     CUDA include path   : /usr/local/cuda/include
#9 536.6 --     NVCC executable     : /usr/local/cuda/bin/nvcc
#9 536.6 --     CUDA host compiler  : /usr/bin/gcc-8
#9 536.6 --     USE_TENSORRT        : OFF
#9 536.6 --   USE_ROCM              : OFF
#9 536.6 --   USE_EIGEN_FOR_BLAS    :
#9 536.6 --   USE_FBGEMM            : ON
#9 536.6 --   USE_FFMPEG            : OFF
#9 536.6 --   USE_GFLAGS            : ON
#9 536.6 --   USE_GLOG              : ON
#9 536.6 --   USE_LEVELDB           : ON
#9 536.6 --     LevelDB version     : 1.22
#9 536.6 --     Snappy version      : ..
#9 536.6 --   USE_LITE_PROTO        : OFF
#9 536.6 --   USE_LMDB              : ON
#9 536.6 --     LMDB version        : 0.9.24
#9 536.6 --   USE_METAL             : OFF
#9 536.6 --   USE_MKL               : ON
#9 536.6 --   USE_MKLDNN            : ON
#9 536.6 --   USE_MKLDNN_CBLAS      : OFF
#9 536.6 --   USE_NCCL              : ON
#9 536.6 --     USE_SYSTEM_NCCL     : ON
#9 536.6 --   USE_NNPACK            : ON
#9 536.6 --   USE_NUMPY             : ON
#9 536.6 --   USE_OBSERVERS         : ON
#9 536.6 --   USE_OPENCL            : OFF
#9 536.6 --   USE_OPENCV            : ON
#9 536.6 --     OpenCV version      : 4.1.1
#9 536.6 --   USE_OPENMP            : ON
#9 536.6 --   USE_TBB               : OFF
#9 536.6 --   USE_PROF              : ON
#9 536.6 --   USE_QNNPACK           : ON
#9 536.6 --   USE_REDIS             : OFF
#9 536.6 --   USE_ROCKSDB           : ON
#9 536.6 --   USE_ZMQ               : OFF
#9 536.6 --   USE_DISTRIBUTED       : ON
#9 536.6 --     USE_MPI             : OFF
#9 536.6 --     USE_GLOO            : ON
#9 536.6 --   Public Dependencies  : Threads::Threads;caffe2::mkl;glog::glog;caffe2::mkldnn
#9 536.6 --   Private Dependencies : qnnpack;pytorch_qnnpack;nnpack;cpuinfo;fbgemm;/usr/local/lib/liblmdb.so;/usr/local/lib/libleveldb.a;/usr/local/lib/libsnappy.so;/usr/lib/x86_64-linux-gnu/libnuma.so;opencv_core;opencv_highgui;opencv_imgproc;opencv_imgcodecs;opencv_optflow;opencv_videoio;opencv_video;fp16;gloo;aten_op_header_gen;foxi_loader;rt;gcc_s;gcc;dl   #9 536.9 -- Configuring done
#9 537.6 CMake Error at modules/rocksdb/CMakeLists.txt:58 (add_library):
#9 537.6   Target "caffe2_rocksdb" links to target "snappy::snappy" but the target was
#9 537.6   not found.  Perhaps a find_package() call is missing for an IMPORTED
#9 537.6   target, or an ALIAS target is missing?
#9 537.6
#9 537.6
#9 537.6 CMake Error at modules/rocksdb/CMakeLists.txt:58 (add_library):
#9 537.6   Target "caffe2_rocksdb" links to target "lz4::lz4" but the target was not
#9 537.6   found.  Perhaps a find_package() call is missing for an IMPORTED target, or
#9 537.6   an ALIAS target is missing?
#9 537.6
#9 537.6
#9 537.6 CMake Error at modules/rocksdb/CMakeLists.txt:58 (add_library):
#9 537.6   Target "caffe2_rocksdb" links to target "zstd::zstd" but the target was not
#9 537.6   found.  Perhaps a find_package() call is missing for an IMPORTED target, or
#9 537.6   an ALIAS target is missing?
#9 537.6
#9 537.6
#9 537.6 CMake Error at modules/rocksdb/CMakeLists.txt:58 (add_library):
#9 537.6   Target "caffe2_rocksdb" links to target "NUMA::NUMA" but the target was not
#9 537.6   found.  Perhaps a find_package() call is missing for an IMPORTED target, or
#9 537.6   an ALIAS target is missing?
#9 537.6
#9 537.6
#9 537.6 CMake Warning (dev) at cmake/Dependencies.cmake:1068 (add_dependencies):
#9 537.6   Policy CMP0046 is not set: Error on non-existent dependency in
#9 537.6   add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
#9 537.6   Use the cmake_policy command to set the policy and suppress this warning.
#9 537.6
#9 537.6   The dependency target "nccl_external" of target "gloo_cuda" does not exist.
#9 537.6 Call Stack (most recent call first):
#9 537.6   CMakeLists.txt:390 (include)
#9 537.6 This warning is for project developers.  Use -Wno-dev to suppress it.
#9 537.6
#9 542.3 -- Generating done
#9 542.3 CMake Warning:
#9 542.3   Manually-specified variables were not used by the project:
#9 542.3
#9 542.3     CMAKE_POLICY_DEFAULT_CMP0003
#9 542.3
#9 542.3
#9 542.3 CMake Generate step failed.  Build files cannot be regenerated correctly.
```