Cannot add target-level dependencies to non-existent target "gloo_cuda".
Labels: module: build, triaged

### 🐛 Describe the bug

Building pytorch from source (master branch, commmit 508916128d3f5fa213b44f3a1ebc317e34b0bca5), receiving following output for 

```console
$ USE_SYSTEM_LIBS=1 MAX_JOBS=2 TORCH_CUDA_ARCH_LIST=3.5 python setup.py install
...
Found gloo: /usr/lib64/libgloo.so
CMake Error at cmake/Dependencies.cmake:1500 (add_dependencies):
  Cannot add target-level dependencies to non-existent target "gloo_cuda".

  The add_dependencies works for top-level logical targets created by the
  add_executable, add_library, or add_custom_target commands.  If you want to
  add file-level dependencies see the DEPENDS option of the add_custom_target
  and add_custom_command commands.
Call Stack (most recent call first):
  CMakeLists.txt:715 (include)
...
```


<details><summary>Full output</summary>

```console
CMake Warning (dev) at /usr/share/cmake/Modules/CMakeDependentOption.cmake:89 (message):
  Policy CMP0127 is not set: cmake_dependent_option() supports full Condition
  Syntax.  Run "cmake --help-policy CMP0127" for policy details.  Use the
  cmake_policy command to set the policy and suppress this warning.
Call Stack (most recent call first):
  CMakeLists.txt:245 (cmake_dependent_option)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at /usr/share/cmake/Modules/CMakeDependentOption.cmake:89 (message):
  Policy CMP0127 is not set: cmake_dependent_option() supports full Condition
  Syntax.  Run "cmake --help-policy CMP0127" for policy details.  Use the
  cmake_policy command to set the policy and suppress this warning.
Call Stack (most recent call first):
  CMakeLists.txt:276 (cmake_dependent_option)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- std::exception_ptr is supported.
-- Current compiler supports avx512f extension. Will build fbgemm.
-- Caffe2: CUDA detected: 11.8
-- Caffe2: CUDA nvcc is: /opt/cuda/bin/nvcc
-- Caffe2: CUDA toolkit directory: /opt/cuda
-- Caffe2: Header version is: 11.8
-- Found cuDNN: v8.6.0  (include: /opt/cuda/include, library: /opt/cuda/lib64/libcudnn.so)
-- /opt/cuda/lib64/libnvrtc.so shorthash is 672ee683
CMake Warning at cmake/public/utils.cmake:385 (message):
  In the future we will require one to explicitly pass TORCH_CUDA_ARCH_LIST
  to cmake instead of implicitly setting it as an env variable.  This will
  become a FATAL_ERROR in future version of pytorch.
Call Stack (most recent call first):
  cmake/public/cuda.cmake:437 (torch_cuda_get_nvcc_gencode_flag)
  cmake/Dependencies.cmake:43 (include)
  CMakeLists.txt:715 (include)


-- Added CUDA NVCC flags for: -gencode;arch=compute_35,code=sm_35
-- Caffe2: Found protobuf with new-style protobuf targets.
-- Caffe2 protobuf include directory: /usr/include
-- Trying to find preferred BLAS backend of choice: MKL
-- MKL_THREADING = OMP
CMake Warning (dev) at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (OpenMP_C)
  does not match the name of the calling package (OpenMP).  This can lead to
  problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  cmake/Modules/FindOpenMP.cmake:576 (find_package_handle_standard_args)
  cmake/Modules/FindMKL.cmake:233 (FIND_PACKAGE)
  cmake/Modules/FindMKL.cmake:328 (CHECK_ALL_LIBRARIES)
  cmake/Dependencies.cmake:210 (find_package)
  CMakeLists.txt:715 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (OpenMP_CXX)
  does not match the name of the calling package (OpenMP).  This can lead to
  problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  cmake/Modules/FindOpenMP.cmake:576 (find_package_handle_standard_args)
  cmake/Modules/FindMKL.cmake:233 (FIND_PACKAGE)
  cmake/Modules/FindMKL.cmake:328 (CHECK_ALL_LIBRARIES)
  cmake/Dependencies.cmake:210 (find_package)
  CMakeLists.txt:715 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning at cmake/Modules/FindMKL.cmake:411 (MESSAGE):
  MKL libraries files are found, but MKL header files are not.  You can get
  them by `conda install mkl-include` if using conda (if it is missing, run
  `conda upgrade -n root conda` first), and `pip install mkl-devel` if using
  pip.  If build fails with header files available in the system, please make
  sure that CMake will search the directory containing them, e.g., by setting
  CMAKE_INCLUDE_PATH.
Call Stack (most recent call first):
  cmake/Dependencies.cmake:210 (find_package)
  CMakeLists.txt:715 (include)


-- MKL_THREADING = OMP
CMake Warning (dev) at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (OpenMP_C)
  does not match the name of the calling package (OpenMP).  This can lead to
  problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  cmake/Modules/FindOpenMP.cmake:576 (find_package_handle_standard_args)
  cmake/Modules/FindMKL.cmake:233 (FIND_PACKAGE)
  cmake/Modules/FindMKL.cmake:328 (CHECK_ALL_LIBRARIES)
  cmake/public/mkl.cmake:1 (find_package)
  cmake/Dependencies.cmake:212 (include)
  CMakeLists.txt:715 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (OpenMP_CXX)
  does not match the name of the calling package (OpenMP).  This can lead to
  problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  cmake/Modules/FindOpenMP.cmake:576 (find_package_handle_standard_args)
  cmake/Modules/FindMKL.cmake:233 (FIND_PACKAGE)
  cmake/Modules/FindMKL.cmake:328 (CHECK_ALL_LIBRARIES)
  cmake/public/mkl.cmake:1 (find_package)
  cmake/Dependencies.cmake:212 (include)
  CMakeLists.txt:715 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning at cmake/Modules/FindMKL.cmake:411 (MESSAGE):
  MKL libraries files are found, but MKL header files are not.  You can get
  them by `conda install mkl-include` if using conda (if it is missing, run
  `conda upgrade -n root conda` first), and `pip install mkl-devel` if using
  pip.  If build fails with header files available in the system, please make
  sure that CMake will search the directory containing them, e.g., by setting
  CMAKE_INCLUDE_PATH.
Call Stack (most recent call first):
  cmake/public/mkl.cmake:1 (find_package)
  cmake/Dependencies.cmake:212 (include)
  CMakeLists.txt:715 (include)


CMake Warning at cmake/Dependencies.cmake:225 (message):
  MKL could not be found.  Defaulting to Eigen
Call Stack (most recent call first):
  CMakeLists.txt:715 (include)


CMake Warning at cmake/Dependencies.cmake:263 (message):
  Preferred BLAS (MKL) cannot be found, now searching for a general BLAS
  library
Call Stack (most recent call first):
  CMakeLists.txt:715 (include)


-- MKL_THREADING = OMP
-- Checking for [mkl_intel_lp64 - mkl_gnu_thread - mkl_core - gomp - pthread - m - dl]
--   Library mkl_intel_lp64: /usr/lib64/libmkl_intel_lp64.so
--   Library mkl_gnu_thread: /usr/lib64/libmkl_gnu_thread.so
--   Library mkl_core: /usr/lib64/libmkl_core.so
CMake Warning (dev) at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (OpenMP_C)
  does not match the name of the calling package (OpenMP).  This can lead to
  problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  cmake/Modules/FindOpenMP.cmake:576 (find_package_handle_standard_args)
  cmake/Modules/FindMKL.cmake:233 (FIND_PACKAGE)
  cmake/Modules/FindMKL.cmake:328 (CHECK_ALL_LIBRARIES)
  cmake/Modules/FindBLAS.cmake:99 (FIND_PACKAGE)
  cmake/Dependencies.cmake:264 (find_package)
  CMakeLists.txt:715 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (OpenMP_CXX)
  does not match the name of the calling package (OpenMP).  This can lead to
  problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  cmake/Modules/FindOpenMP.cmake:576 (find_package_handle_standard_args)
  cmake/Modules/FindMKL.cmake:233 (FIND_PACKAGE)
  cmake/Modules/FindMKL.cmake:328 (CHECK_ALL_LIBRARIES)
  cmake/Modules/FindBLAS.cmake:99 (FIND_PACKAGE)
  cmake/Dependencies.cmake:264 (find_package)
  CMakeLists.txt:715 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

--   Library gomp: -fopenmp
--   Library pthread: /usr/lib64/libpthread.a
--   Library m: /usr/lib64/libm.so
--   Library dl: /usr/lib64/libdl.a
CMake Warning at cmake/Modules/FindMKL.cmake:411 (MESSAGE):
  MKL libraries files are found, but MKL header files are not.  You can get
  them by `conda install mkl-include` if using conda (if it is missing, run
  `conda upgrade -n root conda` first), and `pip install mkl-devel` if using
  pip.  If build fails with header files available in the system, please make
  sure that CMake will search the directory containing them, e.g., by setting
  CMAKE_INCLUDE_PATH.
Call Stack (most recent call first):
  cmake/Modules/FindBLAS.cmake:99 (FIND_PACKAGE)
  cmake/Dependencies.cmake:264 (find_package)
  CMakeLists.txt:715 (include)


-- MKL library not found
-- Checking for [blis]
--   Library blis: BLAS_blis_LIBRARY-NOTFOUND
-- Checking for [Accelerate]
--   Library Accelerate: BLAS_Accelerate_LIBRARY-NOTFOUND
-- Checking for [vecLib]
--   Library vecLib: BLAS_vecLib_LIBRARY-NOTFOUND
-- Checking for [flexiblas]
--   Library flexiblas: BLAS_flexiblas_LIBRARY-NOTFOUND
-- Checking for [openblas]
--   Library openblas: BLAS_openblas_LIBRARY-NOTFOUND
-- Checking for [openblas - pthread - m]
--   Library openblas: BLAS_openblas_LIBRARY-NOTFOUND
-- Checking for [openblas - pthread - m - gomp]
--   Library openblas: BLAS_openblas_LIBRARY-NOTFOUND
-- Checking for [goto2 - gfortran]
--   Library goto2: BLAS_goto2_LIBRARY-NOTFOUND
-- Checking for [goto2 - gfortran - pthread]
--   Library goto2: BLAS_goto2_LIBRARY-NOTFOUND
-- Checking for [acml - gfortran]
--   Library acml: BLAS_acml_LIBRARY-NOTFOUND
-- Checking for [blis]
--   Library blis: BLAS_blis_LIBRARY-NOTFOUND
-- Could NOT find Atlas (missing: Atlas_CLAPACK_INCLUDE_DIR Atlas_BLAS_LIBRARY) 
-- Checking for [ptf77blas - atlas - gfortran]
--   Library ptf77blas: BLAS_ptf77blas_LIBRARY-NOTFOUND
-- Checking for []
-- Cannot find a library with BLAS API. Not using BLAS.
-- Using pocketfft in directory: /tmp/pytorch/third_party/pocketfft/
-- Found pthreadpool: /usr/lib64/libpthreadpool.so
Found cpuinfo: /usr/lib64/libcpuinfo.so
-- Brace yourself, we are building NNPACK
-- NNPACK backend is x86-64
-- Found XNNPACK: /usr/lib64/libXNNPACK.so
-- Found benchmark: /usr/lib64/libbenchmark.so
CMake Warning (dev) at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (OpenMP_C)
  does not match the name of the calling package (OpenMP).  This can lead to
  problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  cmake/Modules/FindOpenMP.cmake:576 (find_package_handle_standard_args)
  third_party/fbgemm/CMakeLists.txt:85 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found OpenMP_C: -fopenmp  
CMake Warning (dev) at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (OpenMP_CXX)
  does not match the name of the calling package (OpenMP).  This can lead to
  problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  cmake/Modules/FindOpenMP.cmake:576 (find_package_handle_standard_args)
  third_party/fbgemm/CMakeLists.txt:85 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found OpenMP_CXX: -fopenmp  
CMake Warning at third_party/fbgemm/CMakeLists.txt:87 (message):
  OpenMP found! OpenMP_C_INCLUDE_DIRS =


CMake Warning at third_party/fbgemm/CMakeLists.txt:186 (message):
  ==========


CMake Warning at third_party/fbgemm/CMakeLists.txt:187 (message):
  CMAKE_BUILD_TYPE = Release


CMake Warning at third_party/fbgemm/CMakeLists.txt:188 (message):
  CMAKE_CXX_FLAGS_DEBUG is -g


CMake Warning at third_party/fbgemm/CMakeLists.txt:189 (message):
  CMAKE_CXX_FLAGS_RELEASE is -O3 -DNDEBUG


CMake Warning at third_party/fbgemm/CMakeLists.txt:190 (message):
  ==========


** AsmJit Summary **
   ASMJIT_DIR=/tmp/pytorch/third_party/fbgemm/third_party/asmjit
   ASMJIT_TEST=FALSE
   ASMJIT_TARGET_TYPE=STATIC
   ASMJIT_DEPS=pthread;rt
   ASMJIT_LIBS=asmjit;pthread;rt
   ASMJIT_CFLAGS=-DASMJIT_STATIC
   ASMJIT_PRIVATE_CFLAGS=-Wall;-Wextra;-Wconversion;-fno-math-errno;-fno-threadsafe-statics;-fno-semantic-interposition;-DASMJIT_STATIC
   ASMJIT_PRIVATE_CFLAGS_DBG=
   ASMJIT_PRIVATE_CFLAGS_REL=-O2;-fmerge-all-constants;-fno-enforce-eh-specs
-- Found system Eigen at /usr/include/eigen3
-- Found PythonInterp: /tmp/venv/bin/python (found suitable version "3.10.8", minimum required is "3.0") 
-- Found pybind11: /usr/include (found version "2.10.0")
-- pybind11 include dirs: /usr/include;/usr/include/python3.10
-- Adding OpenMP CXX_FLAGS: -fopenmp
-- Will link against OpenMP libraries: /usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/libgomp.so;/usr/lib64/libpthread.a
CMake Warning at cmake/public/utils.cmake:385 (message):
  In the future we will require one to explicitly pass TORCH_CUDA_ARCH_LIST
  to cmake instead of implicitly setting it as an env variable.  This will
  become a FATAL_ERROR in future version of pytorch.
Call Stack (most recent call first):
  cmake/External/nccl.cmake:13 (torch_cuda_get_nvcc_gencode_flag)
  cmake/Dependencies.cmake:1395 (include)
  CMakeLists.txt:715 (include)


CMake Warning at cmake/External/nccl.cmake:69 (message):
  Enabling NCCL library slimming
Call Stack (most recent call first):
  cmake/Dependencies.cmake:1395 (include)
  CMakeLists.txt:715 (include)


-- Converting CMAKE_CUDA_FLAGS to CUDA_NVCC_FLAGS:
    CUDA_NVCC_FLAGS                = -Xfatbin;-compress-all;-DONNX_NAMESPACE=onnx;-gencode;arch=compute_35,code=sm_35;-Xcudafe;--diag_suppress=cc_clobber_ignored,--diag_suppress=integer_sign_change,--diag_suppress=useless_using_declaration,--diag_suppress=set_but_not_used,--diag_suppress=field_without_dll_interface,--diag_suppress=base_class_has_different_dll_interface,--diag_suppress=dll_interface_conflict_none_assumed,--diag_suppress=dll_interface_conflict_dllexport_assumed,--diag_suppress=implicit_return_from_non_void_function,--diag_suppress=unsigned_compare_with_zero,--diag_suppress=declared_but_not_referenced,--diag_suppress=bad_friend_decl;--expt-relaxed-constexpr;--expt-extended-lambda
    CUDA_NVCC_FLAGS_DEBUG          = -g;-g;-lineinfo;--source-in-ptx
    CUDA_NVCC_FLAGS_RELEASE        = -O3;-DNDEBUG
    CUDA_NVCC_FLAGS_RELWITHDEBINFO = -O2;-g;-DNDEBUG;-g;-lineinfo;--source-in-ptx
    CUDA_NVCC_FLAGS_MINSIZEREL     = -O1;-DNDEBUG
-- summary of build options:
    Install prefix:  /tmp/pytorch/torch
    Target system:   Linux
    Compiler:
      C compiler:    /usr/bin/cc
      CFLAGS:          -fopenmp

Found gloo: /usr/lib64/libgloo.so
CMake Error at cmake/Dependencies.cmake:1500 (add_dependencies):
  Cannot add target-level dependencies to non-existent target "gloo_cuda".

  The add_dependencies works for top-level logical targets created by the
  add_executable, add_library, or add_custom_target commands.  If you want to
  add file-level dependencies see the DEPENDS option of the add_custom_target
  and add_custom_command commands.
Call Stack (most recent call first):
  CMakeLists.txt:715 (include)


-- 
-- ******** Summary ********
--   CMake version         : 3.24.3
--   CMake command         : /usr/bin/cmake
--   System                : Linux
--   C++ compiler          : /usr/bin/c++
--   C++ compiler version  : 11.3.0
--   CXX flags             :  -fvisibility-inlines-hidden -DUSE_PTHREADPOOL -fopenmp -Wnon-virtual-dtor
--   Build type            : Release
--   Compile definitions   : ONNX_ML=1;ONNXIFI_ENABLE_EXT=1
--   CMAKE_PREFIX_PATH     : /tmp/venv/lib/python3.10/site-packages;/opt/cuda
--   CMAKE_INSTALL_PREFIX  : /tmp/pytorch/torch
--   CMAKE_MODULE_PATH     : /tmp/pytorch/cmake/Modules;/tmp/pytorch/cmake/public/../Modules_CUDA_fix
-- 
--   ONNX version          : 1.4.1
--   ONNX NAMESPACE        : onnx
--   ONNX_BUILD_TESTS      : 
--   ONNX_BUILD_BENCHMARKS : 
--   ONNX_USE_LITE_PROTO   : 
--   ONNXIFI_DUMMY_BACKEND : 
-- 
--   Protobuf compiler     : /usr/bin/protoc
--   Protobuf includes     : /usr/include
--   Protobuf libraries    : /usr/lib64/libprotobuf.so
--   BUILD_ONNX_PYTHON     : 
-- Found onnx: /usr/lib64/libonnx.so /usr/lib64/libonnx_proto.so
-- Found CUDA with FP16 support, compiling with torch.cuda.HalfTensor
-- Adding -DNDEBUG to compile flags
-- MAGMA not found. Compiling without MAGMA support
-- Could not find hardware support for NEON on this machine.
-- No OMAP3 processor on this machine.
-- No OMAP4 processor on this machine.
-- MKL_THREADING = OMP
-- Checking for [mkl_intel_lp64 - mkl_gnu_thread - mkl_core - gomp - pthread - m - dl]
--   Library mkl_intel_lp64: /usr/lib64/libmkl_intel_lp64.so
--   Library mkl_gnu_thread: /usr/lib64/libmkl_gnu_thread.so
--   Library mkl_core: /usr/lib64/libmkl_core.so
CMake Warning (dev) at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (OpenMP_C)
  does not match the name of the calling package (OpenMP).  This can lead to
  problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  cmake/Modules/FindOpenMP.cmake:576 (find_package_handle_standard_args)
  cmake/Modules/FindMKL.cmake:233 (FIND_PACKAGE)
  cmake/Modules/FindMKL.cmake:328 (CHECK_ALL_LIBRARIES)
  cmake/Modules/FindBLAS.cmake:99 (FIND_PACKAGE)
  cmake/Modules/FindLAPACK.cmake:22 (FIND_PACKAGE)
  cmake/Dependencies.cmake:1770 (find_package)
  CMakeLists.txt:715 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (OpenMP_CXX)
  does not match the name of the calling package (OpenMP).  This can lead to
  problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  cmake/Modules/FindOpenMP.cmake:576 (find_package_handle_standard_args)
  cmake/Modules/FindMKL.cmake:233 (FIND_PACKAGE)
  cmake/Modules/FindMKL.cmake:328 (CHECK_ALL_LIBRARIES)
  cmake/Modules/FindBLAS.cmake:99 (FIND_PACKAGE)
  cmake/Modules/FindLAPACK.cmake:22 (FIND_PACKAGE)
  cmake/Dependencies.cmake:1770 (find_package)
  CMakeLists.txt:715 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

--   Library gomp: -fopenmp
--   Library pthread: /usr/lib64/libpthread.a
--   Library m: /usr/lib64/libm.so
--   Library dl: /usr/lib64/libdl.a
CMake Warning at cmake/Modules/FindMKL.cmake:411 (MESSAGE):
  MKL libraries files are found, but MKL header files are not.  You can get
  them by `conda install mkl-include` if using conda (if it is missing, run
  `conda upgrade -n root conda` first), and `pip install mkl-devel` if using
  pip.  If build fails with header files available in the system, please make
  sure that CMake will search the directory containing them, e.g., by setting
  CMAKE_INCLUDE_PATH.
Call Stack (most recent call first):
  cmake/Modules/FindBLAS.cmake:99 (FIND_PACKAGE)
  cmake/Modules/FindLAPACK.cmake:22 (FIND_PACKAGE)
  cmake/Dependencies.cmake:1770 (find_package)
  CMakeLists.txt:715 (include)


-- MKL library not found
-- Checking for [blis]
--   Library blis: BLAS_blis_LIBRARY-NOTFOUND
-- Checking for [Accelerate]
--   Library Accelerate: BLAS_Accelerate_LIBRARY-NOTFOUND
-- Checking for [vecLib]
--   Library vecLib: BLAS_vecLib_LIBRARY-NOTFOUND
-- Checking for [flexiblas]
--   Library flexiblas: BLAS_flexiblas_LIBRARY-NOTFOUND
-- Checking for [openblas]
--   Library openblas: BLAS_openblas_LIBRARY-NOTFOUND
-- Checking for [openblas - pthread - m]
--   Library openblas: BLAS_openblas_LIBRARY-NOTFOUND
-- Checking for [openblas - pthread - m - gomp]
--   Library openblas: BLAS_openblas_LIBRARY-NOTFOUND
-- Checking for [goto2 - gfortran]
--   Library goto2: BLAS_goto2_LIBRARY-NOTFOUND
-- Checking for [goto2 - gfortran - pthread]
--   Library goto2: BLAS_goto2_LIBRARY-NOTFOUND
-- Checking for [acml - gfortran]
--   Library acml: BLAS_acml_LIBRARY-NOTFOUND
-- Checking for [blis]
--   Library blis: BLAS_blis_LIBRARY-NOTFOUND
-- Could NOT find Atlas (missing: Atlas_CLAPACK_INCLUDE_DIR Atlas_BLAS_LIBRARY) 
-- Checking for [ptf77blas - atlas - gfortran]
--   Library ptf77blas: BLAS_ptf77blas_LIBRARY-NOTFOUND
-- Checking for []
-- Cannot find a library with BLAS API. Not using BLAS.
-- LAPACK requires BLAS
-- Cannot find a library with LAPACK API. Not using LAPACK.
disabling ROCM because NOT USE_ROCM is set
-- MIOpen not found. Compiling without MIOpen support
-- Will build oneDNN Graph
-- MKL_THREADING = OMP
-- Checking for [mkl_intel_lp64 - mkl_gnu_thread - mkl_core - gomp - pthread - m - dl]
--   Library mkl_intel_lp64: /usr/lib64/libmkl_intel_lp64.so
--   Library mkl_gnu_thread: /usr/lib64/libmkl_gnu_thread.so
--   Library mkl_core: /usr/lib64/libmkl_core.so
CMake Warning (dev) at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (OpenMP_C)
  does not match the name of the calling package (OpenMP).  This can lead to
  problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  cmake/Modules/FindOpenMP.cmake:576 (find_package_handle_standard_args)
  cmake/Modules/FindMKL.cmake:233 (FIND_PACKAGE)
  cmake/Modules/FindMKL.cmake:328 (CHECK_ALL_LIBRARIES)
  cmake/Modules/FindBLAS.cmake:99 (FIND_PACKAGE)
  cmake/Modules/FindMKLDNN.cmake:27 (FIND_PACKAGE)
  cmake/public/mkldnn.cmake:7 (find_package)
  cmake/Dependencies.cmake:1814 (include)
  CMakeLists.txt:715 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (OpenMP_CXX)
  does not match the name of the calling package (OpenMP).  This can lead to
  problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  cmake/Modules/FindOpenMP.cmake:576 (find_package_handle_standard_args)
  cmake/Modules/FindMKL.cmake:233 (FIND_PACKAGE)
  cmake/Modules/FindMKL.cmake:328 (CHECK_ALL_LIBRARIES)
  cmake/Modules/FindBLAS.cmake:99 (FIND_PACKAGE)
  cmake/Modules/FindMKLDNN.cmake:27 (FIND_PACKAGE)
  cmake/public/mkldnn.cmake:7 (find_package)
  cmake/Dependencies.cmake:1814 (include)
  CMakeLists.txt:715 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

--   Library gomp: -fopenmp
--   Library pthread: /usr/lib64/libpthread.a
--   Library m: /usr/lib64/libm.so
--   Library dl: /usr/lib64/libdl.a
CMake Warning at cmake/Modules/FindMKL.cmake:411 (MESSAGE):
  MKL libraries files are found, but MKL header files are not.  You can get
  them by `conda install mkl-include` if using conda (if it is missing, run
  `conda upgrade -n root conda` first), and `pip install mkl-devel` if using
  pip.  If build fails with header files available in the system, please make
  sure that CMake will search the directory containing them, e.g., by setting
  CMAKE_INCLUDE_PATH.
Call Stack (most recent call first):
  cmake/Modules/FindBLAS.cmake:99 (FIND_PACKAGE)
  cmake/Modules/FindMKLDNN.cmake:27 (FIND_PACKAGE)
  cmake/public/mkldnn.cmake:7 (find_package)
  cmake/Dependencies.cmake:1814 (include)
  CMakeLists.txt:715 (include)


-- MKL library not found
-- Checking for [blis]
--   Library blis: BLAS_blis_LIBRARY-NOTFOUND
-- Checking for [Accelerate]
--   Library Accelerate: BLAS_Accelerate_LIBRARY-NOTFOUND
-- Checking for [vecLib]
--   Library vecLib: BLAS_vecLib_LIBRARY-NOTFOUND
-- Checking for [flexiblas]
--   Library flexiblas: BLAS_flexiblas_LIBRARY-NOTFOUND
-- Checking for [openblas]
--   Library openblas: BLAS_openblas_LIBRARY-NOTFOUND
-- Checking for [openblas - pthread - m]
--   Library openblas: BLAS_openblas_LIBRARY-NOTFOUND
-- Checking for [openblas - pthread - m - gomp]
--   Library openblas: BLAS_openblas_LIBRARY-NOTFOUND
-- Checking for [goto2 - gfortran]
--   Library goto2: BLAS_goto2_LIBRARY-NOTFOUND
-- Checking for [goto2 - gfortran - pthread]
--   Library goto2: BLAS_goto2_LIBRARY-NOTFOUND
-- Checking for [acml - gfortran]
--   Library acml: BLAS_acml_LIBRARY-NOTFOUND
-- Checking for [blis]
--   Library blis: BLAS_blis_LIBRARY-NOTFOUND
-- Could NOT find Atlas (missing: Atlas_CLAPACK_INCLUDE_DIR Atlas_BLAS_LIBRARY) 
-- Checking for [ptf77blas - atlas - gfortran]
--   Library ptf77blas: BLAS_ptf77blas_LIBRARY-NOTFOUND
-- Checking for []
-- Cannot find a library with BLAS API. Not using BLAS.
-- MKLDNN_CPU_RUNTIME = OMP
-- cmake version: 3.24.3
CMake Deprecation Warning at third_party/ideep/mkl-dnn/CMakeLists.txt:36 (cmake_policy):
  The OLD behavior for policy CMP0025 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.


-- DNNL_TARGET_ARCH: X64
-- DNNL_LIBRARY_NAME: dnnl
CMake Warning (dev) at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (OpenMP_C)
  does not match the name of the calling package (OpenMP).  This can lead to
  problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  cmake/Modules/FindOpenMP.cmake:576 (find_package_handle_standard_args)
  third_party/ideep/mkl-dnn/third_party/oneDNN/cmake/OpenMP.cmake:69 (find_package)
  third_party/ideep/mkl-dnn/third_party/oneDNN/CMakeLists.txt:117 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found OpenMP_C: -fopenmp  
CMake Warning (dev) at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (OpenMP_CXX)
  does not match the name of the calling package (OpenMP).  This can lead to
  problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  cmake/Modules/FindOpenMP.cmake:576 (find_package_handle_standard_args)
  third_party/ideep/mkl-dnn/third_party/oneDNN/cmake/OpenMP.cmake:69 (find_package)
  third_party/ideep/mkl-dnn/third_party/oneDNN/CMakeLists.txt:117 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found OpenMP_CXX: -fopenmp  
-- Could NOT find Doxyrest (missing: DOXYREST_EXECUTABLE) 
-- Found PythonInterp: /tmp/venv/bin/python (found suitable version "3.10.8", minimum required is "2.7") 
-- Enabled workload: TRAINING
-- Enabled primitives: ALL
-- Enabled primitive CPU ISA: ALL
-- Enabled primitive GPU ISA: ALL
-- Primitive cache is enabled
CMake Warning (dev) at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (OpenMP_C)
  does not match the name of the calling package (OpenMP).  This can lead to
  problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  cmake/Modules/FindOpenMP.cmake:576 (find_package_handle_standard_args)
  third_party/ideep/mkl-dnn/cmake/OpenMP.cmake:62 (find_package)
  third_party/ideep/mkl-dnn/CMakeLists.txt:179 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (OpenMP_CXX)
  does not match the name of the calling package (OpenMP).  This can lead to
  problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  cmake/Modules/FindOpenMP.cmake:576 (find_package_handle_standard_args)
  third_party/ideep/mkl-dnn/cmake/OpenMP.cmake:62 (find_package)
  third_party/ideep/mkl-dnn/CMakeLists.txt:179 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- DNNL_GRAPH_BUILD_FOR_CI is set to be OFF
-- Compiling oneDNN Graph with CPU runtime OMP support
-- Graph compiler backend is disabled.
-- Set version definitions to /tmp/pytorch/third_party/ideep/mkl-dnn/src/utils/verbose.cpp
-- Compiled partition cache is enabled
-- Found MKL-DNN: TRUE
-- Version: 7.0.3
-- Build type: Release
-- CXX_STANDARD: 14
-- Required features: cxx_variadic_templates
-- Using Kineto with CUPTI support
-- Configuring Kineto dependency:
--   KINETO_SOURCE_DIR = /tmp/pytorch/third_party/kineto/libkineto
--   KINETO_BUILD_TESTS = OFF
--   KINETO_LIBRARY_TYPE = static
--   CUDA_SOURCE_DIR = /opt/cuda
--   CUDA_INCLUDE_DIRS = /opt/cuda/include
--   CUPTI_INCLUDE_DIR = /opt/cuda/extras/CUPTI/include
--   CUDA_cupti_LIBRARY = /opt/cuda/extras/CUPTI/lib64/libcupti.so
-- Found CUPTI
-- Found PythonInterp: /tmp/venv/bin/python (found version "3.10.8") 
INFO ROCM_SOURCE_DIR = 
-- Kineto: FMT_SOURCE_DIR = /tmp/pytorch/third_party/fmt
-- Kineto: FMT_INCLUDE_DIR = /tmp/pytorch/third_party/fmt/include
INFO CUPTI_INCLUDE_DIR = /opt/cuda/extras/CUPTI/include
INFO ROCTRACER_INCLUDE_DIR = /include/roctracer
-- Configured Kineto
CMake Warning (dev) at /usr/share/cmake/Modules/CMakeDependentOption.cmake:89 (message):
  Policy CMP0127 is not set: cmake_dependent_option() supports full Condition
  Syntax.  Run "cmake --help-policy CMP0127" for policy details.  Use the
  cmake_policy command to set the policy and suppress this warning.
Call Stack (most recent call first):
  CMakeLists.txt:718 (cmake_dependent_option)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- GCC 11.3.0: Adding gcc and gcc_s libs to link line
-- don't use NUMA
-- headers outputs: 
-- sources outputs: 
-- declarations_yaml outputs: 
-- Using ATen parallel backend: OMP
Found sleef: /usr/lib64/libsleef.so
AT_INSTALL_INCLUDE_DIR include/ATen/core
core header install: /tmp/pytorch/build/aten/src/ATen/core/TensorBody.h
core header install: /tmp/pytorch/build/aten/src/ATen/core/aten_interned_strings.h
core header install: /tmp/pytorch/build/aten/src/ATen/core/enum_tag.h
-- /usr/bin/c++ /tmp/pytorch/torch/abi-check.cpp -o /tmp/pytorch/build/abi-check
-- Determined _GLIBCXX_USE_CXX11_ABI=1
CMake Warning (dev) at torch/CMakeLists.txt:386:
  Syntax Warning in cmake code at column 107

  Argument not separated from preceding token by whitespace.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at torch/CMakeLists.txt:386:
  Syntax Warning in cmake code at column 115

  Argument not separated from preceding token by whitespace.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning at cmake/public/utils.cmake:385 (message):
  In the future we will require one to explicitly pass TORCH_CUDA_ARCH_LIST
  to cmake instead of implicitly setting it as an env variable.  This will
  become a FATAL_ERROR in future version of pytorch.
Call Stack (most recent call first):
  torch/CMakeLists.txt:338 (torch_cuda_get_nvcc_gencode_flag)


CMake Warning (dev) at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (OpenMP_C)
  does not match the name of the calling package (OpenMP).  This can lead to
  problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  cmake/Modules/FindOpenMP.cmake:576 (find_package_handle_standard_args)
  caffe2/CMakeLists.txt:1224 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (OpenMP_CXX)
  does not match the name of the calling package (OpenMP).  This can lead to
  problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  cmake/Modules/FindOpenMP.cmake:576 (find_package_handle_standard_args)
  caffe2/CMakeLists.txt:1224 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- pytorch is compiling with OpenMP. 
OpenMP CXX_FLAGS: -fopenmp. 
OpenMP libraries: /usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/libgomp.so;/usr/lib64/libpthread.a.
-- Caffe2 is compiling with OpenMP. 
OpenMP CXX_FLAGS: -fopenmp. 
OpenMP libraries: /usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/libgomp.so;/usr/lib64/libpthread.a.
-- Using lib/python3.10/site-packages as python relative installation path
CMake Warning at CMakeLists.txt:1087 (message):
  Generated cmake files are only fully tested if one builds with system glog,
  gflags, and protobuf.  Other settings may generate files that are not well
  tested.


-- 
-- ******** Summary ********
-- General:
--   CMake version         : 3.24.3
--   CMake command         : /usr/bin/cmake
--   System                : Linux
--   C++ compiler          : /usr/bin/c++
--   C++ compiler id       : GNU
--   C++ compiler version  : 11.3.0
--   Using ccache if found : ON
--   Found ccache          : /usr/bin/ccache
--   CXX flags             :  -fvisibility-inlines-hidden -DUSE_PTHREADPOOL -fopenmp -DNDEBUG -DUSE_KINETO -DUSE_FBGEMM -DUSE_QNNPACK -DUSE_PYTORCH_QNNPACK -DUSE_XNNPACK -DSYMBOLICATE_MOBILE_DEBUG_HANDLE -DEDGE_PROFILER_USE_KINETO -O2 -fPIC -Wall -Wextra -Werror=return-type -Werror=non-virtual-dtor -Werror=range-loop-construct -Wnarrowing -Wno-missing-field-initializers -Wno-type-limits -Wno-array-bounds -Wno-unknown-pragmas -Wunused-local-typedefs -Wno-unused-parameter -Wno-unused-function -Wno-unused-result -Wno-strict-overflow -Wno-strict-aliasing -Wno-error=deprecated-declarations -Wno-stringop-overflow -Wno-psabi -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 -Werror=format -Werror=cast-function-type -Wno-stringop-overflow
--   Build type            : Release
--   Compile definitions   : ONNX_ML=1;ONNXIFI_ENABLE_EXT=1;ONNX_NAMESPACE=onnx;HAVE_MMAP=1;_FILE_OFFSET_BITS=64;HAVE_SHM_OPEN=1;HAVE_SHM_UNLINK=1;HAVE_MALLOC_USABLE_SIZE=1;USE_EXTERNAL_MZCRC;MINIZ_DISABLE_ZIP_READER_CRC32_CHECKS;USE_FLASH_ATTENTION
--   CMAKE_PREFIX_PATH     : /tmp/venv/lib/python3.10/site-packages;/opt/cuda
--   CMAKE_INSTALL_PREFIX  : /tmp/pytorch/torch
--   USE_GOLD_LINKER       : OFF
-- 
--   TORCH_VERSION         : 1.14.0
--   CAFFE2_VERSION        : 1.14.0
--   BUILD_CAFFE2          : OFF
--   BUILD_CAFFE2_OPS      : OFF
--   BUILD_STATIC_RUNTIME_BENCHMARK: OFF
--   BUILD_TENSOREXPR_BENCHMARK: OFF
--   BUILD_NVFUSER_BENCHMARK: OFF
--   BUILD_BINARY          : OFF
--   BUILD_CUSTOM_PROTOBUF : OFF
--     Link local protobuf : ON
--   BUILD_DOCS            : OFF
--   BUILD_PYTHON          : True
--     Python version      : 3.10.8
--     Python executable   : /tmp/venv/bin/python
--     Pythonlibs version  : 3.10.8
--     Python library      : /usr/lib64/libpython3.10.so.1.0
--     Python includes     : /usr/include/python3.10
--     Python site-packages: lib/python3.10/site-packages
--   BUILD_SHARED_LIBS     : ON
--   CAFFE2_USE_MSVC_STATIC_RUNTIME     : OFF
--   BUILD_TEST            : True
--   BUILD_JNI             : OFF
--   BUILD_MOBILE_AUTOGRAD : OFF
--   BUILD_LITE_INTERPRETER: OFF
--   INTERN_BUILD_MOBILE   : 
--   TRACING_BASED         : OFF
--   USE_BLAS              : 0
--   USE_LAPACK            : 0
--   USE_ASAN              : OFF
--   USE_TSAN              : OFF
--   USE_CPP_CODE_COVERAGE : OFF
--   USE_CUDA              : ON
--     Split CUDA          : 
--     CUDA static link    : OFF
--     USE_CUDNN           : ON
--     USE_EXPERIMENTAL_CUDNN_V8_API: ON
--     CUDA version        : 11.8
--     USE_FLASH_ATTENTION : ON
--     cuDNN version       : 8.6.0
--     CUDA root directory : /opt/cuda
--     CUDA library        : /opt/cuda/lib64/stubs/libcuda.so
--     cudart library      : /opt/cuda/lib64/libcudart.so
--     cublas library      : /opt/cuda/lib64/libcublas.so
--     cufft library       : /opt/cuda/lib64/libcufft.so
--     curand library      : /opt/cuda/lib64/libcurand.so
--     cuDNN library       : /opt/cuda/lib64/libcudnn.so
--     nvrtc               : /opt/cuda/lib64/libnvrtc.so
--     CUDA include path   : /opt/cuda/include
--     NVCC executable     : /opt/cuda/bin/nvcc
--     CUDA compiler       : /opt/cuda/bin/nvcc
--     CUDA flags          :  -Xfatbin -compress-all -DONNX_NAMESPACE=onnx -gencode arch=compute_35,code=sm_35 -Xcudafe --diag_suppress=cc_clobber_ignored,--diag_suppress=integer_sign_change,--diag_suppress=useless_using_declaration,--diag_suppress=set_but_not_used,--diag_suppress=field_without_dll_interface,--diag_suppress=base_class_has_different_dll_interface,--diag_suppress=dll_interface_conflict_none_assumed,--diag_suppress=dll_interface_conflict_dllexport_assumed,--diag_suppress=implicit_return_from_non_void_function,--diag_suppress=unsigned_compare_with_zero,--diag_suppress=declared_but_not_referenced,--diag_suppress=bad_friend_decl --expt-relaxed-constexpr --expt-extended-lambda  -Wno-deprecated-gpu-targets --expt-extended-lambda -DCUB_WRAPPED_NAMESPACE=at_cuda_detail -DCUDA_HAS_FP16=1 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__
--     CUDA host compiler  : 
--     CUDA --device-c     : OFF
--     USE_TENSORRT        : OFF
--   USE_ROCM              : OFF
--   USE_EIGEN_FOR_BLAS    : ON
--   USE_FBGEMM            : ON
--     USE_FAKELOWP          : OFF
--   USE_KINETO            : ON
--   USE_FFMPEG            : OFF
--   USE_GFLAGS            : OFF
--   USE_GLOG              : OFF
--   USE_LEVELDB           : OFF
--   USE_LITE_PROTO        : OFF
--   USE_LMDB              : OFF
--   USE_METAL             : OFF
--   USE_PYTORCH_METAL     : OFF
--   USE_PYTORCH_METAL_EXPORT     : OFF
--   USE_MPS               : OFF
--   USE_FFTW              : OFF
--   USE_MKL               : OFF
--   USE_MKLDNN            : ON
--   USE_MKLDNN_ACL        : OFF
--   USE_MKLDNN_CBLAS      : OFF
--   USE_UCC               : OFF
--   USE_ITT               : ON
--   USE_NCCL              : ON
--     USE_SYSTEM_NCCL     : OFF
--     USE_NCCL_WITH_UCC   : OFF
--   USE_NNPACK            : ON
--   USE_NUMPY             : ON
--   USE_OBSERVERS         : ON
--   USE_OPENCL            : OFF
--   USE_OPENCV            : OFF
--   USE_OPENMP            : ON
--   USE_TBB               : OFF
--   USE_VULKAN            : OFF
--   USE_PROF              : OFF
--   USE_QNNPACK           : ON
--   USE_PYTORCH_QNNPACK   : ON
--   USE_XNNPACK           : ON
--   USE_REDIS             : OFF
--   USE_ROCKSDB           : OFF
--   USE_ZMQ               : OFF
--   USE_DISTRIBUTED       : ON
--     USE_MPI               : OFF
--     USE_GLOO              : ON
--     USE_GLOO_WITH_OPENSSL : OFF
--     USE_TENSORPIPE        : ON
--   Public Dependencies  : caffe2::Threads
--   Private Dependencies : pthreadpool;cpuinfo;qnnpack;pytorch_qnnpack;nnpack;XNNPACK;fbgemm;ittnotify;fp16;tensorpipe;gloo;onnx_proto;onnx;foxi_loader;rt;fmt::fmt-header-only;kineto;gcc_s;gcc;dl
--   USE_COREML_DELEGATE     : OFF
--   BUILD_LAZY_TS_BACKEND   : ON
--   TORCH_DISABLE_GPU_ASSERTS : ON
-- Configuring incomplete, errors occurred!
See also "/tmp/pytorch/build/CMakeFiles/CMakeOutput.log".
See also "/tmp/pytorch/build/CMakeFiles/CMakeError.log".
Building wheel torch-1.14.0a0+git5089161
-- Building version 1.14.0a0+git5089161
cmake -GNinja -DBUILD_PYTHON=True -DBUILD_TEST=True -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/tmp/pytorch/torch -DCMAKE_PREFIX_PATH=/tmp/venv/lib/python3.10/site-packages -DJAVA_HOME=/home/ruslan/.gentoo/java-config-2/current-user-vm -DNUMPY_INCLUDE_DIR=/tmp/venv/lib/python3.10/site-packages/numpy/core/include -DPYTHON_EXECUTABLE=/tmp/venv/bin/python -DPYTHON_INCLUDE_DIR=/usr/include/python3.10 -DPYTHON_LIBRARY=/usr/lib64/libpython3.10.so.1.0 -DTORCH_BUILD_VERSION=1.14.0a0+git5089161 -DUSE_NUMPY=True -DUSE_SYSTEM_LIBS=1 /tmp/pytorch
```
</details>

### Versions

```console
$ python collect_env.py 
Collecting environment information...
PyTorch version: N/A
Is debug build: N/A
CUDA used to build PyTorch: N/A
ROCM used to build PyTorch: N/A

OS: Gentoo Linux (x86_64)
GCC version: (Gentoo 11.3.0 p7) 11.3.0
Clang version: 15.0.3
CMake version: version 3.24.3
Libc version: glibc-2.36

Python version: 3.10.8 (main, Nov 20 2022, 21:32:29) [GCC 11.3.0] (64-bit runtime)
Python platform: Linux-5.15.77-x86_64-gt-730-sl-x86_64-AMD_Athlon-tm-_II_X2_240_Processor-with-glibc2.36
Is CUDA available: N/A
CUDA runtime version: 11.8.89
CUDA_MODULE_LOADING set to: N/A
GPU models and configuration: GPU 0: NVIDIA GeForce GT 730
Nvidia driver version: 470.141.03
cuDNN version: Probably one of the following:
/opt/cuda/targets/x86_64-linux/lib/libcudnn.so.8.6.0
/opt/cuda/targets/x86_64-linux/lib/libcudnn_adv_infer.so.8.6.0
/opt/cuda/targets/x86_64-linux/lib/libcudnn_adv_train.so.8.6.0
/opt/cuda/targets/x86_64-linux/lib/libcudnn_cnn_infer.so.8.6.0
/opt/cuda/targets/x86_64-linux/lib/libcudnn_cnn_train.so.8.6.0
/opt/cuda/targets/x86_64-linux/lib/libcudnn_ops_infer.so.8.6.0
/opt/cuda/targets/x86_64-linux/lib/libcudnn_ops_train.so.8.6.0
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: N/A

Versions of relevant libraries:
[pip3] numpy==1.23.5
[pip3] torchaudio==0.12.1+cu113
[pip3] torchvision==0.13.1+cu113
[conda] Could not collect

```

cc @malfet @seemethere