Repository: pytorch
Issue: Build Error: no matching function for call to ‘dnnl::graph::stream::stream(<brace-enclosed initializer list>)’
Labels: module: build,triaged,module: mkldnn

### 🐛 Describe the bug

I am trying to compile PyTorch from source.

```bash
docker run --gpus all -d --name pytorch-build-cuda102 -v /data2:/data2 -w /data2/pytorch-build nvidia/cuda:10.2-cudnn7-devel-ubuntu18.04 sleep infinity
# I tried with nvidia/cuda:11.2.0-cudnn8-devel-ubuntu20.04 too but ended up with the same error.

# Enter the container and install anaconda
apt-get update
apt-get install wget
wget https://repo.anaconda.com/archive/Anaconda3-2022.10-Linux-x86_64.sh
bash Anaconda3-2022.10-Linux-x86_64.sh

# Reopen shell and install dependencies
conda install astunparse numpy ninja pyyaml setuptools cmake cffi typing_extensions future six requests dataclasses
conda install mkl mkl-include
# conda install -c pytorch magma-cuda112
conda install -c pytorch magma-cuda102

git clone --recursive https://github.com/pytorch/pytorch.git
cd pytorch
git checkout v1.13.1

export CMAKE_PREFIX_PATH=${CONDA_PREFIX:-"$(dirname $(which conda))/../"}
USE_XNNPACK=0 python setup.py install --cmake
```

Then the error log:

```log
[Lots of CMake warnings]
-- Generating done
-- Build files have been written to: /data2/pytorch-build/pytorch/build
cmake --build . --target install --config Release
[121/1270] Building CXX object caffe2/CMakeFiles/torch_cpu.dir/__/torch/csrc/jit/codegen/onednn/LlgaTensorImpl.cpp.o
FAILED: caffe2/CMakeFiles/torch_cpu.dir/__/torch/csrc/jit/codegen/onednn/LlgaTensorImpl.cpp.o 
/usr/bin/c++ -DAT_PER_OPERATOR_HEADERS -DBUILD_ONEDNN_GRAPH -DCPUINFO_SUPPORTED_PLATFORM=1 -DFMT_HEADER_ONLY=1 -DHAVE_MALLOC_USABLE_SIZE=1 -DHAVE_MMAP=1 -DHAVE_SHM_OPEN=1 -DHAVE_SHM_UNLINK=1 -DIDEEP_USE_MKL -DMINIZ_DISABLE_ZIP_READER_CRC32_CHECKS -DNNP_CONVOLUTION_ONLY=0 -DNNP_INFERENCE_ONLY=0 -DONNXIFI_ENABLE_EXT=1 -DONNX_ML=1 -DONNX_NAMESPACE=onnx_torch -DUSE_C10D_GLOO -DUSE_DISTRIBUTED -DUSE_EXTERNAL_MZCRC -DUSE_RPC -DUSE_TENSORPIPE -D_FILE_OFFSET_BITS=64 -Dtorch_cpu_EXPORTS -I/data2/pytorch-build/pytorch/build/aten/src -I/data2/pytorch-build/pytorch/aten/src -I/data2/pytorch-build/pytorch/build -I/data2/pytorch-build/pytorch -I/data2/pytorch-build/pytorch/cmake/../third_party/benchmark/include -I/data2/pytorch-build/pytorch/cmake/../third_party/cudnn_frontend/include -I/data2/pytorch-build/pytorch/third_party/onnx -I/data2/pytorch-build/pytorch/build/third_party/onnx -I/data2/pytorch-build/pytorch/third_party/foxi -I/data2/pytorch-build/pytorch/build/third_party/foxi -I/data2/pytorch-build/pytorch/torch/csrc/api -I/data2/pytorch-build/pytorch/torch/csrc/api/include -I/data2/pytorch-build/pytorch/caffe2/aten/src/TH -I/data2/pytorch-build/pytorch/build/caffe2/aten/src/TH -I/data2/pytorch-build/pytorch/build/caffe2/aten/src -I/data2/pytorch-build/pytorch/build/caffe2/../aten/src -I/data2/pytorch-build/pytorch/torch/csrc -I/data2/pytorch-build/pytorch/third_party/miniz-2.1.0 -I/data2/pytorch-build/pytorch/third_party/kineto/libkineto/include -I/data2/pytorch-build/pytorch/third_party/kineto/libkineto/src -I/data2/pytorch-build/pytorch/aten/../third_party/catch/single_include -I/data2/pytorch-build/pytorch/aten/src/ATen/.. -I/data2/pytorch-build/pytorch/c10/.. -I/data2/pytorch-build/pytorch/third_party/pthreadpool/include -I/data2/pytorch-build/pytorch/third_party/cpuinfo/include -I/data2/pytorch-build/pytorch/third_party/QNNPACK/include -I/data2/pytorch-build/pytorch/aten/src/ATen/native/quantized/cpu/qnnpack/include -I/data2/pytorch-build/pytorch/aten/src/ATen/native/quantized/cpu/qnnpack/src -I/data2/pytorch-build/pytorch/third_party/cpuinfo/deps/clog/include -I/data2/pytorch-build/pytorch/third_party/NNPACK/include -I/data2/pytorch-build/pytorch/third_party/fbgemm/include -I/data2/pytorch-build/pytorch/third_party/fbgemm -I/data2/pytorch-build/pytorch/third_party/fbgemm/third_party/asmjit/src -I/data2/pytorch-build/pytorch/third_party/ittapi/src/ittnotify -I/data2/pytorch-build/pytorch/third_party/FP16/include -I/data2/pytorch-build/pytorch/third_party/tensorpipe -I/data2/pytorch-build/pytorch/build/third_party/tensorpipe -I/data2/pytorch-build/pytorch/third_party/tensorpipe/third_party/libnop/include -I/data2/pytorch-build/pytorch/third_party/fmt/include -I/data2/pytorch-build/pytorch/build/third_party/ideep/mkl-dnn/third_party/oneDNN/include -I/data2/pytorch-build/pytorch/third_party/ideep/mkl-dnn/third_party/oneDNN/src/../include -I/data2/pytorch-build/pytorch/third_party/flatbuffers/include -isystem /data2/pytorch-build/pytorch/build/third_party/gloo -isystem /data2/pytorch-build/pytorch/cmake/../third_party/gloo -isystem /data2/pytorch-build/pytorch/cmake/../third_party/googletest/googlemock/include -isystem /data2/pytorch-build/pytorch/cmake/../third_party/googletest/googletest/include -isystem /data2/pytorch-build/pytorch/third_party/protobuf/src -isystem /root/anaconda3/include -isystem /data2/pytorch-build/pytorch/third_party/gemmlowp -isystem /data2/pytorch-build/pytorch/third_party/neon2sse -isystem /data2/pytorch-build/pytorch/third_party/ittapi/include -isystem /data2/pytorch-build/pytorch/cmake/../third_party/eigen -isystem /data2/pytorch-build/pytorch/cmake/../third_party/cub -isystem /data2/pytorch-build/pytorch/third_party/ideep/mkl-dnn/third_party/oneDNN/include -isystem /data2/pytorch-build/pytorch/third_party/ideep/include -isystem /data2/pytorch-build/pytorch/third_party/ideep/mkl-dnn/include -isystem /data2/pytorch-build/pytorch/build/include -Wno-deprecated -fvisibility-inlines-hidden -DUSE_PTHREADPOOL -fopenmp -DNDEBUG -DUSE_KINETO -DUSE_FBGEMM -DUSE_QNNPACK -DUSE_PYTORCH_QNNPACK -DSYMBOLICATE_MOBILE_DEBUG_HANDLE -DEDGE_PROFILER_USE_KINETO -O2 -fPIC -Wno-narrowing -Wall -Wextra -Werror=return-type -Werror=non-virtual-dtor -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 -Wno-stringop-overflow -DHAVE_AVX2_CPU_DEFINITION -O3 -DNDEBUG -DNDEBUG -fPIC -DCAFFE2_USE_GLOO -DTH_HAVE_THREAD -Wall -Wextra -Wno-unused-parameter -Wno-unused-function -Wno-unused-result -Wno-missing-field-initializers -Wno-write-strings -Wno-unknown-pragmas -Wno-type-limits -Wno-array-bounds -Wno-sign-compare -Wno-strict-overflow -Wno-strict-aliasing -Wno-error=deprecated-declarations -Wno-missing-braces -Wno-maybe-uninitialized -fvisibility=hidden -O2 -fopenmp -DCAFFE2_BUILD_MAIN_LIB -pthread -DASMJIT_STATIC -MD -MT caffe2/CMakeFiles/torch_cpu.dir/__/torch/csrc/jit/codegen/onednn/LlgaTensorImpl.cpp.o -MF caffe2/CMakeFiles/torch_cpu.dir/__/torch/csrc/jit/codegen/onednn/LlgaTensorImpl.cpp.o.d -o caffe2/CMakeFiles/torch_cpu.dir/__/torch/csrc/jit/codegen/onednn/LlgaTensorImpl.cpp.o -c /data2/pytorch-build/pytorch/torch/csrc/jit/codegen/onednn/LlgaTensorImpl.cpp
/data2/pytorch-build/pytorch/torch/csrc/jit/codegen/onednn/LlgaTensorImpl.cpp: In static member function ‘static dnnl::graph::stream& torch::jit::fuser::onednn::Stream::getStream()’:
/data2/pytorch-build/pytorch/torch/csrc/jit/codegen/onednn/LlgaTensorImpl.cpp:19:69: error: no matching function for call to ‘dnnl::graph::stream::stream(<brace-enclosed initializer list>)’
   static dnnl::graph::stream cpu_stream{Engine::getEngine(), nullptr};
                                                                     ^
In file included from /data2/pytorch-build/pytorch/torch/csrc/jit/codegen/onednn/LlgaTensorImpl.h:6:0,
                 from /data2/pytorch-build/pytorch/torch/csrc/jit/codegen/onednn/LlgaTensorImpl.cpp:5:
/data2/pytorch-build/pytorch/third_party/ideep/mkl-dnn/include/oneapi/dnnl/dnnl_graph.hpp:52:5: note: candidate: constexpr dnnl::graph::detail::handle<T, del>::handle() [with T = dnnl_graph_stream*; dnnl_graph_status_t (* del)(T) = dnnl_graph_stream_destroy]
     handle() = default;
     ^~~~~~
/data2/pytorch-build/pytorch/third_party/ideep/mkl-dnn/include/oneapi/dnnl/dnnl_graph.hpp:320:34: note:   inherited here
     using detail::stream_handle::handle;
                                  ^~~~~~
/data2/pytorch-build/pytorch/third_party/ideep/mkl-dnn/include/oneapi/dnnl/dnnl_graph.hpp:320:34: note:   candidate expects 0 arguments, 2 provided
/data2/pytorch-build/pytorch/third_party/ideep/mkl-dnn/include/oneapi/dnnl/dnnl_graph.hpp:60:5: note: candidate: dnnl::graph::detail::handle<T, del>::handle(T, bool) [with T = dnnl_graph_stream*; dnnl_graph_status_t (* del)(T) = dnnl_graph_stream_destroy]
     handle(T t, bool weak = false) { reset(t, weak); }
     ^~~~~~
/data2/pytorch-build/pytorch/third_party/ideep/mkl-dnn/include/oneapi/dnnl/dnnl_graph.hpp:320:34: note:   inherited here
     using detail::stream_handle::handle;
                                  ^~~~~~
/data2/pytorch-build/pytorch/third_party/ideep/mkl-dnn/include/oneapi/dnnl/dnnl_graph.hpp:320:34: note:   no known conversion for argument 1 from ‘dnnl::graph::engine’ to ‘dnnl_graph_stream*’
/data2/pytorch-build/pytorch/third_party/ideep/mkl-dnn/include/oneapi/dnnl/dnnl_graph.hpp:63:5: note: candidate: dnnl::graph::detail::handle<T, del>::handle(const dnnl::graph::detail::handle<T, del>&) [with T = dnnl_graph_stream*; dnnl_graph_status_t (* del)(T) = dnnl_graph_stream_destroy]
     handle(const handle &) = default;
     ^~~~~~
/data2/pytorch-build/pytorch/third_party/ideep/mkl-dnn/include/oneapi/dnnl/dnnl_graph.hpp:320:34: note:   inherited here
     using detail::stream_handle::handle;
                                  ^~~~~~
/data2/pytorch-build/pytorch/third_party/ideep/mkl-dnn/include/oneapi/dnnl/dnnl_graph.hpp:320:34: note:   candidate expects 1 argument, 2 provided
/data2/pytorch-build/pytorch/third_party/ideep/mkl-dnn/include/oneapi/dnnl/dnnl_graph.hpp:67:5: note: candidate: dnnl::graph::detail::handle<T, del>::handle(dnnl::graph::detail::handle<T, del>&&) [with T = dnnl_graph_stream*; dnnl_graph_status_t (* del)(T) = dnnl_graph_stream_destroy]
     handle(handle &&) = default;
     ^~~~~~
/data2/pytorch-build/pytorch/third_party/ideep/mkl-dnn/include/oneapi/dnnl/dnnl_graph.hpp:320:34: note:   inherited here
     using detail::stream_handle::handle;
                                  ^~~~~~
/data2/pytorch-build/pytorch/third_party/ideep/mkl-dnn/include/oneapi/dnnl/dnnl_graph.hpp:320:34: note:   candidate expects 1 argument, 2 provided
/data2/pytorch-build/pytorch/third_party/ideep/mkl-dnn/include/oneapi/dnnl/dnnl_graph.hpp:325:5: note: candidate: dnnl::graph::stream::stream(const dnnl::graph::engine&)
     stream(const engine &engine) {
     ^~~~~~
/data2/pytorch-build/pytorch/third_party/ideep/mkl-dnn/include/oneapi/dnnl/dnnl_graph.hpp:325:5: note:   candidate expects 1 argument, 2 provided
/data2/pytorch-build/pytorch/third_party/ideep/mkl-dnn/include/oneapi/dnnl/dnnl_graph.hpp:318:7: note: candidate: dnnl::graph::stream::stream(const dnnl::graph::stream&)
 class stream : public detail::stream_handle {
       ^~~~~~
/data2/pytorch-build/pytorch/third_party/ideep/mkl-dnn/include/oneapi/dnnl/dnnl_graph.hpp:318:7: note:   candidate expects 1 argument, 2 provided
/data2/pytorch-build/pytorch/third_party/ideep/mkl-dnn/include/oneapi/dnnl/dnnl_graph.hpp:318:7: note: candidate: dnnl::graph::stream::stream(dnnl::graph::stream&&)
/data2/pytorch-build/pytorch/third_party/ideep/mkl-dnn/include/oneapi/dnnl/dnnl_graph.hpp:318:7: note:   candidate expects 1 argument, 2 provided
[124/1270] Building CXX object caffe2/CMakeFiles/torch_cpu.dir/__/torch/csrc/jit/codegen/onednn/graph_helper.cpp.o
FAILED: caffe2/CMakeFiles/torch_cpu.dir/__/torch/csrc/jit/codegen/onednn/graph_helper.cpp.o 
/usr/bin/c++ -DAT_PER_OPERATOR_HEADERS -DBUILD_ONEDNN_GRAPH -DCPUINFO_SUPPORTED_PLATFORM=1 -DFMT_HEADER_ONLY=1 -DHAVE_MALLOC_USABLE_SIZE=1 -DHAVE_MMAP=1 -DHAVE_SHM_OPEN=1 -DHAVE_SHM_UNLINK=1 -DIDEEP_USE_MKL -DMINIZ_DISABLE_ZIP_READER_CRC32_CHECKS -DNNP_CONVOLUTION_ONLY=0 -DNNP_INFERENCE_ONLY=0 -DONNXIFI_ENABLE_EXT=1 -DONNX_ML=1 -DONNX_NAMESPACE=onnx_torch -DUSE_C10D_GLOO -DUSE_DISTRIBUTED -DUSE_EXTERNAL_MZCRC -DUSE_RPC -DUSE_TENSORPIPE -D_FILE_OFFSET_BITS=64 -Dtorch_cpu_EXPORTS -I/data2/pytorch-build/pytorch/build/aten/src -I/data2/pytorch-build/pytorch/aten/src -I/data2/pytorch-build/pytorch/build -I/data2/pytorch-build/pytorch -I/data2/pytorch-build/pytorch/cmake/../third_party/benchmark/include -I/data2/pytorch-build/pytorch/cmake/../third_party/cudnn_frontend/include -I/data2/pytorch-build/pytorch/third_party/onnx -I/data2/pytorch-build/pytorch/build/third_party/onnx -I/data2/pytorch-build/pytorch/third_party/foxi -I/data2/pytorch-build/pytorch/build/third_party/foxi -I/data2/pytorch-build/pytorch/torch/csrc/api -I/data2/pytorch-build/pytorch/torch/csrc/api/include -I/data2/pytorch-build/pytorch/caffe2/aten/src/TH -I/data2/pytorch-build/pytorch/build/caffe2/aten/src/TH -I/data2/pytorch-build/pytorch/build/caffe2/aten/src -I/data2/pytorch-build/pytorch/build/caffe2/../aten/src -I/data2/pytorch-build/pytorch/torch/csrc -I/data2/pytorch-build/pytorch/third_party/miniz-2.1.0 -I/data2/pytorch-build/pytorch/third_party/kineto/libkineto/include -I/data2/pytorch-build/pytorch/third_party/kineto/libkineto/src -I/data2/pytorch-build/pytorch/aten/../third_party/catch/single_include -I/data2/pytorch-build/pytorch/aten/src/ATen/.. -I/data2/pytorch-build/pytorch/c10/.. -I/data2/pytorch-build/pytorch/third_party/pthreadpool/include -I/data2/pytorch-build/pytorch/third_party/cpuinfo/include -I/data2/pytorch-build/pytorch/third_party/QNNPACK/include -I/data2/pytorch-build/pytorch/aten/src/ATen/native/quantized/cpu/qnnpack/include -I/data2/pytorch-build/pytorch/aten/src/ATen/native/quantized/cpu/qnnpack/src -I/data2/pytorch-build/pytorch/third_party/cpuinfo/deps/clog/include -I/data2/pytorch-build/pytorch/third_party/NNPACK/include -I/data2/pytorch-build/pytorch/third_party/fbgemm/include -I/data2/pytorch-build/pytorch/third_party/fbgemm -I/data2/pytorch-build/pytorch/third_party/fbgemm/third_party/asmjit/src -I/data2/pytorch-build/pytorch/third_party/ittapi/src/ittnotify -I/data2/pytorch-build/pytorch/third_party/FP16/include -I/data2/pytorch-build/pytorch/third_party/tensorpipe -I/data2/pytorch-build/pytorch/build/third_party/tensorpipe -I/data2/pytorch-build/pytorch/third_party/tensorpipe/third_party/libnop/include -I/data2/pytorch-build/pytorch/third_party/fmt/include -I/data2/pytorch-build/pytorch/build/third_party/ideep/mkl-dnn/third_party/oneDNN/include -I/data2/pytorch-build/pytorch/third_party/ideep/mkl-dnn/third_party/oneDNN/src/../include -I/data2/pytorch-build/pytorch/third_party/flatbuffers/include -isystem /data2/pytorch-build/pytorch/build/third_party/gloo -isystem /data2/pytorch-build/pytorch/cmake/../third_party/gloo -isystem /data2/pytorch-build/pytorch/cmake/../third_party/googletest/googlemock/include -isystem /data2/pytorch-build/pytorch/cmake/../third_party/googletest/googletest/include -isystem /data2/pytorch-build/pytorch/third_party/protobuf/src -isystem /root/anaconda3/include -isystem /data2/pytorch-build/pytorch/third_party/gemmlowp -isystem /data2/pytorch-build/pytorch/third_party/neon2sse -isystem /data2/pytorch-build/pytorch/third_party/ittapi/include -isystem /data2/pytorch-build/pytorch/cmake/../third_party/eigen -isystem /data2/pytorch-build/pytorch/cmake/../third_party/cub -isystem /data2/pytorch-build/pytorch/third_party/ideep/mkl-dnn/third_party/oneDNN/include -isystem /data2/pytorch-build/pytorch/third_party/ideep/include -isystem /data2/pytorch-build/pytorch/third_party/ideep/mkl-dnn/include -isystem /data2/pytorch-build/pytorch/build/include -Wno-deprecated -fvisibility-inlines-hidden -DUSE_PTHREADPOOL -fopenmp -DNDEBUG -DUSE_KINETO -DUSE_FBGEMM -DUSE_QNNPACK -DUSE_PYTORCH_QNNPACK -DSYMBOLICATE_MOBILE_DEBUG_HANDLE -DEDGE_PROFILER_USE_KINETO -O2 -fPIC -Wno-narrowing -Wall -Wextra -Werror=return-type -Werror=non-virtual-dtor -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 -Wno-stringop-overflow -DHAVE_AVX2_CPU_DEFINITION -O3 -DNDEBUG -DNDEBUG -fPIC -DCAFFE2_USE_GLOO -DTH_HAVE_THREAD -Wall -Wextra -Wno-unused-parameter -Wno-unused-function -Wno-unused-result -Wno-missing-field-initializers -Wno-write-strings -Wno-unknown-pragmas -Wno-type-limits -Wno-array-bounds -Wno-sign-compare -Wno-strict-overflow -Wno-strict-aliasing -Wno-error=deprecated-declarations -Wno-missing-braces -Wno-maybe-uninitialized -fvisibility=hidden -O2 -fopenmp -DCAFFE2_BUILD_MAIN_LIB -pthread -DASMJIT_STATIC -MD -MT caffe2/CMakeFiles/torch_cpu.dir/__/torch/csrc/jit/codegen/onednn/graph_helper.cpp.o -MF caffe2/CMakeFiles/torch_cpu.dir/__/torch/csrc/jit/codegen/onednn/graph_helper.cpp.o.d -o caffe2/CMakeFiles/torch_cpu.dir/__/torch/csrc/jit/codegen/onednn/graph_helper.cpp.o -c /data2/pytorch-build/pytorch/torch/csrc/jit/codegen/onednn/graph_helper.cpp
/data2/pytorch-build/pytorch/torch/csrc/jit/codegen/onednn/graph_helper.cpp: In function ‘torch::jit::fuser::onednn::Operator torch::jit::fuser::onednn::createOperator(torch::jit::Node*)’:
/data2/pytorch-build/pytorch/torch/csrc/jit/codegen/onednn/graph_helper.cpp:173:42: error: ‘HardTanh’ is not a member of ‘torch::jit::fuser::onednn::opkind {aka dnnl::graph::op::kind}’
       return makeEltwiseOp(node, opkind::HardTanh)
                                          ^~~~~~~~
[178/1270] Building CXX object caffe2/CMakeFiles/torch_cpu.dir/__/torch/csrc/jit/serialization/export.cpp.o
ninja: build stopped: subcommand failed.
```

CMake, GCC, C++ versions:

```bash
(base) root@25c690fc833c:/data2/pytorch-build/pytorch# cmake --version
cmake version 3.22.1

CMake suite maintained and supported by Kitware (kitware.com/cmake).
(base) root@25c690fc833c:/data2/pytorch-build/pytorch# gcc --version
gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

(base) root@25c690fc833c:/data2/pytorch-build/pytorch# c++ --version
c++ (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
```


### Versions

```
(base) root@25c690fc833c:/data2/pytorch-build/pytorch# 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: Ubuntu 18.04.6 LTS (x86_64)
GCC version: (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
Clang version: Could not collect
CMake version: version 3.22.1
Libc version: glibc-2.27

Python version: 3.9.13 (main, Aug 25 2022, 23:26:10)  [GCC 11.2.0] (64-bit runtime)
Python platform: Linux-3.10.0-957.27.2.el7.x86_64-x86_64-with-glibc2.27
Is CUDA available: N/A
CUDA runtime version: 10.2.89
CUDA_MODULE_LOADING set to: N/A
GPU models and configuration: 
GPU 0: NVIDIA A100-PCIE-40GB
GPU 1: NVIDIA A100-PCIE-40GB
GPU 2: NVIDIA A100-PCIE-40GB
GPU 3: NVIDIA A100-PCIE-40GB
GPU 4: NVIDIA A100-PCIE-40GB
GPU 5: NVIDIA A100-PCIE-40GB
GPU 6: NVIDIA A100-PCIE-40GB
GPU 7: NVIDIA A100-PCIE-40GB

Nvidia driver version: 470.82.01
cuDNN version: /usr/lib/x86_64-linux-gnu/libcudnn.so.7.6.5
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: N/A

CPU:
Architecture:        x86_64
CPU op-mode(s):      32-bit, 64-bit
Byte Order:          Little Endian
CPU(s):              56
On-line CPU(s) list: 0-55
Thread(s) per core:  1
Core(s) per socket:  28
Socket(s):           2
NUMA node(s):        2
Vendor ID:           GenuineIntel
CPU family:          6
Model:               106
Model name:          Intel(R) Xeon(R) Gold 6348 CPU @ 2.60GHz
Stepping:            6
CPU MHz:             800.000
CPU max MHz:         3500.0000
CPU min MHz:         800.0000
BogoMIPS:            5200.00
Virtualization:      VT-x
L1d cache:           48K
L1i cache:           32K
L2 cache:            1280K
L3 cache:            43008K
NUMA node0 CPU(s):   0-27
NUMA node1 CPU(s):   28-55
Flags:               fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch epb cat_l3 intel_pt ssbd mba ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm cqm rdt_a avx512f avx512dq rdseed adx smap avx512ifma clflushopt clwb avx512cd sha_ni avx512bw avx512vl xsaveopt xsavec xgetbv1 cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local dtherm ida arat pln pts avx512vbmi umip pku ospke avx512_vbmi2 gfni vaes vpclmulqdq avx512_vnni avx512_bitalg avx512_vpopcntdq md_clear pconfig spec_ctrl intel_stibp flush_l1d arch_capabilities

Versions of relevant libraries:
[pip3] mypy-extensions==0.4.3
[pip3] numpy==1.21.5
[pip3] numpydoc==1.4.0
[conda] blas                      1.0                         mkl  
[conda] magma-cuda102             2.5.2                         1    pytorch
[conda] mkl                       2021.4.0           h06a4308_640  
[conda] mkl-include               2022.1.0           h06a4308_224  
[conda] mkl-service               2.4.0            py39h7f8727e_0  
[conda] mkl_fft                   1.3.1            py39hd3c417c_0  
[conda] mkl_random                1.2.2            py39h51133e4_0  
[conda] numpy                     1.21.5           py39h6c91a56_3  
[conda] numpy-base                1.21.5           py39ha15fc14_3  
[conda] numpydoc                  1.4.0            py39h06a4308_0 
```

cc @malfet @seemethere @gujinghui @PenghuiCheng @XiaobingSuper @jianyuh @jgong5 @mingfeima @sanchitintel @ashokei @jingxu10 @min-jean-cho @yanbing-j @Guobing-Chen @Xia-Weiwen @mrshenli @pritamdamania87 @zhaojuanmao @satgera @rohan-varma @gqchen @aazzolini @osalpekar @jiayisuse @H-Huang @kwen2501 @awgu