No kernel image is available for execution on the device pytorch quadro "k4200"

elisha_tadepalli: <p>Hi,<br>
I am trying to run mtcnn from pytorch for a computer vision project, I have quadro 4200 gpu and I am using “nvidia/cuda:11.4.0-runtime-ubuntu20.04” docker image. When I am trying to run python file I am getting  “No kernel image is available for execution on the device” error.</p>
<p>As per the "<a href="https://discuss.pytorch.org/t/building-pytorch-from-source-to-support-a-3-0-cc-device-quadro-k4200/88458" class="inline-onebox">Building PyTorch from source to support a 3.0 CC device (Quadro K4200)</a> " issue I am trying to build the pytorch from the source by following the “<a href="https://research.beenfrog.com/code/2018/07/14/build-pytorch-from-source.html" class="inline-onebox" rel="noopener nofollow ugc">Build pytorch from source | Beenfrog's research blog</a>”. but getting following error.</p>
<p>/usr/bin/ld: cannot find -lcudart_static<br>
collect2: error: ld returned 1 exit status<br>
make[4]: *** [Makefile:74: /pytorch/build/nccl/lib/libnccl.so.2.14.3] Error 1<br>
make[4]: *** Waiting for unfinished jobs…<br>
make[3]: *** [Makefile:25: src.build] Error 2<br>
make[2]: *** [CMakeFiles/nccl_external.dir/build.make:86: nccl_external-prefix/src/nccl_external-stamp/nccl_external-build] Error 2<br>
make[1]: *** [CMakeFiles/Makefile2:2045: CMakeFiles/nccl_external.dir/all] Error 2<br>
make: *** [Makefile:146: all] Error 2</p>

ptrblck: <p>The build fails during the linking stage while building NCCL, but also note that CUDA 11.4 supports compute capability 3.5-8.6 and would most likely break while trying to compile CUDA kernels for your Kepler GPU with compute capability 3.0.<br>
The last CUDA toolkit supporting compute capability 3.0 was CUDA 10.2, which is also already deprecated for source builds (in the current master).</p>

elisha_tadepalli: <p>So, it will  not work for my gpu, right?<br>
If yes what is the alternate method?</p>

ptrblck: <p>Yes, a source build in your current setup will most likely not work for your GPU and you would need to use an older PyTorch release (I believe <code>1.12.x</code> was still supporting CUDA 10.2) as well as an older CUDA toolkit (&lt;=10.2 as mentioned).</p>

elisha_tadepalli: <p>Hi <a class="mention" href="/u/ptrblck">@ptrblck</a><br>
As you mentioned I have taken the “nvidia/cuda:10.2-cudnn8-runtime-ubuntu18.04” docker images and tried to install the torch==1.12.x but ubuntu18.04 doesn’t have torch 1.12.x. Then I have tried with 1.10.2 but still getting the same error.</p>

elisha_tadepalli: <p>So, can I come to the conclusion that I cant achieve this by the quadro 4200, right?</p>

ptrblck: <aside class="quote no-group" data-username="elisha_tadepalli" data-post="5" data-topic="170946">
<div class="title">
<div class="quote-controls"></div>
<img loading="lazy" alt="" width="24" height="24" src="https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/elisha_tadepalli/48/56562_2.png" class="avatar"> elisha_tadepalli:</div>
<blockquote>
<p>and tried to install the torch==1.12.x but ubuntu18.04 doesn’t have torch 1.12.x.</p>
</blockquote>
</aside>
<p>I don’t fully understand this statement since PyTorch is not an Ubuntu package in case you are trying to install it via <code>apt install</code>.<br>
You would need to build PyTorch from source as described <a href="https://github.com/pytorch/pytorch#from-source">here</a>.</p>

elisha_tadepalli: <p>I am installing pytorch via pip, then it showing 1.12.x version is not available. And In the given link they mentioned cuda 11.0 or higher but mine is 10.2, will it work?</p>

ptrblck: <p>The <code>1.12.1+cu102</code> pip wheel can be found <a href="https://download.pytorch.org/whl/cu102/torch-1.12.1%2Bcu102-cp38-cp38-linux_x86_64.whl">here</a> and you could change the <code>cp38</code> tag to the Python version you want to use.<br>
However, note that also these wheels will not work since the binaries were only supporting compute capability 3.5-7.5 with the CUDA10.2 runtime, and you would still need to build PyTorch from source for your GPU.</p>

elisha_tadepalli: <p>Ok Mr.<a class="mention" href="/u/ptrblck">@ptrblck</a> thank you for the quick responses. I will try to build from the source.</p>

elisha_tadepalli: <p>I have followed the instruction from the documentation, I got this error.<br>
<div class="lightbox-wrapper"><a class="lightbox" href="https://discuss.pytorch.org/uploads/default/original/3X/9/8/98c39bbb197701b8c478fc4a673b6da9f2a38588.png" data-download-href="https://discuss.pytorch.org/uploads/default/98c39bbb197701b8c478fc4a673b6da9f2a38588" title="Screenshot from 2023-01-25 19-40-54"><img src="https://discuss.pytorch.org/uploads/default/optimized/3X/9/8/98c39bbb197701b8c478fc4a673b6da9f2a38588_2_690x388.png" alt="Screenshot from 2023-01-25 19-40-54" data-base62-sha1="lNpFbZeTPZ2UlmQD5IksBxzxNqM" width="690" height="388" srcset="https://discuss.pytorch.org/uploads/default/optimized/3X/9/8/98c39bbb197701b8c478fc4a673b6da9f2a38588_2_690x388.png, https://discuss.pytorch.org/uploads/default/optimized/3X/9/8/98c39bbb197701b8c478fc4a673b6da9f2a38588_2_1035x582.png 1.5x, https://discuss.pytorch.org/uploads/default/optimized/3X/9/8/98c39bbb197701b8c478fc4a673b6da9f2a38588_2_1380x776.png 2x" data-dominant-color="17242F"><div class="meta"><svg class="fa d-icon d-icon-far-image svg-icon" aria-hidden="true"><use href="#far-image"></use></svg><span class="filename">Screenshot from 2023-01-25 19-40-54</span><span class="informations">1920×1080 396 KB</span><svg class="fa d-icon d-icon-discourse-expand svg-icon" aria-hidden="true"><use href="#discourse-expand"></use></svg></div></a></div></p>

ptrblck: <p>I’m not familiar with developing on Windows but based on the screenshot it seems the compiler (in particular <code>cc1plus</code>) ran into an internal error. Maybe updating the C++ toolchain could help.</p>

elisha_tadepalli: <p>I am running it in ubuntu only not windows.</p>

ptrblck: <p>In that case I don’t understand why your build environment points to <code>Program Files(x86)\...\cl.exe</code> which is a Windows executable.<br>
Are you mixing Windows build commands into your Ubuntu setup?</p>

elisha_tadepalli: <p>I was trying to run the following commands.<br>
<div class="lightbox-wrapper"><a class="lightbox" href="https://discuss.pytorch.org/uploads/default/original/3X/2/5/25a0e78914674fb799c7e89ab466a28e87388261.jpeg" data-download-href="https://discuss.pytorch.org/uploads/default/25a0e78914674fb799c7e89ab466a28e87388261" title="Screenshot_2023-01-26-07-24-43-613_com.android.chrome"><img src="https://discuss.pytorch.org/uploads/default/optimized/3X/2/5/25a0e78914674fb799c7e89ab466a28e87388261_2_225x500.jpeg" alt="Screenshot_2023-01-26-07-24-43-613_com.android.chrome" data-base62-sha1="5mSoXtBCIufgDzFC8Qx1mEaq3XX" width="225" height="500" srcset="https://discuss.pytorch.org/uploads/default/optimized/3X/2/5/25a0e78914674fb799c7e89ab466a28e87388261_2_225x500.jpeg, https://discuss.pytorch.org/uploads/default/optimized/3X/2/5/25a0e78914674fb799c7e89ab466a28e87388261_2_337x750.jpeg 1.5x, https://discuss.pytorch.org/uploads/default/optimized/3X/2/5/25a0e78914674fb799c7e89ab466a28e87388261_2_450x1000.jpeg 2x" data-dominant-color="E0E1E2"><div class="meta"><svg class="fa d-icon d-icon-far-image svg-icon" aria-hidden="true"><use href="#far-image"></use></svg><span class="filename">Screenshot_2023-01-26-07-24-43-613_com.android.chrome</span><span class="informations">1080×2400 139 KB</span><svg class="fa d-icon d-icon-discourse-expand svg-icon" aria-hidden="true"><use href="#discourse-expand"></use></svg></div></a></div></p>

elisha_tadepalli: <p>After you mentioned I have followed these below steps<br>
1.created an environment with python 3.7.16 using anaconda<br>
2.add-apt-repository ppa:ubuntu-toolchain-r/test<br>
3.apt-get update<br>
4.apt install gcc-10 gcc-10-base gcc-10-doc g+±10<br>
5.apt install libstdc+±10-dev libstdc+±10-doc<br>
6.conda install astunparse numpy ninja pyyaml setuptools cmake typing_extensions six requests dataclasses<br>
7.conda install mkl mkl-include<br>
8.conda install -c pytorch magma-cuda102<br>
9.git clone --recursive <a href="https://github.com/pytorch/pytorch" class="inline-onebox" rel="noopener nofollow ugc">GitHub - pytorch/pytorch: Tensors and Dynamic neural networks in Python with strong GPU acceleration</a><br>
10.cd pytorch<br>
11.git submodule sync<br>
12.git submodule update --init --recursive<br>
13.export CMAKE_PREFIX_PATH=${CONDA_PREFIX:-“$(dirname $(which conda))/…/”}<br>
14python setup.py develop</p>
<p>and got this error.<br>
<div class="lightbox-wrapper"><a class="lightbox" href="https://discuss.pytorch.org/uploads/default/original/3X/a/2/a2ed33847ccae52d6ecd28e6091ca6636a31fc73.png" data-download-href="https://discuss.pytorch.org/uploads/default/a2ed33847ccae52d6ecd28e6091ca6636a31fc73" title="Screenshot from 2023-01-26 11-33-29"><img src="https://discuss.pytorch.org/uploads/default/optimized/3X/a/2/a2ed33847ccae52d6ecd28e6091ca6636a31fc73_2_690x388.png" alt="Screenshot from 2023-01-26 11-33-29" data-base62-sha1="nfjyc4biVSqx9wiRvao1lozpz35" width="690" height="388" srcset="https://discuss.pytorch.org/uploads/default/optimized/3X/a/2/a2ed33847ccae52d6ecd28e6091ca6636a31fc73_2_690x388.png, https://discuss.pytorch.org/uploads/default/optimized/3X/a/2/a2ed33847ccae52d6ecd28e6091ca6636a31fc73_2_1035x582.png 1.5x, https://discuss.pytorch.org/uploads/default/optimized/3X/a/2/a2ed33847ccae52d6ecd28e6091ca6636a31fc73_2_1380x776.png 2x" data-dominant-color="182A31"><div class="meta"><svg class="fa d-icon d-icon-far-image svg-icon" aria-hidden="true"><use href="#far-image"></use></svg><span class="filename">Screenshot from 2023-01-26 11-33-29</span><span class="informations">1920×1080 480 KB</span><svg class="fa d-icon d-icon-discourse-expand svg-icon" aria-hidden="true"><use href="#discourse-expand"></use></svg></div></a></div></p>

ptrblck: <p>I don’t see the actual error just the failing message, so you would need to check which part of the build failed.<br>
PS: you can post code snippets by wrapping them into thee backticks ```, which makes debugging easier.</p>

elisha_tadepalli: <p>Can you please tell me in simple words.</p>

ptrblck: <p>Your screenshot does not show the error, so scroll up and post the first line showing an “Error” output.</p>

elisha_tadepalli: <p>Hi mr <a class="mention" href="/u/ptrblck">@ptrblck</a>,<br>
I cannot find the error message, so I am adding the entire result.</p>
<p>Building wheel torch-2.0.0a0+gitd322f82<br>
– Building version 2.0.0a0+gitd322f82<br>
cmake --build . --target install --config Release<br>
[459/874] Building CXX object caffe2/CMakeFiles/torch_cpu.dir/__/aten/src/ATen/native/quantized/cpu/kernels/QuantizedOpKernels.cpp.AVX2.cpp.o<br>
In file included from /usr/include/c++/7/tuple:39:0,<br>
from /usr/include/c++/7/functional:54,<br>
from /pytorch/c10/core/DeviceType.h:10,<br>
from /pytorch/c10/core/Device.h:3,<br>
from /pytorch/build/aten/src/ATen/core/TensorBody.h:11,<br>
from /pytorch/aten/src/ATen/core/Tensor.h:3,<br>
from /pytorch/aten/src/ATen/native/quantized/cpu/kernels/QuantizedOpKernels.cpp:2,<br>
from /pytorch/build/aten/src/ATen/native/quantized/cpu/kernels/QuantizedOpKernels.cpp.AVX2.cpp:1:<br>
/pytorch/aten/src/ATen/native/quantized/cpu/kernels/QuantizedOpKernels.cpp: In instantiation of ‘at::native::{anonymous}::qcat_nhwc_kernel(const MaterializedITensorListRef&amp;, int64_t, double, int64_t)::&lt;lambda()&gt;::&lt;lambda()&gt;::&lt;lambda(int64_t, int64_t)&gt; [with bool ReLUFused = false; int64_t = long int]’:<br>
/pytorch/aten/src/ATen/native/quantized/cpu/kernels/QuantizedOpKernels.cpp:123:3:   required from ‘struct at::native::{anonymous}::qcat_nhwc_kernel(const MaterializedITensorListRef&amp;, int64_t, double, int64_t)::&lt;lambda()&gt;::&lt;lambda()&gt; [with bool ReLUFused = false]::&lt;lambda(int64_t, int64_t)&gt;’<br>
/pytorch/aten/src/ATen/native/quantized/cpu/kernels/QuantizedOpKernels.cpp:123:3:   required from ‘at::native::{anonymous}::qcat_nhwc_kernel(const MaterializedITensorListRef&amp;, int64_t, double, int64_t)::&lt;lambda()&gt;::&lt;lambda()&gt; [with bool ReLUFused = false]’<br>
/pytorch/aten/src/ATen/native/quantized/cpu/kernels/QuantizedOpKernels.cpp:123:3:   required from ‘struct at::native::{anonymous}::qcat_nhwc_kernel(const MaterializedITensorListRef&amp;, int64_t, double, int64_t)::&lt;lambda()&gt; [with bool ReLUFused = false]::&lt;lambda()&gt;’<br>
/pytorch/aten/src/ATen/native/quantized/cpu/kernels/QuantizedOpKernels.cpp:123:3:   required from ‘at::native::{anonymous}::qcat_nhwc_kernel(const MaterializedITensorListRef&amp;, int64_t, double, int64_t)::&lt;lambda()&gt; [with bool ReLUFused = false]’<br>
/pytorch/aten/src/ATen/native/quantized/cpu/kernels/QuantizedOpKernels.cpp:123:3:   required from ‘struct at::native::{anonymous}::qcat_nhwc_kernel(const MaterializedITensorListRef&amp;, int64_t, double, int64_t) [with bool ReLUFused = false; at::MaterializedITensorListRef = std::vector&lt;std::reference_wrapper, std::allocator&lt;std::reference_wrapper &gt; &gt;; int64_t = long int]::&lt;lambda()&gt;’<br>
/pytorch/aten/src/ATen/native/quantized/cpu/kernels/QuantizedOpKernels.cpp:123:3:   required from ‘at::Tensor at::native::{anonymous}::qcat_nhwc_kernel(const MaterializedITensorListRef&amp;, int64_t, double, int64_t) [with bool ReLUFused = false; at::MaterializedITensorListRef = std::vector&lt;std::reference_wrapper, std::allocator&lt;std::reference_wrapper &gt; &gt;; int64_t = long int]’<br>
/pytorch/aten/src/ATen/native/quantized/cpu/kernels/QuantizedOpKernels.cpp:4229:1:   required from here<br>
/usr/include/c++/7/array:94:12: note: ‘struct std::array&lt;signed char, 32&gt;’ has no user-provided default constructor<br>
struct array<br>
^~~~~<br>
/usr/include/c++/7/array:110:56: note: and the implicitly-defined constructor does not initialize ‘signed char std::array&lt;signed char, 32&gt;::_M_elems [32]’<br>
typename _AT_Type::_Type                         _M_elems;<br>
^~~~~~~~<br>
/pytorch/aten/src/ATen/native/quantized/cpu/kernels/QuantizedOpKernels.cpp: In instantiation of ‘at::native::{anonymous}::qcat_nhwc_kernel(const MaterializedITensorListRef&amp;, int64_t, double, int64_t)::&lt;lambda()&gt;::&lt;lambda()&gt;::&lt;lambda(int64_t, int64_t)&gt; [with bool ReLUFused = false; int64_t = long int]’:<br>
/pytorch/aten/src/ATen/native/quantized/cpu/kernels/QuantizedOpKernels.cpp:123:3:   required from ‘struct at::native::{anonymous}::qcat_nhwc_kernel(const MaterializedITensorListRef&amp;, int64_t, double, int64_t)::&lt;lambda()&gt;::&lt;lambda()&gt; [with bool ReLUFused = false]::&lt;lambda(int64_t, int64_t)&gt;’<br>
/pytorch/aten/src/ATen/native/quantized/cpu/kernels/QuantizedOpKernels.cpp:123:3:   required from ‘at::native::{anonymous}::qcat_nhwc_kernel(const MaterializedITensorListRef&amp;, int64_t, double, int64_t)::&lt;lambda()&gt;::&lt;lambda()&gt; [with bool ReLUFused = false]’<br>
/pytorch/aten/src/ATen/native/quantized/cpu/kernels/QuantizedOpKernels.cpp:123:3:   required from ‘struct at::native::{anonymous}::qcat_nhwc_kernel(const MaterializedITensorListRef&amp;, int64_t, double, int64_t)::&lt;lambda()&gt; [with bool ReLUFused = false]::&lt;lambda()&gt;’<br>
/pytorch/aten/src/ATen/native/quantized/cpu/kernels/QuantizedOpKernels.cpp:123:3:   required from ‘at::native::{anonymous}::qcat_nhwc_kernel(const MaterializedITensorListRef&amp;, int64_t, double, int64_t)::&lt;lambda()&gt; [with bool ReLUFused = false]’<br>
/pytorch/aten/src/ATen/native/quantized/cpu/kernels/QuantizedOpKernels.cpp:123:3:   required from ‘struct at::native::{anonymous}::qcat_nhwc_kernel(const MaterializedITensorListRef&amp;, int64_t, double, int64_t) [with bool ReLUFused = false; at::MaterializedITensorListRef = std::vector&lt;std::reference_wrapper, std::allocator&lt;std::reference_wrapper &gt; &gt;; int64_t = long int]::&lt;lambda()&gt;’<br>
/pytorch/aten/src/ATen/native/quantized/cpu/kernels/QuantizedOpKernels.cpp:123:3:   required from ‘at::Tensor at::native::{anonymous}::qcat_nhwc_kernel(const MaterializedITensorListRef&amp;, int64_t, double, int64_t) [with bool ReLUFused = false; at::MaterializedITensorListRef = std::vector&lt;std::reference_wrapper, std::allocator&lt;std::reference_wrapper &gt; &gt;; int64_t = long int]’<br>
/pytorch/aten/src/ATen/native/quantized/cpu/kernels/QuantizedOpKernels.cpp:4229:1:   required from here<br>
/usr/include/c++/7/array:94:12: note: ‘struct std::array&lt;unsigned char, 32&gt;’ has no user-provided default constructor<br>
struct array<br>
^~~~~<br>
/usr/include/c++/7/array:110:56: note: and the implicitly-defined constructor does not initialize ‘unsigned char std::array&lt;unsigned char, 32&gt;::_M_elems [32]’<br>
typename _AT_Type::_Type                         _M_elems;<br>
^~~~~~~~<br>
/pytorch/aten/src/ATen/native/quantized/cpu/kernels/QuantizedOpKernels.cpp: In instantiation of ‘at::native::{anonymous}::qcat_nhwc_kernel(const MaterializedITensorListRef&amp;, int64_t, double, int64_t)::&lt;lambda()&gt;::&lt;lambda()&gt;::&lt;lambda(int64_t, int64_t)&gt; [with bool ReLUFused = false; int64_t = long int]’:<br>
/pytorch/aten/src/ATen/native/quantized/cpu/kernels/QuantizedOpKernels.cpp:123:3:   required from ‘struct at::native::{anonymous}::qcat_nhwc_kernel(const MaterializedITensorListRef&amp;, int64_t, double, int64_t)::&lt;lambda()&gt;::&lt;lambda()&gt; [with bool ReLUFused = false]::&lt;lambda(int64_t, int64_t)&gt;’<br>
/pytorch/aten/src/ATen/native/quantized/cpu/kernels/QuantizedOpKernels.cpp:123:3:   required from ‘at::native::{anonymous}::qcat_nhwc_kernel(const MaterializedITensorListRef&amp;, int64_t, double, int64_t)::&lt;lambda()&gt;::&lt;lambda()&gt; [with bool ReLUFused = false]’<br>
/pytorch/aten/src/ATen/native/quantized/cpu/kernels/QuantizedOpKernels.cpp:123:3:   required from ‘struct at::native::{anonymous}::qcat_nhwc_kernel(const MaterializedITensorListRef&amp;, int64_t, double, int64_t)::&lt;lambda()&gt; [with bool ReLUFused = false]::&lt;lambda()&gt;’<br>
/pytorch/aten/src/ATen/native/quantized/cpu/kernels/QuantizedOpKernels.cpp:123:3:   required from ‘at::native::{anonymous}::qcat_nhwc_kernel(const MaterializedITensorListRef&amp;, int64_t, double, int64_t)::&lt;lambda()&gt; [with bool ReLUFused = false]’<br>
/pytorch/aten/src/ATen/native/quantized/cpu/kernels/QuantizedOpKernels.cpp:123:3:   required from ‘struct at::native::{anonymous}::qcat_nhwc_kernel(const MaterializedITensorListRef&amp;, int64_t, double, int64_t) [with bool ReLUFused = false; at::MaterializedITensorListRef = std::vector&lt;std::reference_wrapper, std::allocator&lt;std::reference_wrapper &gt; &gt;; int64_t = long int]::&lt;lambda()&gt;’<br>
/pytorch/aten/src/ATen/native/quantized/cpu/kernels/QuantizedOpKernels.cpp:123:3:   required from ‘at::Tensor at::native::{anonymous}::qcat_nhwc_kernel(const MaterializedITensorListRef&amp;, int64_t, double, int64_t) [with bool ReLUFused = false; at::MaterializedITensorListRef = std::vector&lt;std::reference_wrapper, std::allocator&lt;std::reference_wrapper &gt; &gt;; int64_t = long int]’<br>
/pytorch/aten/src/ATen/native/quantized/cpu/kernels/QuantizedOpKernels.cpp:4229:1:   required from here<br>
/usr/include/c++/7/array:94:12: note: ‘struct std::array&lt;int, 8&gt;’ has no user-provided default constructor<br>
struct array<br>
^~~~~<br>
/usr/include/c++/7/array:110:56: note: and the implicitly-defined constructor does not initialize ‘int std::array&lt;int, 8&gt;::_M_elems [8]’<br>
typename _AT_Type::_Type                         _M_elems;<br>
^~~~~~~~<br>
/pytorch/aten/src/ATen/native/quantized/cpu/kernels/QuantizedOpKernels.cpp: In instantiation of ‘at::native::{anonymous}::qcat_nhwc_kernel(const MaterializedITensorListRef&amp;, int64_t, double, int64_t)::&lt;lambda()&gt;::&lt;lambda()&gt;::&lt;lambda(int64_t, int64_t)&gt; [with bool ReLUFused = true; int64_t = long int]’:<br>
/pytorch/aten/src/ATen/native/quantized/cpu/kernels/QuantizedOpKernels.cpp:123:3:   required from ‘struct at::native::{anonymous}::qcat_nhwc_kernel(const MaterializedITensorListRef&amp;, int64_t, double, int64_t)::&lt;lambda()&gt;::&lt;lambda()&gt; [with bool ReLUFused = true]::&lt;lambda(int64_t, int64_t)&gt;’<br>
/pytorch/aten/src/ATen/native/quantized/cpu/kernels/QuantizedOpKernels.cpp:123:3:   required from ‘at::native::{anonymous}::qcat_nhwc_kernel(const MaterializedITensorListRef&amp;, int64_t, double, int64_t)::&lt;lambda()&gt;::&lt;lambda()&gt; [with bool ReLUFused = true]’<br>
/pytorch/aten/src/ATen/native/quantized/cpu/kernels/QuantizedOpKernels.cpp:123:3:   required from ‘struct at::native::{anonymous}::qcat_nhwc_kernel(const MaterializedITensorListRef&amp;, int64_t, double, int64_t)::&lt;lambda()&gt; [with bool ReLUFused = true]::&lt;lambda()&gt;’<br>
/pytorch/aten/src/ATen/native/quantized/cpu/kernels/QuantizedOpKernels.cpp:123:3:   required from ‘at::native::{anonymous}::qcat_nhwc_kernel(const MaterializedITensorListRef&amp;, int64_t, double, int64_t)::&lt;lambda()&gt; [with bool ReLUFused = true]’<br>
/pytorch/aten/src/ATen/native/quantized/cpu/kernels/QuantizedOpKernels.cpp:123:3:   required from ‘struct at::native::{anonymous}::qcat_nhwc_kernel(const MaterializedITensorListRef&amp;, int64_t, double, int64_t) [with bool ReLUFused = true; at::MaterializedITensorListRef = std::vector&lt;std::reference_wrapper, std::allocator&lt;std::reference_wrapper &gt; &gt;; int64_t = long int]::&lt;lambda()&gt;’<br>
/pytorch/aten/src/ATen/native/quantized/cpu/kernels/QuantizedOpKernels.cpp:123:3:   required from ‘at::Tensor at::native::{anonymous}::qcat_nhwc_kernel(const MaterializedITensorListRef&amp;, int64_t, double, int64_t) [with bool ReLUFused = true; at::MaterializedITensorListRef = std::vector&lt;std::reference_wrapper, std::allocator&lt;std::reference_wrapper &gt; &gt;; int64_t = long int]’<br>
/pytorch/aten/src/ATen/native/quantized/cpu/kernels/QuantizedOpKernels.cpp:4230:1:   required from here<br>
/usr/include/c++/7/array:94:12: note: ‘struct std::array&lt;signed char, 32&gt;’ has no user-provided default constructor<br>
struct array<br>
^~~~~<br>
/usr/include/c++/7/array:110:56: note: and the implicitly-defined constructor does not initialize ‘signed char std::array&lt;signed char, 32&gt;::_M_elems [32]’<br>
typename _AT_Type::_Type                         _M_elems;<br>
^~~~~~~~<br>
/pytorch/aten/src/ATen/native/quantized/cpu/kernels/QuantizedOpKernels.cpp: In instantiation of ‘at::native::{anonymous}::qcat_nhwc_kernel(const MaterializedITensorListRef&amp;, int64_t, double, int64_t)::&lt;lambda()&gt;::&lt;lambda()&gt;::&lt;lambda(int64_t, int64_t)&gt; [with bool ReLUFused = true; int64_t = long int]’:<br>
/pytorch/aten/src/ATen/native/quantized/cpu/kernels/QuantizedOpKernels.cpp:123:3:   required from ‘struct at::native::{anonymous}::qcat_nhwc_kernel(const MaterializedITensorListRef&amp;, int64_t, double, int64_t)::&lt;lambda()&gt;::&lt;lambda()&gt; [with bool ReLUFused = true]::&lt;lambda(int64_t, int64_t)&gt;’<br>
/pytorch/aten/src/ATen/native/quantized/cpu/kernels/QuantizedOpKernels.cpp:123:3:   required from ‘at::native::{anonymous}::qcat_nhwc_kernel(const MaterializedITensorListRef&amp;, int64_t, double, int64_t)::&lt;lambda()&gt;::&lt;lambda()&gt; [with bool ReLUFused = true]’<br>
/pytorch/aten/src/ATen/native/quantized/cpu/kernels/QuantizedOpKernels.cpp:123:3:   required from ‘struct at::native::{anonymous}::qcat_nhwc_kernel(const MaterializedITensorListRef&amp;, int64_t, double, int64_t)::&lt;lambda()&gt; [with bool ReLUFused = true]::&lt;lambda()&gt;’<br>
/pytorch/aten/src/ATen/native/quantized/cpu/kernels/QuantizedOpKernels.cpp:123:3:   required from ‘at::native::{anonymous}::qcat_nhwc_kernel(const MaterializedITensorListRef&amp;, int64_t, double, int64_t)::&lt;lambda()&gt; [with bool ReLUFused = true]’<br>
/pytorch/aten/src/ATen/native/quantized/cpu/kernels/QuantizedOpKernels.cpp:123:3:   required from ‘struct at::native::{anonymous}::qcat_nhwc_kernel(const MaterializedITensorListRef&amp;, int64_t, double, int64_t) [with bool ReLUFused = true; at::MaterializedITensorListRef = std::vector&lt;std::reference_wrapper, std::allocator&lt;std::reference_wrapper &gt; &gt;; int64_t = long int]::&lt;lambda()&gt;’<br>
/pytorch/aten/src/ATen/native/quantized/cpu/kernels/QuantizedOpKernels.cpp:123:3:   required from ‘at::Tensor at::native::{anonymous}::qcat_nhwc_kernel(const MaterializedITensorListRef&amp;, int64_t, double, int64_t) [with bool ReLUFused = true; at::MaterializedITensorListRef = std::vector&lt;std::reference_wrapper, std::allocator&lt;std::reference_wrapper &gt; &gt;; int64_t = long int]’<br>
/pytorch/aten/src/ATen/native/quantized/cpu/kernels/QuantizedOpKernels.cpp:4230:1:   required from here<br>
/usr/include/c++/7/array:94:12: note: ‘struct std::array&lt;unsigned char, 32&gt;’ has no user-provided default constructor<br>
struct array<br>
^~~~~<br>
/usr/include/c++/7/array:110:56: note: and the implicitly-defined constructor does not initialize ‘unsigned char std::array&lt;unsigned char, 32&gt;::_M_elems [32]’<br>
typename _AT_Type::_Type                         _M_elems;<br>
^~~~~~~~<br>
/pytorch/aten/src/ATen/native/quantized/cpu/kernels/QuantizedOpKernels.cpp: In instantiation of ‘at::native::{anonymous}::qcat_nhwc_kernel(const MaterializedITensorListRef&amp;, int64_t, double, int64_t)::&lt;lambda()&gt;::&lt;lambda()&gt;::&lt;lambda(int64_t, int64_t)&gt; [with bool ReLUFused = true; int64_t = long int]’:<br>
/pytorch/aten/src/ATen/native/quantized/cpu/kernels/QuantizedOpKernels.cpp:123:3:   required from ‘struct at::native::{anonymous}::qcat_nhwc_kernel(const MaterializedITensorListRef&amp;, int64_t, double, int64_t)::&lt;lambda()&gt;::&lt;lambda()&gt; [with bool ReLUFused = true]::&lt;lambda(int64_t, int64_t)&gt;’<br>
/pytorch/aten/src/ATen/native/quantized/cpu/kernels/QuantizedOpKernels.cpp:123:3:   required from ‘at::native::{anonymous}::qcat_nhwc_kernel(const MaterializedITensorListRef&amp;, int64_t, double, int64_t)::&lt;lambda()&gt;::&lt;lambda()&gt; [with bool ReLUFused = true]’<br>
/pytorch/aten/src/ATen/native/quantized/cpu/kernels/QuantizedOpKernels.cpp:123:3:   required from ‘struct at::native::{anonymous}::qcat_nhwc_kernel(const MaterializedITensorListRef&amp;, int64_t, double, int64_t)::&lt;lambda()&gt; [with bool ReLUFused = true]::&lt;lambda()&gt;’<br>
/pytorch/aten/src/ATen/native/quantized/cpu/kernels/QuantizedOpKernels.cpp:123:3:   required from ‘at::native::{anonymous}::qcat_nhwc_kernel(const MaterializedITensorListRef&amp;, int64_t, double, int64_t)::&lt;lambda()&gt; [with bool ReLUFused = true]’<br>
/pytorch/aten/src/ATen/native/quantized/cpu/kernels/QuantizedOpKernels.cpp:123:3:   required from ‘struct at::native::{anonymous}::qcat_nhwc_kernel(const MaterializedITensorListRef&amp;, int64_t, double, int64_t) [with bool ReLUFused = true; at::MaterializedITensorListRef = std::vector&lt;std::reference_wrapper, std::allocator&lt;std::reference_wrapper &gt; &gt;; int64_t = long int]::&lt;lambda()&gt;’<br>
/pytorch/aten/src/ATen/native/quantized/cpu/kernels/QuantizedOpKernels.cpp:123:3:   required from ‘at::Tensor at::native::{anonymous}::qcat_nhwc_kernel(const MaterializedITensorListRef&amp;, int64_t, double, int64_t) [with bool ReLUFused = true; at::MaterializedITensorListRef = std::vector&lt;std::reference_wrapper, std::allocator&lt;std::reference_wrapper &gt; &gt;; int64_t = long int]’<br>
/pytorch/aten/src/ATen/native/quantized/cpu/kernels/QuantizedOpKernels.cpp:4230:1:   required from here<br>
/usr/include/c++/7/array:94:12: note: ‘struct std::array&lt;int, 8&gt;’ has no user-provided default constructor<br>
struct array<br>
^~~~~<br>
/usr/include/c++/7/array:110:56: note: and the implicitly-defined constructor does not initialize ‘int std::array&lt;int, 8&gt;::_M_elems [8]’<br>
typename _AT_Type::_Type                         _M_elems;</p>
<pre><code>                                                    ^~~~~~~~
</code></pre>
<p>[547/874] Building CXX object test_tensorexpr/CMakeFiles/test_tensorexpr.dir/test_ops.cpp.o<br>
FAILED: test_tensorexpr/CMakeFiles/test_tensorexpr.dir/test_ops.cpp.o<br>
/usr/bin/c++ -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 -DONNXIFI_ENABLE_EXT=1 -DONNX_ML=1 -DONNX_NAMESPACE=onnx_torch -DUSE_C10D_GLOO -DUSE_DISTRIBUTED -DUSE_EXTERNAL_MZCRC -DUSE_GTEST -DUSE_RPC -DUSE_TENSORPIPE -D_FILE_OFFSET_BITS=64 -I/pytorch/build/aten/src -I/pytorch/aten/src -I/pytorch/build -I/pytorch -I/pytorch/cmake/…/third_party/benchmark/include -I/pytorch/third_party/onnx -I/pytorch/build/third_party/onnx -I/pytorch/third_party/foxi -I/pytorch/build/third_party/foxi -I/pytorch/build/caffe2/…/aten/src -I/pytorch/torch/csrc/api -I/pytorch/torch/csrc/api/include -I/pytorch/c10/… -I/pytorch/third_party/pthreadpool/include -isystem /pytorch/build/third_party/gloo -isystem /pytorch/cmake/…/third_party/gloo -isystem /pytorch/cmake/…/third_party/googletest/googlemock/include -isystem /pytorch/cmake/…/third_party/googletest/googletest/include -isystem /pytorch/third_party/protobuf/src -isystem /root/miniconda3/envs/fr/include -isystem /pytorch/third_party/gemmlowp -isystem /pytorch/third_party/neon2sse -isystem /pytorch/third_party/XNNPACK/include -isystem /pytorch/third_party/ittapi/include -isystem /pytorch/cmake/…/third_party/eigen -isystem /pytorch/third_party/ideep/mkl-dnn/third_party/oneDNN/include -isystem /pytorch/third_party/ideep/include -isystem /pytorch/third_party/ideep/mkl-dnn/include -isystem /pytorch/third_party/googletest/googletest/include -isystem /pytorch/third_party/googletest/googletest -Wno-deprecated -fvisibility-inlines-hidden -DUSE_PTHREADPOOL -fopenmp -DNDEBUG -DUSE_KINETO -DLIBKINETO_NOCUPTI -DLIBKINETO_NOROCTRACER -DUSE_FBGEMM -DUSE_QNNPACK -DUSE_PYTORCH_QNNPACK -DUSE_XNNPACK -DSYMBOLICATE_MOBILE_DEBUG_HANDLE -DEDGE_PROFILER_USE_KINETO -O2 -fPIC -Wall -Wextra -Werror=return-type -Werror=non-virtual-dtor -Werror=bool-operation -Wnarrowing -Wno-missing-field-initializers -Wno-type-limits -Wno-array-bounds -Wno-unknown-pragmas -Wunused-local-typedefs -Wno-unused-parameter -Wno-unused-function -Wno-unused-result -Wno-strict-overflow -Wno-strict-aliasing -Wno-error=deprecated-declarations -Wno-stringop-overflow -Wno-psabi -Wno-error=pedantic -Wno-error=redundant-decls -Wno-error=old-style-cast -fdiagnostics-color=always -faligned-new -Wno-unused-but-set-variable -Wno-maybe-uninitialized -fno-math-errno -fno-trapping-math -Werror=format -Wno-stringop-overflow -DHAVE_AVX2_CPU_DEFINITION -O3 -DNDEBUG -DNDEBUG -fPIE -DCAFFE2_USE_GLOO -DTH_HAVE_THREAD -Wno-unused-variable -pthread -std=gnu++1z -MD -MT test_tensorexpr/CMakeFiles/test_tensorexpr.dir/test_ops.cpp.o -MF test_tensorexpr/CMakeFiles/test_tensorexpr.dir/test_ops.cpp.o.d -o test_tensorexpr/CMakeFiles/test_tensorexpr.dir/test_ops.cpp.o -c /pytorch/test/cpp/tensorexpr/test_ops.cpp<br>
c++: internal compiler error: Killed (program cc1plus)<br>
Please submit a full bug report,<br>
with preprocessed source if appropriate.<br>
See &lt;file:///usr/share/doc/gcc-7/README.Bugs&gt; for instructions.</p>