Repository: pytorch
Issue: Compilation errors on power-pc
Labels: module: build,triaged,module: POWER

## 🐛 Bug

On power9 I need to pass "-mno-float128" to CC and "-Xcopmiler -mno-float128" to NVCC for it to compiler. IF these flags are not there, there are numerous compiler errors like this:

```
/home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_scatter_prod_f32.o
/usr/include/bits/floatn.h(79): error: identifier "__ieee128" is undefined

/usr/include/bits/floatn.h(82): error: invalid argument to attribute "__mode__"
```

How can I do this?

## To Reproduce

Steps to reproduce the behavior:

1. git  git@github.com:pytorch/pytorch.git; cd pytorch
2. git checkout tags/v1.6.0
3. git submodule sync
4. git submodule update --init --recursive
5. Activate conda environment
6. conda activate ml
7. export CMAKE_PREFIX_PATH=${CONDA_PREFIX:-"$(dirname $(which conda))/../"}
8. MAX_JOBS=128 python setup.py install

## Expected behavior

A clean compilation

## Environment


 - PyTorch Version (e.g., 1.0): 1.6.0
 - OS (e.g., Linux): Red Hat Enterprise linux 8
 - How you installed PyTorch (`conda`, `pip` , source): source
 - Build command you used (if compiling from source): . MAX_JOBS=128 python setup.py install
 - Python version: 3.8.1
 - CUDA/cuDNN version: 10.1
 - GPU models and configuration: V100
 - Any other relevant information: PowerPC9 cluster

$ module list
Currently Loaded Modulefiles:
 1) cudatoolkit/10.2   2) cudnn/cuda-10.2/8.0.1   3) openmpi/gcc/4.0.4/64  

## Additional context
Building wheel torch-1.6.0a0+b31f58d
-- Building version 1.6.0a0+b31f58d
cmake -GNinja -DBUILD_PYTHON=True -DBUILD_TEST=True -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/home/rkube/repos/pytorch/torch -DCMAKE_PREFIX_PATH=/home/rkube/local/anaconda3/envs/ml2 -DNUMPY_INCLUDE_DIR=/home/rkube/local/anaconda3/envs/ml2/lib/python3.8/site-packages/numpy/core/include -DPYTHON_EXECUTABLE=/home/rkube/local/anaconda3/envs/ml2/bin/python -DPYTHON_INCLUDE_DIR=/home/rkube/local/anaconda3/envs/ml2/include/python3.8 -DPYTHON_LIBRARY=/home/rkube/local/anaconda3/envs/ml2/lib/libpython3.8.so.1.0 -DTORCH_BUILD_VERSION=1.6.0a0+b31f58d -DUSE_NUMPY=True /home/rkube/repos/pytorch
-- The CXX compiler identification is GNU 8.3.1
-- The C compiler identification is GNU 8.3.1
-- 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
-- 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 COMPILER_WORKS
-- Performing Test COMPILER_WORKS - Success
-- Performing Test SUPPORT_GLIBCXX_USE_C99
-- Performing Test SUPPORT_GLIBCXX_USE_C99 - Success
-- Performing Test CAFFE2_EXCEPTION_PTR_SUPPORTED
-- Performing Test CAFFE2_EXCEPTION_PTR_SUPPORTED - Success
-- std::exception_ptr is supported.
-- Performing Test CAFFE2_NEED_TO_TURN_OFF_DEPRECATION_WARNING
-- Performing Test CAFFE2_NEED_TO_TURN_OFF_DEPRECATION_WARNING - Success
-- Performing Test CAFFE2_COMPILER_SUPPORTS_AVX2_EXTENSIONS
-- Performing Test CAFFE2_COMPILER_SUPPORTS_AVX2_EXTENSIONS - Failed
-- Performing Test CAFFE2_COMPILER_SUPPORTS_AVX512_EXTENSIONS
-- Performing Test CAFFE2_COMPILER_SUPPORTS_AVX512_EXTENSIONS - Failed
-- 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
-- Performing Test COMPILER_SUPPORTS_RDYNAMIC
-- Performing Test COMPILER_SUPPORTS_RDYNAMIC - Success
-- Building using own protobuf under third_party per request.
-- Use custom protobuf build.
-- 
-- 3.11.4.0
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - yes
-- Found Threads: TRUE  
-- Performing Test protobuf_HAVE_BUILTIN_ATOMICS
-- Performing Test protobuf_HAVE_BUILTIN_ATOMICS - Success
-- Caffe2 protobuf include directory: $<BUILD_INTERFACE:/home/rkube/repos/pytorch/third_party/protobuf/src>$<INSTALL_INTERFACE:include>
-- Trying to find preferred BLAS backend of choice: MKL
-- MKL_THREADING = OMP
-- 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
-- MKL_THREADING = OMP
CMake Warning at cmake/Dependencies.cmake:148 (message):
  MKL could not be found.  Defaulting to Eigen
Call Stack (most recent call first):
  CMakeLists.txt:469 (include)


CMake Warning at cmake/Dependencies.cmake:172 (message):
  Preferred BLAS (MKL) cannot be found, now searching for a general BLAS
  library
Call Stack (most recent call first):
  CMakeLists.txt:469 (include)


-- MKL_THREADING = OMP
-- Checking for [mkl_intel_lp64 - mkl_gnu_thread - mkl_core - gomp - pthread - m - dl]
--   Library mkl_intel_lp64: not found
-- Checking for [mkl_intel_lp64 - mkl_intel_thread - mkl_core - gomp - pthread - m - dl]
--   Library mkl_intel_lp64: not found
-- Checking for [mkl_intel - mkl_gnu_thread - mkl_core - gomp - pthread - m - dl]
--   Library mkl_intel: not found
-- Checking for [mkl_intel - mkl_intel_thread - mkl_core - gomp - pthread - m - dl]
--   Library mkl_intel: not found
-- Checking for [mkl_gf_lp64 - mkl_gnu_thread - mkl_core - gomp - pthread - m - dl]
--   Library mkl_gf_lp64: not found
-- Checking for [mkl_gf_lp64 - mkl_intel_thread - mkl_core - gomp - pthread - m - dl]
--   Library mkl_gf_lp64: not found
-- Checking for [mkl_gf - mkl_gnu_thread - mkl_core - gomp - pthread - m - dl]
--   Library mkl_gf: not found
-- Checking for [mkl_gf - mkl_intel_thread - mkl_core - gomp - pthread - m - dl]
--   Library mkl_gf: not found
-- Checking for [mkl_intel_lp64 - mkl_gnu_thread - mkl_core - iomp5 - pthread - m - dl]
--   Library mkl_intel_lp64: not found
-- Checking for [mkl_intel_lp64 - mkl_intel_thread - mkl_core - iomp5 - pthread - m - dl]
--   Library mkl_intel_lp64: not found
-- Checking for [mkl_intel - mkl_gnu_thread - mkl_core - iomp5 - pthread - m - dl]
--   Library mkl_intel: not found
-- Checking for [mkl_intel - mkl_intel_thread - mkl_core - iomp5 - pthread - m - dl]
--   Library mkl_intel: not found
-- Checking for [mkl_gf_lp64 - mkl_gnu_thread - mkl_core - iomp5 - pthread - m - dl]
--   Library mkl_gf_lp64: not found
-- Checking for [mkl_gf_lp64 - mkl_intel_thread - mkl_core - iomp5 - pthread - m - dl]
--   Library mkl_gf_lp64: not found
-- Checking for [mkl_gf - mkl_gnu_thread - mkl_core - iomp5 - pthread - m - dl]
--   Library mkl_gf: not found
-- Checking for [mkl_gf - mkl_intel_thread - mkl_core - iomp5 - pthread - m - dl]
--   Library mkl_gf: not found
-- Checking for [mkl_intel_lp64 - mkl_gnu_thread - mkl_core - pthread - m - dl]
--   Library mkl_intel_lp64: not found
-- Checking for [mkl_intel_lp64 - mkl_intel_thread - mkl_core - pthread - m - dl]
--   Library mkl_intel_lp64: not found
-- Checking for [mkl_intel - mkl_gnu_thread - mkl_core - pthread - m - dl]
--   Library mkl_intel: not found
-- Checking for [mkl_intel - mkl_intel_thread - mkl_core - pthread - m - dl]
--   Library mkl_intel: not found
-- Checking for [mkl_gf_lp64 - mkl_gnu_thread - mkl_core - pthread - m - dl]
--   Library mkl_gf_lp64: not found
-- Checking for [mkl_gf_lp64 - mkl_intel_thread - mkl_core - pthread - m - dl]
--   Library mkl_gf_lp64: not found
-- Checking for [mkl_gf - mkl_gnu_thread - mkl_core - pthread - m - dl]
--   Library mkl_gf: not found
-- Checking for [mkl_gf - mkl_intel_thread - mkl_core - pthread - m - dl]
--   Library mkl_gf: not found
-- Checking for [mkl_intel_lp64 - mkl_sequential - mkl_core - m - dl]
--   Library mkl_intel_lp64: not found
-- Checking for [mkl_intel - mkl_sequential - mkl_core - m - dl]
--   Library mkl_intel: not found
-- Checking for [mkl_gf_lp64 - mkl_sequential - mkl_core - m - dl]
--   Library mkl_gf_lp64: not found
-- Checking for [mkl_gf - mkl_sequential - mkl_core - m - dl]
--   Library mkl_gf: not found
-- Checking for [mkl_intel_lp64 - mkl_core - gomp - pthread - m - dl]
--   Library mkl_intel_lp64: not found
-- Checking for [mkl_intel - mkl_core - gomp - pthread - m - dl]
--   Library mkl_intel: not found
-- Checking for [mkl_gf_lp64 - mkl_core - gomp - pthread - m - dl]
--   Library mkl_gf_lp64: not found
-- Checking for [mkl_gf - mkl_core - gomp - pthread - m - dl]
--   Library mkl_gf: not found
-- Checking for [mkl_intel_lp64 - mkl_core - iomp5 - pthread - m - dl]
--   Library mkl_intel_lp64: not found
-- Checking for [mkl_intel - mkl_core - iomp5 - pthread - m - dl]
--   Library mkl_intel: not found
-- Checking for [mkl_gf_lp64 - mkl_core - iomp5 - pthread - m - dl]
--   Library mkl_gf_lp64: not found
-- Checking for [mkl_gf - mkl_core - iomp5 - pthread - m - dl]
--   Library mkl_gf: not found
-- Checking for [mkl_intel_lp64 - mkl_core - pthread - m - dl]
--   Library mkl_intel_lp64: not found
-- Checking for [mkl_intel - mkl_core - pthread - m - dl]
--   Library mkl_intel: not found
-- Checking for [mkl_gf_lp64 - mkl_core - pthread - m - dl]
--   Library mkl_gf_lp64: not found
-- Checking for [mkl_gf - mkl_core - pthread - m - dl]
--   Library mkl_gf: not found
-- Checking for [mkl - guide - pthread - m]
--   Library mkl: not found
-- MKL library not found
-- Checking for [Accelerate]
--   Library Accelerate: BLAS_Accelerate_LIBRARY-NOTFOUND
-- Checking for [vecLib]
--   Library vecLib: BLAS_vecLib_LIBRARY-NOTFOUND
-- Checking for [openblas]
--   Library openblas: /usr/lib64/libopenblas.so
-- Looking for sgemm_
-- Looking for sgemm_ - found
-- Performing Test BLAS_F2C_DOUBLE_WORKS
-- Performing Test BLAS_F2C_DOUBLE_WORKS - Success
-- Performing Test BLAS_F2C_FLOAT_WORKS
-- Performing Test BLAS_F2C_FLOAT_WORKS - Success
-- Performing Test BLAS_USE_CBLAS_DOT
-- Performing Test BLAS_USE_CBLAS_DOT - Success
-- Found a library with BLAS API (open).
CMake Warning at cmake/Dependencies.cmake:233 (message):
  Target architecture "ppc64le" is not supported in {Q/X}NNPACK.  Supported
  architectures are x86, x86-64, ARM, and ARM64.  Turn this warning off by
  USE_{Q/X}NNPACK=OFF.
Call Stack (most recent call first):
  CMakeLists.txt:469 (include)


CMake Warning at third_party/cpuinfo/CMakeLists.txt:71 (MESSAGE):
  Target processor architecture "ppc64le" is not supported in cpuinfo.
  cpuinfo will compile, but cpuinfo_initialize() will always fail.


-- Found PythonInterp: /home/rkube/local/anaconda3/envs/ml2/bin/python (found version "3.8.1") 
-- Found Git: /usr/bin/git (found version "2.18.4") 
-- git Version: v1.4.0-505be96a
-- Version: 1.4.0
-- Performing Test HAVE_CXX_FLAG_STD_CXX11
-- Performing Test HAVE_CXX_FLAG_STD_CXX11 - Success
-- Performing Test HAVE_CXX_FLAG_WALL
-- Performing Test HAVE_CXX_FLAG_WALL - Success
-- Performing Test HAVE_CXX_FLAG_WEXTRA
-- Performing Test HAVE_CXX_FLAG_WEXTRA - Success
-- Performing Test HAVE_CXX_FLAG_WSHADOW
-- Performing Test HAVE_CXX_FLAG_WSHADOW - Success
-- Performing Test HAVE_CXX_FLAG_WERROR
-- Performing Test HAVE_CXX_FLAG_WERROR - Success
-- Performing Test HAVE_CXX_FLAG_PEDANTIC
-- Performing Test HAVE_CXX_FLAG_PEDANTIC - Success
-- Performing Test HAVE_CXX_FLAG_PEDANTIC_ERRORS
-- Performing Test HAVE_CXX_FLAG_PEDANTIC_ERRORS - Success
-- Performing Test HAVE_CXX_FLAG_WSHORTEN_64_TO_32
-- Performing Test HAVE_CXX_FLAG_WSHORTEN_64_TO_32 - Failed
-- Performing Test HAVE_CXX_FLAG_WFLOAT_EQUAL
-- Performing Test HAVE_CXX_FLAG_WFLOAT_EQUAL - Success
-- Performing Test HAVE_CXX_FLAG_FSTRICT_ALIASING
-- Performing Test HAVE_CXX_FLAG_FSTRICT_ALIASING - Success
-- Performing Test HAVE_CXX_FLAG_WNO_DEPRECATED_DECLARATIONS
-- Performing Test HAVE_CXX_FLAG_WNO_DEPRECATED_DECLARATIONS - Success
-- Performing Test HAVE_CXX_FLAG_WSTRICT_ALIASING
-- Performing Test HAVE_CXX_FLAG_WSTRICT_ALIASING - Success
-- Performing Test HAVE_CXX_FLAG_WD654
-- Performing Test HAVE_CXX_FLAG_WD654 - Failed
-- Performing Test HAVE_CXX_FLAG_WTHREAD_SAFETY
-- Performing Test HAVE_CXX_FLAG_WTHREAD_SAFETY - Failed
-- Performing Test HAVE_CXX_FLAG_COVERAGE
-- Performing Test HAVE_CXX_FLAG_COVERAGE - Success
-- Performing Test HAVE_STD_REGEX
-- Performing Test HAVE_STD_REGEX
-- Performing Test HAVE_STD_REGEX -- success
-- Performing Test HAVE_GNU_POSIX_REGEX
-- Performing Test HAVE_GNU_POSIX_REGEX
-- Performing Test HAVE_GNU_POSIX_REGEX -- failed to compile
-- Performing Test HAVE_POSIX_REGEX
-- Performing Test HAVE_POSIX_REGEX
-- Performing Test HAVE_POSIX_REGEX -- success
-- Performing Test HAVE_STEADY_CLOCK
-- Performing Test HAVE_STEADY_CLOCK
-- Performing Test HAVE_STEADY_CLOCK -- success
CMake Warning at cmake/Dependencies.cmake:650 (message):
  A compiler with AVX512 support is required for FBGEMM.  Not compiling with
  FBGEMM.  Turn this warning off by USE_FBGEMM=OFF.
Call Stack (most recent call first):
  CMakeLists.txt:469 (include)


CMake Warning at cmake/Dependencies.cmake:689 (message):
  Turning USE_FAKELOWP off as it depends on USE_FBGEMM.
Call Stack (most recent call first):
  CMakeLists.txt:469 (include)


-- Found Numa: /usr/include  
-- Found Numa  (include: /usr/include, library: /usr/lib64/libnuma.so)
-- Downloading PSimd to /home/rkube/repos/pytorch/build/confu-srcs/psimd (define PSIMD_SOURCE_DIR to avoid it)
-- Configuring done
-- Generating done
-- Build files have been written to: /home/rkube/repos/pytorch/build/confu-deps/psimd-download
[1/9] Creating directories for 'psimd'
[2/9] Performing download step (git clone) for 'psimd'
Cloning into 'psimd'...
Already on 'master'
Your branch is up to date with 'origin/master'.
[3/9] No patch step for 'psimd'
[4/9] Performing update step for 'psimd'
Current branch master is up to date.
[5/9] No configure step for 'psimd'
[6/9] No build step for 'psimd'
[7/9] No install step for 'psimd'
[8/9] No test step for 'psimd'
[9/9] Completed 'psimd'
-- Using third party subdirectory Eigen.
-- Found PythonInterp: /home/rkube/local/anaconda3/envs/ml2/bin/python (found suitable version "3.8.1", minimum required is "3.0") 
-- Found PythonLibs: /home/rkube/local/anaconda3/envs/ml2/lib/libpython3.8.so.1.0 (found suitable version "3.8.1", minimum required is "3.0") 
-- Using third_party/pybind11.
-- pybind11 include dirs: /home/rkube/repos/pytorch/cmake/../third_party/pybind11/include
-- Found MPI_C: /usr/local/openmpi/4.0.4/gcc/ppc64le/lib64/libmpi.so (found version "3.1") 
-- Found MPI_CXX: /usr/local/openmpi/4.0.4/gcc/ppc64le/lib64/libmpi.so (found version "3.1") 
-- Found MPI: TRUE (found version "3.1")  
-- MPI support found
-- MPI compile flags: -pthread
-- MPI include path: /usr/local/include/usr/local/openmpi/4.0.4/gcc/ppc64le/include
-- MPI LINK flags path: -Wl,-rpath -Wl,/usr/lib64 -Wl,-rpath -Wl,/usr/local/lib64 -Wl,-rpath -Wl,/usr/local/lib64/openmpi -Wl,-rpath -Wl,/usr/local/openmpi/4.0.4/gcc/ppc64le/lib64 -Wl,--enable-new-dtags -L/usr/lib64 -L/usr/local/lib64 -L/usr/local/lib64/openmpi -pthread
-- MPI libraries: /usr/local/openmpi/4.0.4/gcc/ppc64le/lib64/libmpi.so
CMake Warning at cmake/Dependencies.cmake:987 (message):
  OpenMPI found, but it is not built with CUDA support.
Call Stack (most recent call first):
  CMakeLists.txt:469 (include)


-- Adding OpenMP CXX_FLAGS: -fopenmp
-- Will link against OpenMP libraries: /usr/lib/gcc/ppc64le-redhat-linux/8/libgomp.so;/usr/lib64/libpthread.so
-- Found CUDA: /usr/local/cuda-10.1 (found version "10.1") 
-- Caffe2: CUDA detected: 10.1
-- Caffe2: CUDA nvcc is: /usr/local/cuda-10.1/bin/nvcc
-- Caffe2: CUDA toolkit directory: /usr/local/cuda-10.1
-- Caffe2: Header version is: 10.1
-- Found CUDNN: //usr/local/cudnn/cuda-10.1/7.6.1/lib64/libcudnn.so  
-- Found cuDNN: v7.6.1  (include: //usr/local/cudnn/cuda-10.1/7.6.1/include, library: //usr/local/cudnn/cuda-10.1/7.6.1/lib64/libcudnn.so)
-- Autodetected CUDA architecture(s):  7.0 7.0
-- Added CUDA NVCC flags for: -gencode;arch=compute_70,code=sm_70
-- Autodetected CUDA architecture(s):  7.0 7.0
CMake Warning at cmake/External/nccl.cmake:47 (message):
  Enabling NCCL library slimming
Call Stack (most recent call first):
  cmake/Dependencies.cmake:1219 (include)
  CMakeLists.txt:469 (include)


-- Could NOT find CUB (missing: CUB_INCLUDE_DIR) 
-- Gloo build as SHARED library
-- MPI include path: /usr/local/include/usr/local/openmpi/4.0.4/gcc/ppc64le/include
-- MPI libraries: /usr/local/openmpi/4.0.4/gcc/ppc64le/lib64/libmpi.so
-- Found CUDA: /usr/local/cuda-10.1 (found suitable version "10.1", minimum required is "7.0") 
-- CUDA detected: 10.1
-- Could NOT find NCCL (missing: NCCL_INCLUDE_DIR NCCL_LIBRARY) 
CMake Warning at third_party/gloo/cmake/Dependencies.cmake:121 (message):
  Not compiling with NCCL support.  Suppress this warning with
  -DUSE_NCCL=OFF.
Call Stack (most recent call first):
  third_party/gloo/CMakeLists.txt:96 (include)


-- Performing Test UV_LINT_W4
-- Performing Test UV_LINT_W4 - Failed
-- Performing Test UV_LINT_WALL
-- Performing Test UV_LINT_WALL - Success
-- Performing Test UV_LINT_NO_UNUSED_PARAMETER
-- Performing Test UV_LINT_NO_UNUSED_PARAMETER - Success
-- Performing Test UV_LINT_STRICT_PROTOTYPES
-- Performing Test UV_LINT_STRICT_PROTOTYPES - Success
-- Performing Test UV_LINT_EXTRA
-- Performing Test UV_LINT_EXTRA - Success
-- Found uv: 1.38.1 (found version "1.38.1") 
CMake Warning at cmake/Dependencies.cmake:1334 (message):
  Metal is only used in ios builds.
Call Stack (most recent call first):
  CMakeLists.txt:469 (include)


Generated: /home/rkube/repos/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.proto
Generated: /home/rkube/repos/pytorch/build/third_party/onnx/onnx/onnx-operators_onnx_torch-ml.proto
-- 
-- ******** Summary ********
--   CMake version         : 3.12.0
--   CMake command         : /home/rkube/local/anaconda3/envs/ml2/bin/cmake
--   System                : Linux
--   C++ compiler          : /usr/bin/c++
--   C++ compiler version  : 8.3.1
--   CXX flags             : -mno-float128 -fvisibility-inlines-hidden -fopenmp -Wnon-virtual-dtor
--   Build type            : Release
--   Compile definitions   : ONNX_ML=1;ONNXIFI_ENABLE_EXT=1
--   CMAKE_PREFIX_PATH     : /home/rkube/local/anaconda3/envs/ml2;//usr/local/cudnn/cuda-10.1/7.6.1;//usr/local/cudnn/cuda-10.1/7.6.1;/usr/local/cuda-10.1
--   CMAKE_INSTALL_PREFIX  : /home/rkube/repos/pytorch/torch
--   CMAKE_MODULE_PATH     : /home/rkube/repos/pytorch/cmake/Modules;/home/rkube/repos/pytorch/cmake/public/../Modules_CUDA_fix
-- 
--   ONNX version          : 1.7.0
--   ONNX NAMESPACE        : onnx_torch
--   ONNX_BUILD_TESTS      : OFF
--   ONNX_BUILD_BENCHMARKS : OFF
--   ONNX_USE_LITE_PROTO   : OFF
--   ONNXIFI_DUMMY_BACKEND : OFF
--   ONNXIFI_ENABLE_EXT    : OFF
-- 
--   Protobuf compiler     : 
--   Protobuf includes     : 
--   Protobuf libraries    : 
--   BUILD_ONNX_PYTHON     : OFF
-- 
-- ******** Summary ********
--   CMake version         : 3.12.0
--   CMake command         : /home/rkube/local/anaconda3/envs/ml2/bin/cmake
--   System                : Linux
--   C++ compiler          : /usr/bin/c++
--   C++ compiler version  : 8.3.1
--   CXX flags             : -mno-float128 -fvisibility-inlines-hidden -fopenmp -Wnon-virtual-dtor
--   Build type            : Release
--   Compile definitions   : ONNX_ML=1;ONNXIFI_ENABLE_EXT=1
--   CMAKE_PREFIX_PATH     : /home/rkube/local/anaconda3/envs/ml2;//usr/local/cudnn/cuda-10.1/7.6.1;//usr/local/cudnn/cuda-10.1/7.6.1;/usr/local/cuda-10.1
--   CMAKE_INSTALL_PREFIX  : /home/rkube/repos/pytorch/torch
--   CMAKE_MODULE_PATH     : /home/rkube/repos/pytorch/cmake/Modules;/home/rkube/repos/pytorch/cmake/public/../Modules_CUDA_fix
-- 
--   ONNX version          : 1.4.1
--   ONNX NAMESPACE        : onnx_torch
--   ONNX_BUILD_TESTS      : OFF
--   ONNX_BUILD_BENCHMARKS : OFF
--   ONNX_USE_LITE_PROTO   : OFF
--   ONNXIFI_DUMMY_BACKEND : OFF
-- 
--   Protobuf compiler     : 
--   Protobuf includes     : 
--   Protobuf libraries    : 
--   BUILD_ONNX_PYTHON     : OFF
-- 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.
-- Looking for cpuid.h
-- Looking for cpuid.h - not found
-- Performing Test NO_GCC_EBX_FPIC_BUG
-- Performing Test NO_GCC_EBX_FPIC_BUG - Failed
-- Performing Test C_HAS_AVX_1
-- Performing Test C_HAS_AVX_1 - Failed
-- Performing Test C_HAS_AVX_2
-- Performing Test C_HAS_AVX_2 - Failed
-- Performing Test C_HAS_AVX_3
-- Performing Test C_HAS_AVX_3 - Failed
-- Performing Test C_HAS_AVX2_1
-- Performing Test C_HAS_AVX2_1 - Failed
-- Performing Test C_HAS_AVX2_2
-- Performing Test C_HAS_AVX2_2 - Failed
-- Performing Test C_HAS_AVX2_3
-- Performing Test C_HAS_AVX2_3 - Failed
-- Performing Test CXX_HAS_AVX_1
-- Performing Test CXX_HAS_AVX_1 - Failed
-- Performing Test CXX_HAS_AVX_2
-- Performing Test CXX_HAS_AVX_2 - Failed
-- Performing Test CXX_HAS_AVX_3
-- Performing Test CXX_HAS_AVX_3 - Failed
-- Performing Test CXX_HAS_AVX2_1
-- Performing Test CXX_HAS_AVX2_1 - Failed
-- Performing Test CXX_HAS_AVX2_2
-- Performing Test CXX_HAS_AVX2_2 - Failed
-- Performing Test CXX_HAS_AVX2_3
-- Performing Test CXX_HAS_AVX2_3 - Failed
-- Looking for cheev_
-- Looking for cheev_ - found
-- Found a library with LAPACK API (open).
disabling ROCM because NOT USE_ROCM is set
-- MIOpen not found. Compiling without MIOpen support
disabling MKLDNN because USE_MKLDNN is not set
-- Looking for clock_gettime in rt
-- Looking for clock_gettime in rt - found
-- Looking for mmap
-- Looking for mmap - found
-- Looking for shm_open
-- Looking for shm_open - found
-- Looking for shm_unlink
-- Looking for shm_unlink - found
-- Looking for malloc_usable_size
-- Looking for malloc_usable_size - found
-- Performing Test C_HAS_THREAD
-- Performing Test C_HAS_THREAD - Success
-- Version: 6.2.0
-- Build type: Release
-- CXX_STANDARD: 14
-- Performing Test has_std_14_flag
-- Performing Test has_std_14_flag - Success
-- Performing Test has_std_1y_flag
-- Performing Test has_std_1y_flag - Success
-- Performing Test SUPPORTS_USER_DEFINED_LITERALS
-- Performing Test SUPPORTS_USER_DEFINED_LITERALS - Success
-- Performing Test FMT_HAS_VARIANT
-- Performing Test FMT_HAS_VARIANT - Success
-- Required features: cxx_variadic_templates
-- Looking for strtod_l
-- Looking for strtod_l - not found
-- GCC 8.3.1: Adding gcc and gcc_s libs to link line
-- Performing Test HAS_WERROR_FORMAT
-- Performing Test HAS_WERROR_FORMAT - Success
-- Looking for backtrace
-- Looking for backtrace - found
-- backtrace facility detected in default set of libraries
-- Found Backtrace: /usr/include  
-- NUMA paths:
-- /usr/include
-- /usr/lib64/libnuma.so
-- Using ATen parallel backend: OMP
-- Found OpenSSL: /home/rkube/local/anaconda3/envs/ml2/lib/libcrypto.so (found version "1.1.1g")  
-- Check size of long double
-- Check size of long double - done
-- Performing Test COMPILER_SUPPORTS_LONG_DOUBLE
-- Performing Test COMPILER_SUPPORTS_LONG_DOUBLE - Success
-- Performing Test COMPILER_SUPPORTS_FLOAT128
-- Performing Test COMPILER_SUPPORTS_FLOAT128 - Failed
-- Performing Test COMPILER_SUPPORTS_VSX
-- Performing Test COMPILER_SUPPORTS_VSX - Failed
-- Found OpenMP_C: -fopenmp (found version "4.5") 
-- Found OpenMP_CXX: -fopenmp (found version "4.5") 
-- Found OpenMP: TRUE (found version "4.5")  
-- Performing Test COMPILER_SUPPORTS_OPENMP
-- Performing Test COMPILER_SUPPORTS_OPENMP - Success
-- Performing Test COMPILER_SUPPORTS_WEAK_ALIASES
-- Performing Test COMPILER_SUPPORTS_WEAK_ALIASES - Success
-- Performing Test COMPILER_SUPPORTS_BUILTIN_MATH
-- Performing Test COMPILER_SUPPORTS_BUILTIN_MATH - Success
-- Performing Test COMPILER_SUPPORTS_SYS_GETRANDOM
-- Performing Test COMPILER_SUPPORTS_SYS_GETRANDOM - Success
-- Configuring build for SLEEF-v3.4.0
   Target system: Linux-4.18.0-193.14.3.el8_2.ppc64le
   Target processor: ppc64le
   Host system: Linux-4.18.0-193.14.3.el8_2.ppc64le
   Host processor: ppc64le
   Detected C compiler: GNU @ /usr/bin/cc
-- Using option `-Wall -Wno-unused -Wno-attributes -Wno-unused-result -Wno-psabi -ffp-contract=off -fno-math-errno -fno-trapping-math` to compile libsleef
-- Building shared libs : OFF
-- MPFR : /usr/lib64/libmpfr.so
-- MPFR header file in /usr/include
-- GMP : /home/rkube/local/anaconda3/envs/ml2/lib/libgmp.so
-- RT : /usr/lib64/librt.so
-- FFTW3 : LIBFFTW3-NOTFOUND
-- OPENSSL : 1.1.1g
-- SDE : SDE_COMMAND-NOTFOUND
-- RUNNING_ON_TRAVIS : 0
-- COMPILER_SUPPORTS_OPENMP : 1
AT_INSTALL_INCLUDE_DIR include/ATen/core
core header install: /home/rkube/repos/pytorch/build/aten/src/ATen/core/TensorBody.h
-- Include NCCL operators
-- Excluding FakeLowP operators
-- Excluding ideep operators as we are not using ideep
-- Excluding image processing operators due to no opencv
-- Excluding video processing operators due to no opencv
-- Include Observer library
-- /usr/bin/c++ /home/rkube/repos/pytorch/caffe2/../torch/abi-check.cpp -o /home/rkube/repos/pytorch/build/abi-check
-- Determined _GLIBCXX_USE_CXX11_ABI=1
-- MPI_INCLUDE_PATH: /usr/local/include;/usr/local/openmpi/4.0.4/gcc/ppc64le/include
-- MPI_LIBRARIES: /usr/local/openmpi/4.0.4/gcc/ppc64le/lib64/libmpi.so
-- MPIEXEC: /usr/local/openmpi/4.0.4/gcc/ppc64le/bin/mpiexec
-- Autodetected CUDA architecture(s):  7.0 7.0
-- pytorch is compiling with OpenMP. 
OpenMP CXX_FLAGS: -fopenmp. 
OpenMP libraries: /usr/lib/gcc/ppc64le-redhat-linux/8/libgomp.so;/usr/lib64/libpthread.so.
-- Caffe2 is compiling with OpenMP. 
OpenMP CXX_FLAGS: -fopenmp. 
OpenMP libraries: /usr/lib/gcc/ppc64le-redhat-linux/8/libgomp.so;/usr/lib64/libpthread.so.
-- Using lib/python3.8/site-packages as python relative installation path
CMake Warning at CMakeLists.txt:690 (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.12.0
--   CMake command         : /home/rkube/local/anaconda3/envs/ml2/bin/cmake
--   System                : Linux
--   C++ compiler          : /usr/bin/c++
--   C++ compiler id       : GNU
--   C++ compiler version  : 8.3.1
--   BLAS                  : MKL
--   CXX flags             : -mno-float128 -fvisibility-inlines-hidden -fopenmp -DNDEBUG -DUSE_VULKAN_WRAPPER -O2 -fPIC -Wno-narrowing -Wall -Wextra -Werror=return-type -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-unused-local-typedefs -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 -Werror=format -Wno-stringop-overflow
--   Build type            : Release
--   Compile definitions   : ONNX_ML=1;ONNXIFI_ENABLE_EXT=1;ONNX_NAMESPACE=onnx_torch;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
--   CMAKE_PREFIX_PATH     : /home/rkube/local/anaconda3/envs/ml2;//usr/local/cudnn/cuda-10.1/7.6.1;//usr/local/cudnn/cuda-10.1/7.6.1;/usr/local/cuda-10.1
--   CMAKE_INSTALL_PREFIX  : /home/rkube/repos/pytorch/torch
-- 
--   TORCH_VERSION         : 1.6.0
--   CAFFE2_VERSION        : 1.6.0
--   BUILD_CAFFE2_MOBILE   : OFF
--   USE_STATIC_DISPATCH   : OFF
--   BUILD_BINARY          : OFF
--   BUILD_CUSTOM_PROTOBUF : ON
--     Link local protobuf : ON
--   BUILD_DOCS            : OFF
--   BUILD_PYTHON          : True
--     Python version      : 3.8.1
--     Python executable   : /home/rkube/local/anaconda3/envs/ml2/bin/python
--     Pythonlibs version  : 3.8.1
--     Python library      : /home/rkube/local/anaconda3/envs/ml2/lib/libpython3.8.so.1.0
--     Python includes     : /home/rkube/local/anaconda3/envs/ml2/include/python3.8
--     Python site-packages: lib/python3.8/site-packages
--   BUILD_CAFFE2_OPS      : ON
--   BUILD_SHARED_LIBS     : ON
--   BUILD_TEST            : True
--   BUILD_JNI             : OFF
--   INTERN_BUILD_MOBILE   : 
--   USE_ASAN              : OFF
--   USE_CUDA              : ON
--     CUDA static link    : OFF
--     USE_CUDNN           : ON
--     CUDA version        : 10.1
--     cuDNN version       : 7.6.1
--     CUDA root directory : /usr/local/cuda-10.1
--     CUDA library        : /usr/local/cuda-10.1/lib64/stubs/libcuda.so
--     cudart library      : /usr/local/cuda-10.1/lib64/libcudart.so
--     cublas library      : /usr/lib64/libcublas.so
--     cufft library       : /usr/local/cuda-10.1/lib64/libcufft.so
--     curand library      : /usr/local/cuda-10.1/lib64/libcurand.so
--     cuDNN library       : //usr/local/cudnn/cuda-10.1/7.6.1/lib64/libcudnn.so
--     nvrtc               : /usr/local/cuda-10.1/lib64/libnvrtc.so
--     CUDA include path   : /usr/local/cuda-10.1/include
--     NVCC executable     : /usr/local/cuda-10.1/bin/nvcc
--     NVCC flags          : -DONNX_NAMESPACE=onnx_torch;-gencode;arch=compute_70,code=sm_70;-Xcudafe;--diag_suppress=cc_clobber_ignored;-Xcudafe;--diag_suppress=integer_sign_change;-Xcudafe;--diag_suppress=useless_using_declaration;-Xcudafe;--diag_suppress=set_but_not_used;-Xcudafe;--diag_suppress=field_without_dll_interface;-Xcudafe;--diag_suppress=base_class_has_different_dll_interface;-Xcudafe;--diag_suppress=dll_interface_conflict_none_assumed;-Xcudafe;--diag_suppress=dll_interface_conflict_dllexport_assumed;-Xcudafe;--diag_suppress=implicit_return_from_non_void_function;-Xcudafe;--diag_suppress=unsigned_compare_with_zero;-Xcudafe;--diag_suppress=declared_but_not_referenced;-Xcudafe;--diag_suppress=bad_friend_decl;-std=c++14;-Xcompiler;-fPIC;--expt-relaxed-constexpr;--expt-extended-lambda;-Wno-deprecated-gpu-targets;--expt-extended-lambda;-gencode;arch=compute_70,code=sm_70;-Xcompiler;-fPIC;-DCUDA_HAS_FP16=1;-D__CUDA_NO_HALF_OPERATORS__;-D__CUDA_NO_HALF_CONVERSIONS__;-D__CUDA_NO_HALF2_OPERATORS__
--     CUDA host compiler  : /usr/bin/cc
--     NVCC --device-c     : OFF
--     USE_TENSORRT        : OFF
--   USE_ROCM              : OFF
--   USE_EIGEN_FOR_BLAS    : ON
--   USE_FBGEMM            : OFF
--     USE_FAKELOWP          : OFF
--   USE_FFMPEG            : OFF
--   USE_GFLAGS            : OFF
--   USE_GLOG              : OFF
--   USE_LEVELDB           : OFF
--   USE_LITE_PROTO        : OFF
--   USE_LMDB              : OFF
--   USE_METAL             : OFF
--   USE_MKL               : OFF
--   USE_MKLDNN            : OFF
--   USE_NCCL              : ON
--     USE_SYSTEM_NCCL     : OFF
--   USE_NNPACK            : OFF
--   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           : OFF
--   USE_PYTORCH_QNNPACK   : OFF
--   USE_REDIS             : OFF
--   USE_ROCKSDB           : OFF
--   USE_ZMQ               : OFF
--   USE_DISTRIBUTED       : ON
--     USE_MPI             : ON
--     USE_GLOO            : ON
--     USE_TENSORPIPE      : ON
--   Public Dependencies  : Threads::Threads
--   Private Dependencies : cpuinfo;/usr/lib64/libnuma.so;fp16;/usr/local/openmpi/4.0.4/gcc/ppc64le/lib64/libmpi.so;gloo;tensorpipe;aten_op_header_gen;foxi_loader;rt;fmt::fmt-header-only;gcc_s;gcc;dl
-- Configuring done
-- Generating done
-- Build files have been written to: /home/rkube/repos/pytorch/build
cmake --build . --target install --config Release -- -j 64
[67/3326] Performing build step for 'nccl_external'
FAILED: nccl_external-prefix/src/nccl_external-stamp/nccl_external-build nccl/lib/libnccl_static.a 
cd /home/rkube/repos/pytorch/third_party/nccl/nccl && env CCACHE_DISABLE=1 SCCACHE_DISABLE=1 make CXX=/usr/bin/c++ CUDA_HOME=/usr/local/cuda-10.1 NVCC=/usr/local/cuda-10.1/bin/nvcc NVCC_GENCODE=-gencode=arch=compute_70,code=sm_70 BUILDDIR=/home/rkube/repos/pytorch/build/nccl VERBOSE=0 -j && /home/rkube/local/anaconda3/envs/ml2/bin/cmake -E touch /home/rkube/repos/pytorch/build/nccl_external-prefix/src/nccl_external-stamp/nccl_external-build
make -C src build BUILDDIR=/home/rkube/repos/pytorch/build/nccl
make[1]: Entering directory '/home/rkube/repos/pytorch/third_party/nccl/nccl/src'
Grabbing   include/nccl_net.h                  > /home/rkube/repos/pytorch/build/nccl/include/nccl_net.h
Compiling  init.cc                             > /home/rkube/repos/pytorch/build/nccl/obj/init.o
Generating nccl.h.in                           > /home/rkube/repos/pytorch/build/nccl/include/nccl.h
Compiling  channel.cc                          > /home/rkube/repos/pytorch/build/nccl/obj/channel.o
Compiling  bootstrap.cc                        > /home/rkube/repos/pytorch/build/nccl/obj/bootstrap.o
Compiling  transport.cc                        > /home/rkube/repos/pytorch/build/nccl/obj/transport.o
Compiling  group.cc                            > /home/rkube/repos/pytorch/build/nccl/obj/group.o
Compiling  debug.cc                            > /home/rkube/repos/pytorch/build/nccl/obj/debug.o
Compiling  enqueue.cc                          > /home/rkube/repos/pytorch/build/nccl/obj/enqueue.o
Compiling  proxy.cc                            > /home/rkube/repos/pytorch/build/nccl/obj/proxy.o
Compiling  misc/nvmlwrap.cc                    > /home/rkube/repos/pytorch/build/nccl/obj/misc/nvmlwrap.o
Compiling  misc/ibvwrap.cc                     > /home/rkube/repos/pytorch/build/nccl/obj/misc/ibvwrap.o
Compiling  misc/utils.cc                       > /home/rkube/repos/pytorch/build/nccl/obj/misc/utils.o
Compiling  misc/argcheck.cc                    > /home/rkube/repos/pytorch/build/nccl/obj/misc/argcheck.o
Compiling  transport/p2p.cc                    > /home/rkube/repos/pytorch/build/nccl/obj/transport/p2p.o
Compiling  transport/net.cc                    > /home/rkube/repos/pytorch/build/nccl/obj/transport/net.o
Compiling  transport/shm.cc                    > /home/rkube/repos/pytorch/build/nccl/obj/transport/shm.o
Compiling  transport/net_socket.cc             > /home/rkube/repos/pytorch/build/nccl/obj/transport/net_socket.o
Compiling  transport/net_ib.cc                 > /home/rkube/repos/pytorch/build/nccl/obj/transport/net_ib.o
Compiling  collectives/sendrecv.cc             > /home/rkube/repos/pytorch/build/nccl/obj/collectives/sendrecv.o
Compiling  transport/coll_net.cc               > /home/rkube/repos/pytorch/build/nccl/obj/transport/coll_net.o
Compiling  collectives/broadcast.cc            > /home/rkube/repos/pytorch/build/nccl/obj/collectives/broadcast.o
Compiling  collectives/all_reduce.cc           > /home/rkube/repos/pytorch/build/nccl/obj/collectives/all_reduce.o
Compiling  collectives/all_gather.cc           > /home/rkube/repos/pytorch/build/nccl/obj/collectives/all_gather.o
Compiling  collectives/reduce.cc               > /home/rkube/repos/pytorch/build/nccl/obj/collectives/reduce.o
Compiling  collectives/reduce_scatter.cc       > /home/rkube/repos/pytorch/build/nccl/obj/collectives/reduce_scatter.o
Compiling  graph/topo.cc                       > /home/rkube/repos/pytorch/build/nccl/obj/graph/topo.o
Compiling  graph/paths.cc                      > /home/rkube/repos/pytorch/build/nccl/obj/graph/paths.o
Compiling  graph/search.cc                     > /home/rkube/repos/pytorch/build/nccl/obj/graph/search.o
Compiling  graph/rings.cc                      > /home/rkube/repos/pytorch/build/nccl/obj/graph/rings.o
Compiling  graph/connect.cc                    > /home/rkube/repos/pytorch/build/nccl/obj/graph/connect.o
Compiling  graph/trees.cc                      > /home/rkube/repos/pytorch/build/nccl/obj/graph/trees.o
Compiling  graph/tuning.cc                     > /home/rkube/repos/pytorch/build/nccl/obj/graph/tuning.o
Compiling  graph/xml.cc                        > /home/rkube/repos/pytorch/build/nccl/obj/graph/xml.o
make[2]: Entering directory '/home/rkube/repos/pytorch/third_party/nccl/nccl/src/collectives/device'
Generating nccl.pc.in                          > /home/rkube/repos/pytorch/build/nccl/lib/pkgconfig/nccl.pc
Generating rules                               > /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/Makefile.rules
graph/rings.cc: In function ‘ncclResult_t ncclBuildRings(int, int*, int, int, int*, int*)’:
graph/rings.cc:35:21: warning: ‘ : ’ directive writing 3 bytes into a region of size between 1 and 17 [-Wformat-overflow=]
     sprintf(prefix, "Channel %02d/%02d : ", r, nrings);
                     ^~~~~~~~~~~~~~~~~~~~~~
graph/rings.cc:35:12: note: ‘sprintf’ output between 17 and 33 bytes into a destination of size 30
     sprintf(prefix, "Channel %02d/%02d : ", r, nrings);
     ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
graph/rings.cc:35:21: warning: ‘ : ’ directive writing 3 bytes into a region of size between 1 and 17 [-Wformat-overflow=]
     sprintf(prefix, "Channel %02d/%02d : ", r, nrings);
                     ^~~~~~~~~~~~~~~~~~~~~~
graph/rings.cc:35:12: note: ‘sprintf’ output between 17 and 33 bytes into a destination of size 30
     sprintf(prefix, "Channel %02d/%02d : ", r, nrings);
     ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from bootstrap.cc:12:
include/socket.h: In function ‘ncclResult_t connectAddress(int*, socketAddress*)’:
include/socket.h:41:16: warning: ‘<’ directive writing 1 byte into a region of size between 0 and 1024 [-Wformat-overflow=]
   sprintf(buf, "%s<%s>", host, service);
                ^~~~~~~~
include/socket.h:41:10: note: ‘sprintf’ output between 3 and 1058 bytes into a destination of size 1024
   sprintf(buf, "%s<%s>", host, service);
   ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from transport/net_socket.cc:9:
include/socket.h: In function ‘ncclResult_t connectAddress(int*, socketAddress*)’:
include/socket.h:41:16: warning: ‘<’ directive writing 1 byte into a region of size between 0 and 1024 [-Wformat-overflow=]
   sprintf(buf, "%s<%s>", host, service);
                ^~~~~~~~
include/socket.h:41:10: note: ‘sprintf’ output between 3 and 1058 bytes into a destination of size 1024
   sprintf(buf, "%s<%s>", host, service);
   ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/socket.h: In function ‘ncclResult_t ncclSocketInit(ncclDebugLogger_t)’:
include/socket.h:41:16: warning: ‘<’ directive writing 1 byte into a region of size between 0 and 1024 [-Wformat-overflow=]
   sprintf(buf, "%s<%s>", host, service);
                ^~~~~~~~
include/socket.h:41:10: note: ‘sprintf’ output between 3 and 1058 bytes into a destination of size 1024
   sprintf(buf, "%s<%s>", host, service);
   ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/socket.h:41:16: warning: ‘<’ directive writing 1 byte into a region of size between 0 and 1024 [-Wformat-overflow=]
   sprintf(buf, "%s<%s>", host, service);
                ^~~~~~~~
include/socket.h:41:10: note: ‘sprintf’ output between 3 and 1058 bytes into a destination of size 1024
   sprintf(buf, "%s<%s>", host, service);
   ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
transport/net_socket.cc:58:58: warning: ‘%s’ directive output may be truncated writing up to 1023 bytes into a region of size between 1017 and 1018 [-Wformat-truncation=]
           snprintf(line+strlen(line), 1023-strlen(line), " [%d]%s:%s", i, names+i*MAX_IF_NAME_SIZE,
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
               socketToString(&addrs[i].sa, addrline));
               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~     
transport/net_socket.cc:58:19: note: ‘snprintf’ output 6 or more bytes (assuming 1030) into a destination of size 1023
           snprintf(line+strlen(line), 1023-strlen(line), " [%d]%s:%s", i, names+i*MAX_IF_NAME_SIZE,
           ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
               socketToString(&addrs[i].sa, addrline));
               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/socket.h: In function ‘int findInterfaceMatchSubnet(char*, socketAddress*, socketAddress*, int, int)’:
include/socket.h:41:16: warning: ‘<’ directive writing 1 byte into a region of size between 0 and 1024 [-Wformat-overflow=]
   sprintf(buf, "%s<%s>", host, service);
                ^~~~~~~~
include/socket.h:41:10: note: ‘sprintf’ output between 3 and 1058 bytes into a destination of size 1024
   sprintf(buf, "%s<%s>", host, service);
   ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from transport/net_ib.cc:9:
include/socket.h: In function ‘int findInterfaces(const char*, char*, socketAddress*, int, int, int)’:
include/socket.h:113:14: warning: ‘char* strncpy(char*, const char*, size_t)’ specified bound 16 equals destination size [-Wstringop-truncation]
       strncpy(names+found*maxIfNameSize, interface->ifa_name, maxIfNameSize);
       ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/socket.h: In function ‘ncclResult_t bootstrapNetInit()’:
include/socket.h:41:16: warning: ‘<’ directive writing 1 byte into a region of size between 0 and 1024 [-Wformat-overflow=]
   sprintf(buf, "%s<%s>", host, service);
                ^~~~~~~~
include/socket.h:41:10: note: ‘sprintf’ output between 3 and 1058 bytes into a destination of size 1024
   sprintf(buf, "%s<%s>", host, service);
   ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
bootstrap.cc:39:58: warning: ‘%s’ directive output may be truncated writing up to 1023 bytes into a region of size between 1017 and 1018 [-Wformat-truncation=]
           snprintf(line+strlen(line), 1023-strlen(line), " [%d]%s:%s", i, bootstrapNetIfNames+i*MAX_IF_NAME_SIZE,
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
               socketToString(&bootstrapNetIfAddrs[i].sa, addrline));
               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
bootstrap.cc:39:19: note: ‘snprintf’ output 6 or more bytes (assuming 1030) into a destination of size 1023
           snprintf(line+strlen(line), 1023-strlen(line), " [%d]%s:%s", i, bootstrapNetIfNames+i*MAX_IF_NAME_SIZE,
           ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
               socketToString(&bootstrapNetIfAddrs[i].sa, addrline));
               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/socket.h: In function ‘ncclResult_t ncclIbInit(ncclDebugLogger_t)’:
include/socket.h:41:16: warning: ‘<’ directive writing 1 byte into a region of size between 0 and 1024 [-Wformat-overflow=]
   sprintf(buf, "%s<%s>", host, service);
                ^~~~~~~~
include/socket.h:41:10: note: ‘sprintf’ output between 3 and 1058 bytes into a destination of size 1024
   sprintf(buf, "%s<%s>", host, service);
   ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/socket.h:41:16: warning: ‘<’ directive writing 1 byte into a region of size between 0 and 1024 [-Wformat-overflow=]
   sprintf(buf, "%s<%s>", host, service);
                ^~~~~~~~
include/socket.h:41:10: note: ‘sprintf’ output between 3 and 1058 bytes into a destination of size 1024
   sprintf(buf, "%s<%s>", host, service);
   ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function ‘int findInterfaceMatchSubnet(char*, socketAddress*, socketAddress*, int, int)’,
    inlined from ‘int findInterfaces(char*, socketAddress*, int, int)’ at include/socket.h:311:40,
    inlined from ‘ncclResult_t ncclIbInit(ncclDebugLogger_t)’ at transport/net_ib.cc:124:25:
include/socket.h:194:12: warning: ‘char* strncpy(char*, const char*, size_t)’ specified bound 16 equals destination size [-Wstringop-truncation]
     strncpy(ifNames+found*ifNameMaxSize, interface->ifa_name, ifNameMaxSize);
     ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Compiling  functions.cu                        > /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/functions.o
Compiling  reduce.cu                           > /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_sum_i8.o
Compiling  reduce.cu                           > /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_sum_u32.o
Compiling  reduce.cu                           > /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_sum_i32.o
Compiling  reduce.cu                           > /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_sum_u8.o
Compiling  reduce.cu                           > /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_sum_i64.o
Compiling  reduce.cu                           > /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_sum_u64.o
Compiling  reduce.cu                           > /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_sum_f16.o
Compiling  reduce.cu                           > /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_sum_f32.o
Compiling  reduce.cu                           > /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_sum_f64.o
Compiling  reduce.cu                           > /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_prod_i8.o
Compiling  reduce.cu                           > /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_prod_u8.o
Compiling  reduce.cu                           > /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_prod_i32.o
Compiling  reduce.cu                           > /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_prod_u32.o
Compiling  reduce.cu                           > /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_prod_i64.o
Compiling  reduce.cu                           > /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_prod_u64.o
Compiling  reduce.cu                           > /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_prod_f16.o
Compiling  reduce.cu                           > /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_prod_f32.o
Compiling  reduce.cu                           > /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_prod_f64.o
Compiling  reduce.cu                           > /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_min_i8.o
Compiling  reduce.cu                           > /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_min_u8.o
Compiling  reduce.cu                           > /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_min_i32.o
Compiling  reduce.cu                           > /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_min_u32.o
Compiling  reduce.cu                           > /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_min_i64.o
Compiling  reduce.cu                           > /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_min_u64.o
Compiling  reduce.cu                           > /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_min_f16.o
Compiling  reduce.cu                           > /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_min_f32.o
Compiling  reduce.cu                           > /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_min_f64.o
Compiling  reduce.cu                           > /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_max_i8.o
Compiling  reduce.cu                           > /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_max_u8.o
Compiling  reduce.cu                           > /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_max_i32.o
Compiling  reduce.cu                           > /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_max_u32.o
Compiling  reduce.cu                           > /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_max_i64.o
Compiling  reduce.cu                           > /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_max_u64.o
Compiling  reduce.cu                           > /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_max_f64.o
Compiling  reduce.cu                           > /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_max_f16.o
Compiling  reduce.cu                           > /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_max_f32.o
Compiling  reduce_scatter.cu                   > /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_scatter_sum_i8.o
Compiling  reduce_scatter.cu                   > /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_scatter_sum_u8.o
Compiling  reduce_scatter.cu                   > /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_scatter_sum_i32.o
Compiling  reduce_scatter.cu                   > /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_scatter_sum_u32.o
Compiling  reduce_scatter.cu                   > /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_scatter_sum_i64.o
Compiling  reduce_scatter.cu                   > /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_scatter_sum_u64.o
Compiling  reduce_scatter.cu                   > /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_scatter_sum_f16.o
/usr/include/bits/floatn.h(79): error: identifier "__ieee128" is undefined

/usr/include/bits/floatn.h(82): error: invalid argument to attribute "__mode__"

Compiling  reduce_scatter.cu                   > /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_scatter_sum_f32.o
Compiling  reduce_scatter.cu                   > /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_scatter_sum_f64.o
/usr/include/bits/floatn.h(79): error: identifier "__ieee128" is undefined

/usr/include/bits/floatn.h(82): error: invalid argument to attribute "__mode__"

Compiling  reduce_scatter.cu                   > /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_scatter_prod_i8.o
Compiling  reduce_scatter.cu                   > /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_scatter_prod_u8.o
Compiling  reduce_scatter.cu                   > /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_scatter_prod_i32.o
Compiling  reduce_scatter.cu                   > /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_scatter_prod_u32.o
/usr/include/bits/floatn.h(79): error: identifier "__ieee128" is undefined

/usr/include/bits/floatn.h(82): error: invalid argument to attribute "__mode__"

Compiling  reduce_scatter.cu                   > /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_scatter_prod_i64.o
Compiling  reduce_scatter.cu                   > /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_scatter_prod_u64.o
Compiling  reduce_scatter.cu                   > /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_scatter_prod_f16.o
Compiling  reduce_scatter.cu                   > /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_scatter_prod_f32.o
/usr/include/bits/floatn.h(79): error: identifier "__ieee128" is undefined

/usr/include/bits/floatn.h(82): error: invalid argument to attribute "__mode__"

/usr/include/bits/floatn.h(79): error: identifier "__ieee128" is undefined

/usr/include/bits/floatn.h(82): error: invalid argument to attribute "__mode__"

/usr/include/bits/floatn.h(79): error: identifier "__ieee128" is undefined

/usr/include/bits/floatn.h(82): error: invalid argument to attribute "__mode__"

/usr/include/bits/floatn.h(79): error: identifier "__ieee128" is undefined

/usr/include/bits/floatn.h(82): error: invalid argument to attribute "__mode__"

Compiling  reduce_scatter.cu                   > /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_scatter_prod_f64.o
/usr/include/bits/floatn.h(79): error: identifier "__ieee128" is undefined

/usr/include/bits/floatn.h(82): error: invalid argument to attribute "__mode__"

Compiling  reduce_scatter.cu                   > /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_scatter_min_i8.o
Compiling  reduce_scatter.cu                   > /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_scatter_min_u8.o
/usr/include/bits/floatn.h(79): error: identifier "__ieee128" is undefined

/usr/include/bits/floatn.h(82): error: invalid argument to attribute "__mode__"

/usr/include/bits/floatn.h(79): error: identifier "__ieee128" is undefined

/usr/include/bits/floatn.h(82): error: invalid argument to attribute "__mode__"

/usr/include/bits/floatn.h(79): error: identifier "__ieee128" is undefined

/usr/include/bits/floatn.h(82): error: invalid argument to attribute "__mode__"

/usr/include/bits/floatn.h(79): error: identifier "__ieee128" is undefined

/usr/include/bits/floatn.h(82): error: invalid argument to attribute "__mode__"

Compiling  reduce_scatter.cu                   > /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_scatter_min_i32.o
/usr/include/bits/floatn.h(79): error: identifier "__ieee128" is undefined

/usr/include/bits/floatn.h(82): error: invalid argument to attribute "__mode__"

/usr/include/bits/floatn.h(79): error: identifier "__ieee128" is undefined

/usr/include/bits/floatn.h(82): error: invalid argument to attribute "__mode__"

/usr/include/bits/floatn.h(79): error: identifier "__ieee128" is undefined

/usr/include/bits/floatn.h(82): error: invalid argument to attribute "__mode__"

/usr/include/bits/floatn.h(79): error: identifier "__ieee128" is undefined

/usr/include/bits/floatn.h(82): error: invalid argument to attribute "__mode__"

/usr/include/bits/floatn.h(79): error: identifier "__ieee128" is undefined

/usr/include/bits/floatn.h(82): error: invalid argument to attribute "__mode__"

/usr/include/bits/floatn.h(79): error: identifier "__ieee128" is undefined

/usr/include/bits/floatn.h(82): error: invalid argument to attribute "__mode__"

include/socket.h: In function ‘ncclResult_t ncclIbConnect(int, void*, void**)’:
include/socket.h:41:16: warning: ‘<’ directive writing 1 byte into a region of size between 0 and 1024 [-Wformat-overflow=]
   sprintf(buf, "%s<%s>", host, service);
                ^~~~~~~~
include/socket.h:41:10: note: ‘sprintf’ output between 3 and 1058 bytes into a destination of size 1024
   sprintf(buf, "%s<%s>", host, service);
   ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/bits/floatn.h(79): error: identifier "__ieee128" is undefined

/usr/include/bits/floatn.h(82): error: invalid argument to attribute "__mode__"

/usr/include/bits/floatn.h(79): error: identifier "__ieee128" is undefined

/usr/include/bits/floatn.h(82): error: invalid argument to attribute "__mode__"

/usr/include/bits/floatn.h(79): error: identifier "__ieee128" is undefined

/usr/include/bits/floatn.h(82): error: invalid argument to attribute "__mode__"

/usr/include/bits/floatn.h(79): error: identifier "__ieee128" is undefined

/usr/include/bits/floatn.h(82): error: invalid argument to attribute "__mode__"

/usr/include/bits/floatn.h(79): error: identifier "__ieee128" is undefined

/usr/include/bits/floatn.h(82): error: invalid argument to attribute "__mode__"

/usr/include/bits/floatn.h(79): error: identifier "__ieee128" is undefined

/usr/include/bits/floatn.h(82): error: invalid argument to attribute "__mode__"

Compiling  reduce_scatter.cu                   > /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_scatter_min_u32.o
/usr/include/bits/floatn.h(79): error: identifier "__ieee128" is undefined

/usr/include/bits/floatn.h(82): error: invalid argument to attribute "__mode__"

/usr/include/bits/floatn.h(79): error: identifier "__ieee128" is undefined

/usr/include/bits/floatn.h(82): error: invalid argument to attribute "__mode__"

/usr/include/bits/floatn.h(79): error: identifier "__ieee128" is undefined

/usr/include/bits/floatn.h(82): error: invalid argument to attribute "__mode__"

/usr/include/bits/floatn.h(79): error: identifier "__ieee128" is undefined

/usr/include/bits/floatn.h(82): error: invalid argument to attribute "__mode__"

Compiling  reduce_scatter.cu                   > /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_scatter_min_i64.o
/usr/include/bits/floatn.h(79): error: identifier "__ieee128" is undefined

/usr/include/bits/floatn.h(82): error: invalid argument to attribute "__mode__"

/usr/include/bits/floatn.h(79): error: identifier "__ieee128" is undefined

/usr/include/bits/floatn.h(82): error: invalid argument to attribute "__mode__"

/usr/include/bits/floatn.h(79): error: identifier "__ieee128" is undefined

/usr/include/bits/floatn.h(82): error: invalid argument to attribute "__mode__"

/usr/include/bits/floatn.h(79): error: identifier "__ieee128" is undefined

/usr/include/bits/floatn.h(82): error: invalid argument to attribute "__mode__"

/usr/include/bits/floatn.h(79): error: identifier "__ieee128" is undefined

/usr/include/bits/floatn.h(82): error: invalid argument to attribute "__mode__"

/usr/include/bits/floatn.h(79): error: identifier "__ieee128" is undefined

/usr/include/bits/floatn.h(82): error: invalid argument to attribute "__mode__"

Compiling  reduce_scatter.cu                   > /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_scatter_min_u64.o
/usr/include/bits/floatn.h(79): error: identifier "__ieee128" is undefined

/usr/include/bits/floatn.h(82): error: invalid argument to attribute "__mode__"

Compiling  reduce_scatter.cu                   > /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_scatter_min_f16.o
/usr/include/bits/floatn.h(79): error: identifier "__ieee128" is undefined

/usr/include/bits/floatn.h(82): error: invalid argument to attribute "__mode__"

Compiling  reduce_scatter.cu                   > /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_scatter_min_f32.o
/usr/include/bits/floatn.h(79): error: identifier "__ieee128" is undefined

/usr/include/bits/floatn.h(82): error: invalid argument to attribute "__mode__"

Compiling  reduce_scatter.cu                   > /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_scatter_min_f64.o
Compiling  reduce_scatter.cu                   > /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_scatter_max_i8.o
Compiling  reduce_scatter.cu                   > /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_scatter_max_u8.o
Compiling  reduce_scatter.cu                   > /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_scatter_max_i32.o
Compiling  reduce_scatter.cu                   > /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_scatter_max_u32.o
2 errors detected in the compilation of "/tmp/tmpxft_0012c1eb_00000000-6_functions.cpp1.ii".
make[2]: *** [Makefile:64: /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/functions.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/usr/include/bits/floatn.h(79): error: identifier "__ieee128" is undefined

/usr/include/bits/floatn.h(82): error: invalid argument to attribute "__mode__"

/usr/include/bits/floatn.h(79): error: identifier "__ieee128" is undefined

/usr/include/bits/floatn.h(82): error: invalid argument to attribute "__mode__"

/usr/include/bits/floatn.h(79): error: identifier "__ieee128" is undefined

/usr/include/bits/floatn.h(82): error: invalid argument to attribute "__mode__"

/usr/include/bits/floatn.h(79): error: identifier "__ieee128" is undefined

/usr/include/bits/floatn.h(82): error: invalid argument to attribute "__mode__"

2 errors detected in the compilation of "/tmp/tmpxft_0012c2a3_00000000-6_reduce.cpp1.ii".
2 errors detected in the compilation of "/tmp/tmpxft_0012c223_00000000-6_reduce.cpp1.ii".
/usr/include/bits/floatn.h(79): error: identifier "__ieee128" is undefined

/usr/include/bits/floatn.h(82): error: invalid argument to attribute "__mode__"

make[2]: *** [/home/rkube/repos/pytorch/build/nccl/obj/collectives/device/Makefile.rules:834: /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_min_i64.o] Error 1
/usr/include/bits/floatn.h(79): error: identifier "__ieee128" is undefined

/usr/include/bits/floatn.h(82): error: invalid argument to attribute "__mode__"

/usr/include/bits/floatn.h(79): error: identifier "__ieee128" is undefined

/usr/include/bits/floatn.h(82): error: invalid argument to attribute "__mode__"

/usr/include/bits/floatn.h(79): error: identifier "__ieee128" is undefined

/usr/include/bits/floatn.h(82): error: invalid argument to attribute "__mode__"

2 errors detected in the compilation of "/tmp/tmpxft_0012c250_00000000-6_reduce.cpp1.ii".
make[2]: *** [/home/rkube/repos/pytorch/build/nccl/obj/collectives/device/Makefile.rules:734: /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_sum_i32.o] Error 1
/usr/include/bits/floatn.h(79): error: identifier "__ieee128" is undefined

/usr/include/bits/floatn.h(82): error: invalid argument to attribute "__mode__"

2 errors detected in the compilation of "/tmp/tmpxft_0012c232_00000000-6_reduce.cpp1.ii".
2 errors detected in the compilation of "/tmp/tmpxft_0012c288_00000000-6_reduce.cpp1.ii".
/usr/include/bits/floatn.h(79): error: identifier "__ieee128" is undefined

make[2]: *** [/home/rkube/repos/pytorch/build/nccl/obj/collectives/device/Makefile.rules:804: /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_prod_f32.o] Error 1
/usr/include/bits/floatn.h(82): error: invalid argument to attribute "__mode__"

make[2]: *** [/home/rkube/repos/pytorch/build/nccl/obj/collectives/device/Makefile.rules:784: /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_prod_u32.o] Error 1
/usr/include/bits/floatn.h(79): error: identifier "__ieee128" is undefined

/usr/include/bits/floatn.h(82): error: invalid argument to attribute "__mode__"

/usr/include/bits/floatn.h(79): error: identifier "__ieee128" is undefined

/usr/include/bits/floatn.h(82): error: invalid argument to attribute "__mode__"

/usr/include/bits/floatn.h(79): error: identifier "__ieee128" is undefined

/usr/include/bits/floatn.h(82): error: invalid argument to attribute "__mode__"

make[2]: *** [/home/rkube/repos/pytorch/build/nccl/obj/collectives/device/Makefile.rules:814: /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_min_i8.o] Error 1
2 errors detected in the compilation of "/tmp/tmpxft_0012c225_00000000-6_reduce.cpp1.ii".
2 errors detected in the compilation of "/tmp/tmpxft_0012c227_00000000-6_reduce.cpp1.ii".
make[2]: *** [/home/rkube/repos/pytorch/build/nccl/obj/collectives/device/Makefile.rules:744: /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_sum_i64.o] Error 1
make[2]: *** [/home/rkube/repos/pytorch/build/nccl/obj/collectives/device/Makefile.rules:729: /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_sum_u8.o] Error 1
/usr/include/bits/floatn.h(79): error: identifier "__ieee128" is undefined

/usr/include/bits/floatn.h(82): error: invalid argument to attribute "__mode__"

2 errors detected in the compilation of "/tmp/tmpxft_0012c22f_00000000-6_reduce.cpp1.ii".
make[2]: *** [/home/rkube/repos/pytorch/build/nccl/obj/collectives/device/Makefile.rules:764: /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_sum_f64.o] Error 1
2 errors detected in the compilation of "/tmp/tmpxft_0012c221_00000000-6_reduce.cpp1.ii".
make[2]: *** [/home/rkube/repos/pytorch/build/nccl/obj/collectives/device/Makefile.rules:724: /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_sum_i8.o] Error 1
2 errors detected in the compilation of "/tmp/tmpxft_0012c28a_00000000-6_reduce.cpp1.ii".
2 errors detected in the compilation of "/tmp/tmpxft_0012c231_00000000-6_reduce.cpp1.ii".
2 errors detected in the compilation of "/tmp/tmpxft_0012c235_00000000-6_reduce.cpp1.ii".
make[2]: *** [/home/rkube/repos/pytorch/build/nccl/obj/collectives/device/Makefile.rules:819: /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_min_u8.o] Error 1
make[2]: *** [/home/rkube/repos/pytorch/build/nccl/obj/collectives/device/Makefile.rules:774: /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_prod_u8.o] Error 1
make[2]: *** [/home/rkube/repos/pytorch/build/nccl/obj/collectives/device/Makefile.rules:794: /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_prod_u64.o] Error 1
/usr/include/bits/floatn.h(79): error: identifier "__ieee128" is undefined

/usr/include/bits/floatn.h(82): error: invalid argument to attribute "__mode__"

2 errors detected in the compilation of "/tmp/tmpxft_0012c239_00000000-6_reduce.cpp1.ii".
make[2]: *** [/home/rkube/repos/pytorch/build/nccl/obj/collectives/device/Makefile.rules:799: /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_prod_f16.o] Error 1
2 errors detected in the compilation of "/tmp/tmpxft_0012c233_00000000-6_reduce.cpp1.ii".
2 errors detected in the compilation of "/tmp/tmpxft_0012c224_00000000-6_reduce.cpp1.ii".
make[2]: *** [/home/rkube/repos/pytorch/build/nccl/obj/collectives/device/Makefile.rules:739: /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_sum_u32.o] Error 1
make[2]: *** [/home/rkube/repos/pytorch/build/nccl/obj/collectives/device/Makefile.rules:789: /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_prod_i64.o] Error 1
2 errors detected in the compilation of "/tmp/tmpxft_0012c22e_00000000-6_reduce.cpp1.ii".
make[2]: *** [/home/rkube/repos/pytorch/build/nccl/obj/collectives/device/Makefile.rules:769: /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_prod_i8.o] Error 1
2 errors detected in the compilation of "/tmp/tmpxft_0012c22c_00000000-6_reduce.cpp1.ii".
make[2]: *** [/home/rkube/repos/pytorch/build/nccl/obj/collectives/device/Makefile.rules:754: /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_sum_f16.o] Error 1
2 errors detected in the compilation of "/tmp/tmpxft_0012c29e_00000000-6_reduce.cpp1.ii".
make[2]: *** [/home/rkube/repos/pytorch/build/nccl/obj/collectives/device/Makefile.rules:829: /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_min_u32.o] Error 1
2 errors detected in the compilation of "/tmp/tmpxft_0012c22d_00000000-6_reduce.cpp1.ii".
make[2]: *** [/home/rkube/repos/pytorch/build/nccl/obj/collectives/device/Makefile.rules:759: /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_sum_f32.o] Error 1
2 errors detected in the compilation of "/tmp/tmpxft_0012c22b_00000000-6_reduce.cpp1.ii".
make[2]: *** [/home/rkube/repos/pytorch/build/nccl/obj/collectives/device/Makefile.rules:749: /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_sum_u64.o] Error 1
2 errors detected in the compilation of "/tmp/tmpxft_0012c297_00000000-6_reduce.cpp1.ii".
make[2]: *** [/home/rkube/repos/pytorch/build/nccl/obj/collectives/device/Makefile.rules:824: /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_min_i32.o] Error 1
2 errors detected in the compilation of "/tmp/tmpxft_0012c2af_00000000-6_reduce.cpp1.ii".
make[2]: *** [/home/rkube/repos/pytorch/build/nccl/obj/collectives/device/Makefile.rules:839: /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_min_u64.o] Error 1
2 errors detected in the compilation of "/tmp/tmpxft_0012c2e8_00000000-6_reduce.cpp1.ii".
make[2]: *** [/home/rkube/repos/pytorch/build/nccl/obj/collectives/device/Makefile.rules:859: /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_max_i8.o] Error 1
2 errors detected in the compilation of "/tmp/tmpxft_0012c2ea_00000000-6_reduce.cpp1.ii".
2 errors detected in the compilation of "/tmp/tmpxft_0012c2bd_00000000-6_reduce.cpp1.ii".
2 errors detected in the compilation of "/tmp/tmpxft_0012c32c_00000000-6_reduce.cpp1.ii".
2 errors detected in the compilation of "/tmp/tmpxft_0012c30b_00000000-6_reduce.cpp1.ii".
make[2]: *** [/home/rkube/repos/pytorch/build/nccl/obj/collectives/device/Makefile.rules:844: /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_min_f16.o] Error 1
make[2]: *** [/home/rkube/repos/pytorch/build/nccl/obj/collectives/device/Makefile.rules:899: /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_max_f64.o] Error 1
make[2]: *** [/home/rkube/repos/pytorch/build/nccl/obj/collectives/device/Makefile.rules:874: /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_max_u32.o] Error 1
make[2]: *** [/home/rkube/repos/pytorch/build/nccl/obj/collectives/device/Makefile.rules:864: /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_max_u8.o] Error 1
2 errors detected in the compilation of "/tmp/tmpxft_0012c287_00000000-6_reduce.cpp1.ii".
make[2]: *** [/home/rkube/repos/pytorch/build/nccl/obj/collectives/device/Makefile.rules:809: /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_prod_f64.o] Error 1
/usr/include/bits/floatn.h(79): error: identifier "__ieee128" is undefined

/usr/include/bits/floatn.h(82): error: invalid argument to attribute "__mode__"

/usr/include/bits/floatn.h(79): error: identifier "__ieee128" is undefined

/usr/include/bits/floatn.h(82): error: invalid argument to attribute "__mode__"

2 errors detected in the compilation of "/tmp/tmpxft_0012c2ec_00000000-6_reduce.cpp1.ii".
make[2]: *** [/home/rkube/repos/pytorch/build/nccl/obj/collectives/device/Makefile.rules:869: /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_max_i32.o] Error 1
/usr/include/bits/floatn.h(79): error: identifier "__ieee128" is undefined

/usr/include/bits/floatn.h(82): error: invalid argument to attribute "__mode__"

2 errors detected in the compilation of "/tmp/tmpxft_0012c329_00000000-6_reduce.cpp1.ii".
make[2]: *** [/home/rkube/repos/pytorch/build/nccl/obj/collectives/device/Makefile.rules:894: /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_max_f32.o] Error 1
2 errors detected in the compilation of "/tmp/tmpxft_0012c230_00000000-6_reduce.cpp1.ii".
make[2]: *** [/home/rkube/repos/pytorch/build/nccl/obj/collectives/device/Makefile.rules:779: /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_prod_i32.o] Error 1
/usr/include/bits/floatn.h(79): error: identifier "__ieee128" is undefined

/usr/include/bits/floatn.h(82): error: invalid argument to attribute "__mode__"

2 errors detected in the compilation of "/tmp/tmpxft_0012c326_00000000-6_reduce.cpp1.ii".
make[2]: *** [/home/rkube/repos/pytorch/build/nccl/obj/collectives/device/Makefile.rules:889: /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_max_f16.o] Error 1
/usr/include/bits/floatn.h(79): error: identifier "__ieee128" is undefined

/usr/include/bits/floatn.h(82): error: invalid argument to attribute "__mode__"

2 errors detected in the compilation of "/tmp/tmpxft_0012c319_00000000-6_reduce.cpp1.ii".
/usr/include/bits/floatn.h(79): error: identifier "__ieee128" is undefined

/usr/include/bits/floatn.h(82): error: invalid argument to attribute "__mode__"

make[2]: *** [/home/rkube/repos/pytorch/build/nccl/obj/collectives/device/Makefile.rules:884: /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_max_u64.o] Error 1
/usr/include/bits/floatn.h(79): error: identifier "__ieee128" is undefined

/usr/include/bits/floatn.h(82): error: invalid argument to attribute "__mode__"

/usr/include/bits/floatn.h(79): error: identifier "__ieee128" is undefined

/usr/include/bits/floatn.h(82): error: invalid argument to attribute "__mode__"

2 errors detected in the compilation of "/tmp/tmpxft_0012c2d3_00000000-6_reduce.cpp1.ii".
make[2]: *** [/home/rkube/repos/pytorch/build/nccl/obj/collectives/device/Makefile.rules:849: /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_min_f32.o] Error 1
/usr/include/bits/floatn.h(79): error: identifier "__ieee128" is undefined

/usr/include/bits/floatn.h(82): error: invalid argument to attribute "__mode__"

/usr/include/bits/floatn.h(79): error: identifier "__ieee128" is undefined

/usr/include/bits/floatn.h(82): error: invalid argument to attribute "__mode__"

In file included from graph/xml.cc:14:
In function ‘ncclResult_t xmlSetAttr(ncclXmlNode*, const char*, const char*)’,
    inlined from ‘ncclResult_t ncclTopoGetXmlFromSys(ncclXmlNode*, ncclXml*)’ at graph/xml.cc:530:17:
graph/xml.h:131:10: warning: ‘char* strncpy(char*, const char*, size_t)’ specified bound 256 equals destination size [-Wstringop-truncation]
   strncpy(node->attrs[index].value, value, MAX_STR_LEN);
   ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 errors detected in the compilation of "/tmp/tmpxft_0012c313_00000000-6_reduce.cpp1.ii".
make[2]: *** [/home/rkube/repos/pytorch/build/nccl/obj/collectives/device/Makefile.rules:879: /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_max_i64.o] Error 1
/usr/include/bits/floatn.h(79): error: identifier "__ieee128" is undefined

/usr/include/bits/floatn.h(82): error: invalid argument to attribute "__mode__"

/usr/include/bits/floatn.h(79): error: identifier "__ieee128" is undefined

/usr/include/bits/floatn.h(82): error: invalid argument to attribute "__mode__"

2 errors detected in the compilation of "/tmp/tmpxft_0012c3bb_00000000-6_reduce_scatter.cpp1.ii".
2 errors detected in the compilation of "/tmp/tmpxft_0012c2df_00000000-6_reduce.cpp1.ii".
make[2]: *** [/home/rkube/repos/pytorch/build/nccl/obj/collectives/device/Makefile.rules:919: /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_scatter_sum_u32.o] Error 1
make[2]: *** [/home/rkube/repos/pytorch/build/nccl/obj/collectives/device/Makefile.rules:854: /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_min_f64.o] Error 1
/usr/include/bits/floatn.h(79): error: identifier "__ieee128" is undefined

/usr/include/bits/floatn.h(82): error: invalid argument to attribute "__mode__"

/usr/include/bits/floatn.h(79): error: identifier "__ieee128" is undefined

/usr/include/bits/floatn.h(82): error: invalid argument to attribute "__mode__"

2 errors detected in the compilation of "/tmp/tmpxft_0012c40f_00000000-6_reduce_scatter.cpp1.ii".
2 errors detected in the compilation of "/tmp/tmpxft_0012c392_00000000-6_reduce_scatter.cpp1.ii".
make[2]: *** [/home/rkube/repos/pytorch/build/nccl/obj/collectives/device/Makefile.rules:909: /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_scatter_sum_u8.o] Error 1
make[2]: *** [/home/rkube/repos/pytorch/build/nccl/obj/collectives/device/Makefile.rules:964: /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_scatter_prod_u32.o] Error 1
2 errors detected in the compilation of "/tmp/tmpxft_0012c401_00000000-6_reduce_scatter.cpp1.ii".
2 errors detected in the compilation of "/tmp/tmpxft_0012c378_00000000-6_reduce_scatter.cpp1.ii".
make[2]: *** [/home/rkube/repos/pytorch/build/nccl/obj/collectives/device/Makefile.rules:904: /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_scatter_sum_i8.o] Error 1
make[2]: *** [/home/rkube/repos/pytorch/build/nccl/obj/collectives/device/Makefile.rules:944: /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_scatter_sum_f64.o] Error 1
/usr/include/bits/floatn.h(79): error: identifier "__ieee128" is undefined

/usr/include/bits/floatn.h(82): error: invalid argument to attribute "__mode__"

2 errors detected in the compilation of "/tmp/tmpxft_0012c3ba_00000000-6_reduce_scatter.cpp1.ii".
make[2]: *** [/home/rkube/repos/pytorch/build/nccl/obj/collectives/device/Makefile.rules:914: /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_scatter_sum_i32.o] Error 1
2 errors detected in the compilation of "/tmp/tmpxft_0012c3c6_00000000-6_reduce_scatter.cpp1.ii".
make[2]: *** [/home/rkube/repos/pytorch/build/nccl/obj/collectives/device/Makefile.rules:924: /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_scatter_sum_i64.o] Error 1
/usr/include/bits/floatn.h(79): error: identifier "__ieee128" is undefined

/usr/include/bits/floatn.h(82): error: invalid argument to attribute "__mode__"

2 errors detected in the compilation of "/tmp/tmpxft_0012c4c2_00000000-6_reduce_scatter.cpp1.ii".
make[2]: *** [/home/rkube/repos/pytorch/build/nccl/obj/collectives/device/Makefile.rules:1024: /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_scatter_min_f16.o] Error 1
2 errors detected in the compilation of "/tmp/tmpxft_0012c46f_00000000-6_reduce_scatter.cpp1.ii".
make[2]: *** [/home/rkube/repos/pytorch/build/nccl/obj/collectives/device/Makefile.rules:999: /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_scatter_min_u8.o] Error 1
2 errors detected in the compilation of "/tmp/tmpxft_0012c4ea_00000000-6_reduce_scatter.cpp1.ii".
make[2]: *** [/home/rkube/repos/pytorch/build/nccl/obj/collectives/device/Makefile.rules:1049: /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_scatter_max_i32.o] Error 1
2 errors detected in the compilation of "/tmp/tmpxft_0012c488_00000000-6_reduce_scatter.cpp1.ii".
make[2]: *** [/home/rkube/repos/pytorch/build/nccl/obj/collectives/device/Makefile.rules:1004: /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_scatter_min_i32.o] Error 1
2 errors detected in the compilation of "/tmp/tmpxft_0012c3dd_00000000-6_reduce_scatter.cpp1.ii".
make[2]: *** [/home/rkube/repos/pytorch/build/nccl/obj/collectives/device/Makefile.rules:929: /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_scatter_sum_u64.o] Error 1
2 errors detected in the compilation of "/tmp/tmpxft_0012c40e_00000000-6_reduce_scatter.cpp1.ii".
make[2]: *** [/home/rkube/repos/pytorch/build/nccl/obj/collectives/device/Makefile.rules:959: /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_scatter_prod_i32.o] Error 1
2 errors detected in the compilation of "/tmp/tmpxft_0012c408_00000000-6_reduce_scatter.cpp1.ii".
make[2]: *** [/home/rkube/repos/pytorch/build/nccl/obj/collectives/device/Makefile.rules:954: /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_scatter_prod_u8.o] Error 1
2 errors detected in the compilation of "/tmp/tmpxft_0012c3e5_00000000-6_reduce_scatter.cpp1.ii".
make[2]: *** [/home/rkube/repos/pytorch/build/nccl/obj/collectives/device/Makefile.rules:934: /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_scatter_sum_f16.o] Error 1
2 errors detected in the compilation of "/tmp/tmpxft_0012c3fd_00000000-6_reduce_scatter.cpp1.ii".
2 errors detected in the compilation of "/tmp/tmpxft_0012c432_00000000-6_reduce_scatter.cpp1.ii".
make[2]: *** [/home/rkube/repos/pytorch/build/nccl/obj/collectives/device/Makefile.rules:949: /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_scatter_prod_i8.o] Error 1
2 errors detected in the compilation of "/tmp/tmpxft_0012c44d_00000000-6_reduce_scatter.cpp1.ii".
make[2]: *** [/home/rkube/repos/pytorch/build/nccl/obj/collectives/device/Makefile.rules:969: /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_scatter_prod_i64.o] Error 1
make[2]: *** [/home/rkube/repos/pytorch/build/nccl/obj/collectives/device/Makefile.rules:984: /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_scatter_prod_f32.o] Error 1
2 errors detected in the compilation of "/tmp/tmpxft_0012c4d5_00000000-6_reduce_scatter.cpp1.ii".
make[2]: *** [/home/rkube/repos/pytorch/build/nccl/obj/collectives/device/Makefile.rules:1039: /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_scatter_max_i8.o] Error 1
2 errors detected in the compilation of "/tmp/tmpxft_0012c434_00000000-6_reduce_scatter.cpp1.ii".
make[2]: *** [/home/rkube/repos/pytorch/build/nccl/obj/collectives/device/Makefile.rules:974: /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_scatter_prod_u64.o] Error 1
2 errors detected in the compilation of "/tmp/tmpxft_0012c3fc_00000000-6_reduce_scatter.cpp1.ii".
make[2]: *** [/home/rkube/repos/pytorch/build/nccl/obj/collectives/device/Makefile.rules:939: /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_scatter_sum_f32.o] Error 1
In file included from include/core.h:57,
                 from include/transport.h:13,
                 from include/comm.h:10,
                 from include/channel.h:9,
                 from init.cc:8:
include/param.h: In function ‘void setEnvFile(const char*)’:
include/param.h:37:12: warning: ‘char* strncpy(char*, const char*, size_t)’ specified bound 1024 equals destination size [-Wstringop-truncation]
     strncpy(envValue, line+s, 1024);
     ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
2 errors detected in the compilation of "/tmp/tmpxft_0012c4d0_00000000-6_reduce_scatter.cpp1.ii".
make[2]: *** [/home/rkube/repos/pytorch/build/nccl/obj/collectives/device/Makefile.rules:1034: /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_scatter_min_f64.o] Error 1
2 errors detected in the compilation of "/tmp/tmpxft_0012c4c3_00000000-6_reduce_scatter.cpp1.ii".
make[2]: *** [/home/rkube/repos/pytorch/build/nccl/obj/collectives/device/Makefile.rules:1029: /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_scatter_min_f32.o] Error 1
2 errors detected in the compilation of "/tmp/tmpxft_0012c457_00000000-6_reduce_scatter.cpp1.ii".
2 errors detected in the compilation of "/tmp/tmpxft_0012c4a8_00000000-6_reduce_scatter.cpp1.ii".
make[2]: *** [/home/rkube/repos/pytorch/build/nccl/obj/collectives/device/Makefile.rules:989: /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_scatter_prod_f64.o] Error 1
make[2]: *** [/home/rkube/repos/pytorch/build/nccl/obj/collectives/device/Makefile.rules:1014: /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_scatter_min_i64.o] Error 1
2 errors detected in the compilation of "/tmp/tmpxft_0012c438_00000000-6_reduce_scatter.cpp1.ii".
make[2]: *** [/home/rkube/repos/pytorch/build/nccl/obj/collectives/device/Makefile.rules:979: /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_scatter_prod_f16.o] Error 1
2 errors detected in the compilation of "/tmp/tmpxft_0012c4a2_00000000-6_reduce_scatter.cpp1.ii".
make[2]: *** [/home/rkube/repos/pytorch/build/nccl/obj/collectives/device/Makefile.rules:1009: /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_scatter_min_u32.o] Error 1
2 errors detected in the compilation of "/tmp/tmpxft_0012c501_00000000-6_reduce_scatter.cpp1.ii".
make[2]: *** [/home/rkube/repos/pytorch/build/nccl/obj/collectives/device/Makefile.rules:1054: /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_scatter_max_u32.o] Error 1
2 errors detected in the compilation of "/tmp/tmpxft_0012c45c_00000000-6_reduce_scatter.cpp1.ii".
make[2]: *** [/home/rkube/repos/pytorch/build/nccl/obj/collectives/device/Makefile.rules:994: /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_scatter_min_i8.o] Error 1
2 errors detected in the compilation of "/tmp/tmpxft_0012c4b5_00000000-6_reduce_scatter.cpp1.ii".
make[2]: *** [/home/rkube/repos/pytorch/build/nccl/obj/collectives/device/Makefile.rules:1019: /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_scatter_min_u64.o] Error 1
2 errors detected in the compilation of "/tmp/tmpxft_0012c4e0_00000000-6_reduce_scatter.cpp1.ii".
make[2]: *** [/home/rkube/repos/pytorch/build/nccl/obj/collectives/device/Makefile.rules:1044: /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/reduce_scatter_max_u8.o] Error 1
make[2]: Leaving directory '/home/rkube/repos/pytorch/third_party/nccl/nccl/src/collectives/device'
make[1]: *** [Makefile:50: /home/rkube/repos/pytorch/build/nccl/obj/collectives/device/colldevice.a] Error 2
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/home/rkube/repos/pytorch/third_party/nccl/nccl/src'
make: *** [Makefile:25: src.build] Error 2
[130/3326] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/descriptor.cc.o
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
  File "setup.py", line 732, in <module>
    build_deps()
  File "setup.py", line 311, in build_deps
    build_caffe2(version=version,
  File "/home/rkube/repos/pytorch/tools/build_pytorch_libs.py", line 62, in build_caffe2
    cmake.build(my_env)
  File "/home/rkube/repos/pytorch/tools/setup_helpers/cmake.py", line 345, in build
    self.run(build_args, my_env)
  File "/home/rkube/repos/pytorch/tools/setup_helpers/cmake.py", line 141, in run
    check_call(command, cwd=self.build_dir, env=env)
  File "/home/rkube/local/anaconda3/envs/ml2/lib/python3.8/subprocess.py", line 364, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--target', 'install', '--config', 'Release', '--', '-j', '64']' returned non-zero exit status 1.

cc @malfet @seemethere @walterddr