Libtorch is slower on Windows. Also, can't compile with MKLDNN

nickoth2: <p>Hi,</p>
<p>This is my first time posting so apologize if duplicate.</p>
<p>I am having an issue where my model is running much slower in windows than in linux. I believe this has to do with inclusion of MKLDNN when building. When I try to build in windows I am getting the following.</p>
<p>– Building version 1.4.0a0+7f73f1d<br>
cmake -GNinja -DBUILD_PYTHON=True -DBUILD_TEST=True -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=C:\pytorch\torch -DCMAKE_PREFIX_PATH=C:\pytorch1.4\Lib\site-packages -DNUMPY_INCLUDE_DIR=C:\pytorch1.4\lib\site-packages\numpy\core\include -DPYTHON_EXECUTABLE=C:\pytorch1.4\python.exe -DPYTHON_INCLUDE_DIR=C:\pytorch1.4\include -DPYTHON_LIBRARY=C:\pytorch1.4/libs/python37.lib -DTORCH_BUILD_VERSION=1.4.0a0+7f73f1d -DUSE_NUMPY=True C:\pytorch<br>
cmake --build . --target install --config Release – -j 48<br>
Traceback (most recent call last):<br>
File “setup.py”, line 755, in <br>
build_deps()<br>
File “setup.py”, line 316, in build_deps<br>
cmake=cmake)<br>
File “C:\pytorch\tools\build_pytorch_libs.py”, line 62, in build_caffe2<br>
cmake.build(my_env)<br>
File “C:\pytorch\tools\setup_helpers\cmake.py”, line 335, in build<br>
self.run(build_args, my_env)<br>
File “C:\pytorch\tools\setup_helpers\cmake.py”, line 141, in run<br>
check_call(command, cwd=self.build_dir, env=env)<br>
File “C:\pytorch1.4\lib\subprocess.py”, line 363, in check_call<br>
raise CalledProcessError(retcode, cmd)<br>
subprocess.CalledProcessError: Command ‘[‘cmake’, ‘–build’, ‘.’, ‘–target’, ‘install’, ‘–config’, ‘Release’, ‘–’, ‘-j’, ‘48’]’ returned non-zero exit status 1.<br>
(env_pytorch1.4)</p>
<p>Any suggestions on how to resolve this? Thanks for your help in advance.</p>
<p>-Nick</p>

peterjc123: <p>The error message is rather useless. Would you please post the full log here? BTW, we added MKLDNN support for Windows in 1.5.0 so you may need to select master as the target branch. What’s more, you may try out this <a href="https://github.com/pytorch/pytorch/issues/20156#issuecomment-490227743" rel="nofollow noopener">one</a>.</p>

nickoth2: <p>I’ve tried building the latest and it seems to be completing further. It doesn’t compile every time it seems but generally it can make it to end of caffe2. I am getting the following error when I try to import torch.</p>
<p><div class="lightbox-wrapper"><a class="lightbox" href="https://discuss.pytorch.org/uploads/default/original/3X/3/9/39432d25810dfed5e5b3cd2d42ce809ddff094b8.png" data-download-href="https://discuss.pytorch.org/uploads/default/39432d25810dfed5e5b3cd2d42ce809ddff094b8" title="importing torch"><img src="https://discuss.pytorch.org/uploads/default/original/3X/3/9/39432d25810dfed5e5b3cd2d42ce809ddff094b8.png" alt="importing torch" data-base62-sha1="8az8I2w7wjxM0MLrtz9sk50uHQ4" width="690" height="206" data-dominant-color="F5F7F6"><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">importing torch</span><span class="informations">1118×334 12.3 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>
<p>The following is the kdiff between torch/lib in a working (python installed version) vs master installed via python setup.py install.</p>
<p><div class="lightbox-wrapper"><a class="lightbox" href="https://discuss.pytorch.org/uploads/default/original/3X/b/4/b4465942b84f49f69f1d6412d428850046c75d83.png" data-download-href="https://discuss.pytorch.org/uploads/default/b4465942b84f49f69f1d6412d428850046c75d83" title="kdiff_diffs_pip_vs_built"><img src="https://discuss.pytorch.org/uploads/default/original/3X/b/4/b4465942b84f49f69f1d6412d428850046c75d83.png" alt="kdiff_diffs_pip_vs_built" data-base62-sha1="pIMFibjGiPO7TMiT2eiq61J0vbJ" width="376" height="500" data-dominant-color="E4E5E0"><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">kdiff_diffs_pip_vs_built</span><span class="informations">437×581 7.78 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>
<p>would appreciate any advice.</p>
<p>Thanks,<br>
Nick</p>

nickoth2: <p>Also, is there a reason why the 1.4.0 and 1.4.0a0 would be failing. I am attaching a porting of the logs from earlier (not sure how to attach the entire log).</p>
<p>Thanks,<br>
Nick</p>
<h2>– pytorch is compiling with OpenMP.<br>
OpenMP CXX_FLAGS: -openmp:experimental.<br>
OpenMP libraries: .<br>
– Caffe2 is compiling with OpenMP.<br>
OpenMP CXX_FLAGS: -openmp:experimental.<br>
OpenMP libraries: .<br>
– Using ATen parallel backend: OMP<br>
– Using Lib/site-packages as python relative installation path</h2>
<h2>– ******** Summary ********<br>
– General:<br>
–   CMake version         : 3.16.4<br>
–   CMake command         : C:/Program Files/CMake/bin/cmake.exe<br>
–   System                : Windows<br>
–   C++ compiler          : C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.24.28314/bin/Hostx64/x64/cl.exe<br>
–   C++ compiler id       : MSVC<br>
–   C++ compiler version  : 19.24.28316.0<br>
–   BLAS                  : MKL<br>
–   CXX flags             : /DWIN32 /D_WINDOWS /GR  /w /EHa /MP /bigobj -openmp:experimental<br>
–   Build type            : Release<br>
–   Compile definitions   : ONNX_ML=1;ONNX_NAMESPACE=onnx_torch;_CRT_SECURE_NO_DEPRECATE=1;WIN32_LEAN_AND_MEAN<br>
–   CMAKE_PREFIX_PATH     : C:\PtModelEnv\anaconda\envs\env_pytorch1.4\Lib\site-packages;C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.1<br>
–   CMAKE_INSTALL_PREFIX  : C:/PtModelEnv/libs/pytorch/pytorch/torch</h2>
<p>–   TORCH_VERSION         : 1.4.0<br>
–   CAFFE2_VERSION        : 1.4.0<br>
–   BUILD_CAFFE2_MOBILE   : ON<br>
–   USE_STATIC_DISPATCH   : OFF<br>
–   BUILD_BINARY          : OFF<br>
–   BUILD_CUSTOM_PROTOBUF : ON<br>
–     Link local protobuf : ON<br>
–   BUILD_DOCS            : OFF<br>
–   BUILD_PYTHON          : True<br>
–     Python version      : 3.7.6<br>
–     Python executable   : C:/PtModelEnv/anaconda/envs/env_pytorch1.4/python.exe<br>
–     Pythonlibs version  : 3.7.6<br>
–     Python library      : C:/PtModelEnv/anaconda/envs/env_pytorch1.4/libs/python37.lib<br>
–     Python includes     : C:/PtModelEnv/anaconda/envs/env_pytorch1.4/include<br>
–     Python site-packages: Lib/site-packages<br>
–   BUILD_CAFFE2_OPS      : OFF<br>
–   BUILD_SHARED_LIBS     : ON<br>
–   BUILD_TEST            : True<br>
–   BUILD_JNI             : OFF<br>
–   INTERN_BUILD_MOBILE   :<br>
–   USE_ASAN              : OFF<br>
–   USE_CUDA              : ON<br>
–     CUDA static link    : OFF<br>
–     USE_CUDNN           : OFF<br>
–     CUDA version        : 10.1<br>
–     CUDA root directory : C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.1<br>
–     CUDA library        : C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.1/lib/x64/cuda.lib<br>
–     cudart library      : C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.1/lib/x64/cudart_static.lib<br>
–     cublas library      : C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.1/lib/x64/cublas.lib<br>
–     cufft library       : C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.1/lib/x64/cufft.lib<br>
–     curand library      : C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.1/lib/x64/curand.lib<br>
–     nvrtc               : C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.1/lib/x64/nvrtc.lib<br>
–     CUDA include path   : C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.1/include<br>
–     NVCC executable     : C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.1/bin/nvcc.exe<br>
–     CUDA host compiler  : C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.24.28314/bin/Hostx64/x64/cl.exe<br>
–     USE_TENSORRT        : OFF<br>
–   USE_ROCM              : OFF<br>
–   USE_EIGEN_FOR_BLAS    : ON<br>
–   USE_FBGEMM            : OFF<br>
–   USE_FFMPEG            : OFF<br>
–   USE_GFLAGS            : OFF<br>
–   USE_GLOG              : OFF<br>
–   USE_LEVELDB           : OFF<br>
–   USE_LITE_PROTO        : OFF<br>
–   USE_LMDB              : OFF<br>
–   USE_METAL             : OFF<br>
–   USE_MKL               : OFF<br>
–   USE_MKLDNN            : OFF<br>
–   USE_NCCL              : OFF<br>
–   USE_NNPACK            : OFF<br>
–   USE_NUMPY             : ON<br>
–   USE_OBSERVERS         : ON<br>
–   USE_OPENCL            : OFF<br>
–   USE_OPENCV            : OFF<br>
–   USE_OPENMP            : ON<br>
–   USE_TBB               : OFF<br>
–   USE_PROF              : OFF<br>
–   USE_QNNPACK           : OFF<br>
–   USE_REDIS             : OFF<br>
–   USE_ROCKSDB           : OFF<br>
–   USE_ZMQ               : OFF<br>
–   USE_DISTRIBUTED       : OFF<br>
–   BUILD_NAMEDTENSOR   : OFF<br>
–   Public Dependencies  : Threads::Threads<br>
–   Private Dependencies : cpuinfo;fp16;foxi_loader<br>
– Configuring done<br>
– Generating done<br>
– Build files have been written to: C:/PtModelEnv/libs/pytorch/pytorch/build<br>
[1/2208] Building CXX object third_party\protobuf\cmake\CMakeFiles\libprotoc.dir__\src\google\protobuf\compiler\js\well_known_types_embed.cc.obj</p>
<p>.<br>
.<br>
.<br>
[1492/2208] Building CXX object caffe2\CMakeFiles\torch.dir_<em>\aten\src\ATen\native\quantized\cpu\kernels\QuantizedOpKernels.cpp.AVX.cpp.obj<br>
[1493/2208] Building CXX object caffe2\CMakeFiles\torch.dir_</em>\aten\src\TH\THTensorRandom.cpp.obj<br>
[1494/2208] Building CXX object caffe2\CMakeFiles\torch.dir_<em>\aten\src\ATen\TypeDefault.cpp.obj<br>
[1495/2208] Building CXX object caffe2\CMakeFiles\torch.dir_</em>\aten\src\ATen\native\cpu\layer_norm_kernel.cpp.DEFAULT.cpp.obj<br>
[1496/2208] Building CXX object caffe2\CMakeFiles\torch.dir_<em>\aten\src\ATen\native\cpu\DistanceOpsKernel.cpp.AVX.cpp.obj<br>
[1497/2208] Building CXX object caffe2\CMakeFiles\torch.dir_</em>\aten\src\ATen\native\cpu\PointwiseOpsKernel.cpp.AVX2.cpp.obj<br>
[1498/2208] Building CXX object caffe2\CMakeFiles\torch.dir_<em>\aten\src\ATen\native\cpu\Activation.cpp.AVX.cpp.obj<br>
[1499/2208] Building CXX object caffe2\CMakeFiles\torch.dir_</em>\aten\src\ATen\native\cpu\TensorCompareKernel.cpp.DEFAULT.cpp.obj<br>
[1500/2208] Building CXX object caffe2\CMakeFiles\torch.dir_<em>\aten\src\ATen\native\cpu\CopyKernel.cpp.AVX2.cpp.obj<br>
[1501/2208] Building CXX object caffe2\CMakeFiles\torch.dir\core\event.cc.obj<br>
[1502/2208] Building CXX object caffe2\CMakeFiles\torch.dir_</em>\aten\src\ATen\native\cpu\FillKernel.cpp.AVX.cpp.obj<br>
[1503/2208] Building CXX object caffe2\CMakeFiles\torch.dir\core\context_base.cc.obj<br>
[1504/2208] Building CXX object caffe2\CMakeFiles\torch.dir\core\context.cc.obj<br>
[1505/2208] Building CXX object caffe2\CMakeFiles\torch.dir_<em>\aten\src\TH\THTensorMoreMath.cpp.obj<br>
C:\PtModelEnv\libs\pytorch\pytorch\aten\src\TH\generic\THTensorMoreMath.cpp(1013) : info C5002: Omp simd loop not vectorized due to reason ‘1200’<br>
C:\PtModelEnv\libs\pytorch\pytorch\aten\src\TH\generic\THTensorMoreMath.cpp(1014) : info C5002: Omp simd loop not vectorized due to reason ‘1200’<br>
C:\PtModelEnv\libs\pytorch\pytorch\aten\src\TH\generic\THTensorMoreMath.cpp(1013) : info C5002: Omp simd loop not vectorized due to reason ‘1200’<br>
C:\PtModelEnv\libs\pytorch\pytorch\aten\src\TH\generic\THTensorMoreMath.cpp(1014) : info C5002: Omp simd loop not vectorized due to reason ‘1200’<br>
C:\PtModelEnv\libs\pytorch\pytorch\aten\src\TH\generic\THTensorMoreMath.cpp(987) : info C5002: Omp simd loop not vectorized due to reason ‘1200’<br>
C:\PtModelEnv\libs\pytorch\pytorch\aten\src\TH\generic\THTensorMoreMath.cpp(998) : info C5002: Omp simd loop not vectorized due to reason ‘1200’<br>
C:\PtModelEnv\libs\pytorch\pytorch\aten\src\TH\generic\THTensorMoreMath.cpp(987) : info C5002: Omp simd loop not vectorized due to reason ‘1200’<br>
C:\PtModelEnv\libs\pytorch\pytorch\aten\src\TH\generic\THTensorMoreMath.cpp(994) : info C5002: Omp simd loop not vectorized due to reason ‘1200’<br>
C:\PtModelEnv\libs\pytorch\pytorch\aten\src\TH\generic\THTensorMoreMath.cpp(987) : info C5002: Omp simd loop not vectorized due to reason ‘1200’<br>
C:\PtModelEnv\libs\pytorch\pytorch\aten\src\TH\generic\THTensorMoreMath.cpp(994) : info C5002: Omp simd loop not vectorized due to reason ‘1200’<br>
C:\PtModelEnv\libs\pytorch\pytorch\aten\src\TH\generic\THTensorMoreMath.cpp(987) : info C5002: Omp simd loop not vectorized due to reason ‘1200’<br>
C:\PtModelEnv\libs\pytorch\pytorch\aten\src\TH\generic\THTensorMoreMath.cpp(994) : info C5002: Omp simd loop not vectorized due to reason ‘1200’<br>
C:\PtModelEnv\libs\pytorch\pytorch\aten\src\TH\generic\THTensorMoreMath.cpp(987) : info C5002: Omp simd loop not vectorized due to reason ‘1200’<br>
C:\PtModelEnv\libs\pytorch\pytorch\aten\src\TH\generic\THTensorMoreMath.cpp(990) : info C5002: Omp simd loop not vectorized due to reason ‘1200’<br>
[1506/2208] Building CXX object caffe2\CMakeFiles\torch.dir_</em>\aten\src\ATen\native\cpu\CopyKernel.cpp.AVX.cpp.obj<br>
[1507/2208] Building CXX object caffe2\CMakeFiles\torch.dir_<em>\aten\src\ATen\native\cpu\SortingKernel.cpp.DEFAULT.cpp.obj<br>
[1508/2208] Building CXX object caffe2\CMakeFiles\torch.dir_</em>\aten\src\ATen\native\cpu\PowKernel.cpp.DEFAULT.cpp.obj<br>
[1509/2208] Building CXX object caffe2\CMakeFiles\torch.dir_<em>\aten\src\ATen\native\cpu\SoftMaxKernel.cpp.DEFAULT.cpp.obj<br>
[1510/2208] Building CXX object caffe2\CMakeFiles\torch.dir_</em>\aten\src\ATen\native\cpu\CopyKernel.cpp.DEFAULT.cpp.obj<br>
[1511/2208] Building CXX object caffe2\CMakeFiles\torch.dir_<em>\aten\src\ATen\native\cpu\IndexKernel.cpp.DEFAULT.cpp.obj<br>
[1512/2208] Building CXX object caffe2\CMakeFiles\torch.dir_</em>\aten\src\ATen\native\cpu\CrossKernel.cpp.DEFAULT.cpp.obj<br>
[1513/2208] Building CXX object caffe2\CMakeFiles\torch.dir_<em>\aten\src\ATen\native\cpu\BinaryOpsKernel.cpp.AVX.cpp.obj<br>
[1514/2208] Building CXX object caffe2\CMakeFiles\torch.dir_</em>\aten\src\ATen\native\cpu\DepthwiseConvKernel.cpp.DEFAULT.cpp.obj<br>
[1515/2208] Building CXX object caffe2\CMakeFiles\torch.dir_<em>\aten\src\TH\THTensorEvenMoreMath.cpp.obj<br>
C:\PtModelEnv\libs\pytorch\pytorch\aten\src\TH\generic\THTensorEvenMoreMath.cpp(197) : info C5002: Omp simd loop not vectorized due to reason ‘1200’<br>
C:\PtModelEnv\libs\pytorch\pytorch\aten\src\TH\generic\THTensorEvenMoreMath.cpp(279) : info C5002: Omp simd loop not vectorized due to reason ‘1200’<br>
C:\PtModelEnv\libs\pytorch\pytorch\aten\src\TH\generic\THTensorEvenMoreMath.cpp(292) : info C5002: Omp simd loop not vectorized due to reason ‘1200’<br>
C:\PtModelEnv\libs\pytorch\pytorch\aten\src\TH\generic\THTensorEvenMoreMath.cpp(197) : info C5002: Omp simd loop not vectorized due to reason ‘1200’<br>
C:\PtModelEnv\libs\pytorch\pytorch\aten\src\TH\generic\THTensorEvenMoreMath.cpp(279) : info C5002: Omp simd loop not vectorized due to reason ‘1200’<br>
C:\PtModelEnv\libs\pytorch\pytorch\aten\src\TH\generic\THTensorEvenMoreMath.cpp(292) : info C5002: Omp simd loop not vectorized due to reason ‘1200’<br>
C:\PtModelEnv\libs\pytorch\pytorch\aten\src\TH\generic\THTensorEvenMoreMath.cpp(846) : info C5002: Omp simd loop not vectorized due to reason ‘1200’<br>
C:\PtModelEnv\libs\pytorch\pytorch\aten\src\TH\generic\THTensorEvenMoreMath.cpp(882) : info C5002: Omp simd loop not vectorized due to reason ‘1200’<br>
C:\PtModelEnv\libs\pytorch\pytorch\aten\src\TH\generic\THTensorEvenMoreMath.cpp(197) : info C5002: Omp simd loop not vectorized due to reason ‘1200’<br>
C:\PtModelEnv\libs\pytorch\pytorch\aten\src\TH\generic\THTensorEvenMoreMath.cpp(279) : info C5002: Omp simd loop not vectorized due to reason ‘1200’<br>
C:\PtModelEnv\libs\pytorch\pytorch\aten\src\TH\generic\THTensorEvenMoreMath.cpp(292) : info C5002: Omp simd loop not vectorized due to reason ‘1200’<br>
C:\PtModelEnv\libs\pytorch\pytorch\aten\src\TH\generic\THTensorEvenMoreMath.cpp(329) : info C5002: Omp simd loop not vectorized due to reason ‘1200’<br>
C:\PtModelEnv\libs\pytorch\pytorch\aten\src\TH\generic\THTensorEvenMoreMath.cpp(778) : info C5002: Omp simd loop not vectorized due to reason ‘1200’<br>
C:\PtModelEnv\libs\pytorch\pytorch\aten\src\TH\generic\THTensorEvenMoreMath.cpp(816) : info C5002: Omp simd loop not vectorized due to reason ‘1200’<br>
C:\PtModelEnv\libs\pytorch\pytorch\aten\src\TH\generic\THTensorEvenMoreMath.cpp(848) : info C5002: Omp simd loop not vectorized due to reason ‘1200’<br>
C:\PtModelEnv\libs\pytorch\pytorch\aten\src\TH\generic\THTensorEvenMoreMath.cpp(197) : info C5002: Omp simd loop not vectorized due to reason ‘1200’<br>
C:\PtModelEnv\libs\pytorch\pytorch\aten\src\TH\generic\THTensorEvenMoreMath.cpp(279) : info C5002: Omp simd loop not vectorized due to reason ‘1200’<br>
C:\PtModelEnv\libs\pytorch\pytorch\aten\src\TH\generic\THTensorEvenMoreMath.cpp(292) : info C5002: Omp simd loop not vectorized due to reason ‘1200’<br>
C:\PtModelEnv\libs\pytorch\pytorch\aten\src\TH\generic\THTensorEvenMoreMath.cpp(329) : info C5002: Omp simd loop not vectorized due to reason ‘1200’<br>
C:\PtModelEnv\libs\pytorch\pytorch\aten\src\TH\generic\THTensorEvenMoreMath.cpp(780) : info C5002: Omp simd loop not vectorized due to reason ‘1200’<br>
C:\PtModelEnv\libs\pytorch\pytorch\aten\src\TH\generic\THTensorEvenMoreMath.cpp(818) : info C5002: Omp simd loop not vectorized due to reason ‘1200’<br>
C:\PtModelEnv\libs\pytorch\pytorch\aten\src\TH\generic\THTensorEvenMoreMath.cpp(848) : info C5002: Omp simd loop not vectorized due to reason ‘1200’<br>
C:\PtModelEnv\libs\pytorch\pytorch\aten\src\TH\generic\THTensorEvenMoreMath.cpp(197) : info C5002: Omp simd loop not vectorized due to reason ‘1200’<br>
C:\PtModelEnv\libs\pytorch\pytorch\aten\src\TH\generic\THTensorEvenMoreMath.cpp(279) : info C5002: Omp simd loop not vectorized due to reason ‘1200’<br>
C:\PtModelEnv\libs\pytorch\pytorch\aten\src\TH\generic\THTensorEvenMoreMath.cpp(292) : info C5002: Omp simd loop not vectorized due to reason ‘1200’<br>
C:\PtModelEnv\libs\pytorch\pytorch\aten\src\TH\generic\THTensorEvenMoreMath.cpp(329) : info C5002: Omp simd loop not vectorized due to reason ‘1200’<br>
C:\PtModelEnv\libs\pytorch\pytorch\aten\src\TH\generic\THTensorEvenMoreMath.cpp(780) : info C5002: Omp simd loop not vectorized due to reason ‘1200’<br>
C:\PtModelEnv\libs\pytorch\pytorch\aten\src\TH\generic\THTensorEvenMoreMath.cpp(818) : info C5002: Omp simd loop not vectorized due to reason ‘1200’<br>
C:\PtModelEnv\libs\pytorch\pytorch\aten\src\TH\generic\THTensorEvenMoreMath.cpp(848) : info C5002: Omp simd loop not vectorized due to reason ‘1200’<br>
C:\PtModelEnv\libs\pytorch\pytorch\aten\src\TH\generic\THTensorEvenMoreMath.cpp(197) : info C5002: Omp simd loop not vectorized due to reason ‘1200’<br>
C:\PtModelEnv\libs\pytorch\pytorch\aten\src\TH\generic\THTensorEvenMoreMath.cpp(279) : info C5002: Omp simd loop not vectorized due to reason ‘1200’<br>
C:\PtModelEnv\libs\pytorch\pytorch\aten\src\TH\generic\THTensorEvenMoreMath.cpp(292) : info C5002: Omp simd loop not vectorized due to reason ‘1200’<br>
C:\PtModelEnv\libs\pytorch\pytorch\aten\src\TH\generic\THTensorEvenMoreMath.cpp(329) : info C5002: Omp simd loop not vectorized due to reason ‘1200’<br>
C:\PtModelEnv\libs\pytorch\pytorch\aten\src\TH\generic\THTensorEvenMoreMath.cpp(780) : info C5002: Omp simd loop not vectorized due to reason ‘1200’<br>
C:\PtModelEnv\libs\pytorch\pytorch\aten\src\TH\generic\THTensorEvenMoreMath.cpp(818) : info C5002: Omp simd loop not vectorized due to reason ‘1200’<br>
C:\PtModelEnv\libs\pytorch\pytorch\aten\src\TH\generic\THTensorEvenMoreMath.cpp(848) : info C5002: Omp simd loop not vectorized due to reason ‘1200’<br>
C:\PtModelEnv\libs\pytorch\pytorch\aten\src\TH\generic\THTensorEvenMoreMath.cpp(292) : info C5002: Omp simd loop not vectorized due to reason ‘1200’<br>
C:\PtModelEnv\libs\pytorch\pytorch\aten\src\TH\generic\THTensorEvenMoreMath.cpp(279) : info C5002: Omp simd loop not vectorized due to reason ‘1200’<br>
C:\PtModelEnv\libs\pytorch\pytorch\aten\src\TH\generic\THTensorEvenMoreMath.cpp(197) : info C5002: Omp simd loop not vectorized due to reason ‘1200’<br>
C:\PtModelEnv\libs\pytorch\pytorch\aten\src\TH\generic\THTensorEvenMoreMath.cpp(329) : info C5002: Omp simd loop not vectorized due to reason ‘1200’<br>
C:\PtModelEnv\libs\pytorch\pytorch\aten\src\TH\generic\THTensorEvenMoreMath.cpp(780) : info C5002: Omp simd loop not vectorized due to reason ‘1200’<br>
C:\PtModelEnv\libs\pytorch\pytorch\aten\src\TH\generic\THTensorEvenMoreMath.cpp(818) : info C5002: Omp simd loop not vectorized due to reason ‘1200’<br>
C:\PtModelEnv\libs\pytorch\pytorch\aten\src\TH\generic\THTensorEvenMoreMath.cpp(848) : info C5002: Omp simd loop not vectorized due to reason ‘1200’<br>
C:\PtModelEnv\libs\pytorch\pytorch\aten\src\TH\generic\THTensorEvenMoreMath.cpp(197) : info C5002: Omp simd loop not vectorized due to reason ‘1200’<br>
C:\PtModelEnv\libs\pytorch\pytorch\aten\src\TH\generic\THTensorEvenMoreMath.cpp(329) : info C5002: Omp simd loop not vectorized due to reason ‘1200’<br>
C:\PtModelEnv\libs\pytorch\pytorch\aten\src\TH\generic\THTensorEvenMoreMath.cpp(197) : info C5002: Omp simd loop not vectorized due to reason ‘1200’<br>
C:\PtModelEnv\libs\pytorch\pytorch\aten\src\TH\generic\THTensorEvenMoreMath.cpp(882) : info C5002: Omp simd loop not vectorized due to reason ‘1200’<br>
C:\PtModelEnv\libs\pytorch\pytorch\aten\src\TH\generic\THTensorEvenMoreMath.cpp(846) : info C5002: Omp simd loop not vectorized due to reason ‘1200’<br>
C:\PtModelEnv\libs\pytorch\pytorch\aten\src\TH\generic\THTensorEvenMoreMath.cpp(886) : info C5002: Omp simd loop not vectorized due to reason ‘1200’<br>
C:\PtModelEnv\libs\pytorch\pytorch\aten\src\TH\generic\THTensorEvenMoreMath.cpp(886) : info C5002: Omp simd loop not vectorized due to reason ‘1200’<br>
C:\PtModelEnv\libs\pytorch\pytorch\aten\src\TH\generic\THTensorEvenMoreMath.cpp(886) : info C5002: Omp simd loop not vectorized due to reason ‘1200’<br>
C:\PtModelEnv\libs\pytorch\pytorch\aten\src\TH\generic\THTensorEvenMoreMath.cpp(886) : info C5002: Omp simd loop not vectorized due to reason ‘1200’<br>
C:\PtModelEnv\libs\pytorch\pytorch\aten\src\TH\generic\THTensorEvenMoreMath.cpp(886) : info C5002: Omp simd loop not vectorized due to reason ‘1200’<br>
C:\PtModelEnv\libs\pytorch\pytorch\aten\src\TH\generic\THTensorEvenMoreMath.cpp(279) : info C5002: Omp simd loop not vectorized due to reason ‘1200’<br>
C:\PtModelEnv\libs\pytorch\pytorch\aten\src\TH\generic\THTensorEvenMoreMath.cpp(292) : info C5002: Omp simd loop not vectorized due to reason ‘1200’<br>
[1516/2208] Building CXX object caffe2\CMakeFiles\torch.dir_</em>\aten\src\ATen\native\cpu\Unfold2d.cpp.DEFAULT.cpp.obj<br>
[1517/2208] Building CXX object caffe2\CMakeFiles\torch.dir_<em>\aten\src\ATen\native\cpu\PointwiseOpsKernel.cpp.DEFAULT.cpp.obj<br>
[1518/2208] Building CXX object caffe2\CMakeFiles\torch.dir_</em>\aten\src\ATen\native\cpu\UnaryOpsKernel.cpp.AVX2.cpp.obj<br>
[1519/2208] Building CXX object caffe2\CMakeFiles\torch.dir_<em>\aten\src\ATen\native\cpu\DistanceOpsKernel.cpp.DEFAULT.cpp.obj<br>
[1520/2208] Building CXX object caffe2\CMakeFiles\torch.dir_</em>\aten\src\ATen\native\cpu\LerpKernel.cpp.DEFAULT.cpp.obj<br>
[1521/2208] Building CXX object caffe2\CMakeFiles\torch.dir_<em>\aten\src\ATen\native\cpu\ReduceOpsKernel.cpp.DEFAULT.cpp.obj<br>
[1522/2208] Building CXX object caffe2\CMakeFiles\torch.dir_</em>\aten\src\ATen\native\cpu\MultinomialKernel.cpp.DEFAULT.cpp.obj<br>
[1523/2208] Building CXX object caffe2\CMakeFiles\torch.dir_<em>\aten\src\ATen\native\cpu\FillKernel.cpp.DEFAULT.cpp.obj<br>
[1524/2208] Building CXX object caffe2\CMakeFiles\torch.dir\core\graph.cc.obj<br>
[1525/2208] Building CXX object caffe2\CMakeFiles\torch.dir\core\blob_stats.cc.obj<br>
[1526/2208] Building CXX object caffe2\CMakeFiles\torch.dir_</em>\aten\src\ATen\native\quantized\cpu\kernels\QuantizedOpKernels.cpp.DEFAULT.cpp.obj<br>
[1527/2208] Building CXX object caffe2\CMakeFiles\torch.dir_<em>\aten\src\ATen\native\cpu\Activation.cpp.DEFAULT.cpp.obj<br>
[1528/2208] Building CXX object caffe2\CMakeFiles\torch.dir_</em>\aten\src\ATen\native\cpu\UnaryOpsKernel.cpp.DEFAULT.cpp.obj<br>
[1529/2208] Building CXX object caffe2\CMakeFiles\torch.dir\core\db.cc.obj<br>
[1530/2208] Building CXX object caffe2\CMakeFiles\torch.dir_<em>\aten\src\ATen\native\cpu\GridSamplerKernel.cpp.DEFAULT.cpp.obj<br>
[1531/2208] Building CXX object caffe2\CMakeFiles\torch.dir\core\export_c10_op_to_caffe2.cc.obj<br>
[1532/2208] Building CXX object caffe2\CMakeFiles\torch.dir_</em>\aten\src\ATen\native\cpu\BinaryOpsKernel.cpp.DEFAULT.cpp.obj<br>
ninja: build stopped: subcommand failed.<br>
– Building version 1.4.0a0+7f73f1d<br>
cmake -GNinja -DBUILD_PYTHON=True -DBUILD_TEST=True -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=C:\PtModelEnv\libs\pytorch\pytorch\torch -DCMAKE_PREFIX_PATH=C:\PtModelEnv\anaconda\envs\env_pytorch1.4\Lib\site-packages -DNUMPY_INCLUDE_DIR=C:\PtModelEnv\anaconda\envs\env_pytorch1.4\lib\site-packages\numpy\core\include -DPYTHON_EXECUTABLE=C:\PtModelEnv\anaconda\envs\env_pytorch1.4\python.exe -DPYTHON_INCLUDE_DIR=C:\PtModelEnv\anaconda\envs\env_pytorch1.4\include -DPYTHON_LIBRARY=C:\PtModelEnv\anaconda\envs\env_pytorch1.4/libs/python37.lib -DTORCH_BUILD_VERSION=1.4.0a0+7f73f1d -DUSE_NUMPY=True C:\PtModelEnv\libs\pytorch\pytorch<br>
cmake --build . --target install --config Release – -j 48</p>

nickoth2: <p>Also, when is pytorch1.5 Windows planned for release?</p>

peterjc123: <aside class="quote no-group" data-username="nickoth2" data-post="4" data-topic="71023">
<div class="title">
<div class="quote-controls"></div>
<img loading="lazy" alt="" width="24" height="24" src="https://discuss.pytorch.org/letter_avatar_proxy/v4/letter/n/8edcca/48.png" class="avatar"> nickoth2:</div>
<blockquote>
<p>(not sure how to attach the entire log).</p>
</blockquote>
</aside>
<p><code>python setup.py build 2&gt;&amp;1 &gt; full_log.txt</code></p>

peterjc123: <p>But I can see those DLLs in the nightly package. Maybe you are doing sth wrong. Could you please tell me how did you build it?</p>

peterjc123: <aside class="quote no-group" data-username="nickoth2" data-post="4" data-topic="71023">
<div class="title">
<div class="quote-controls"></div>
<img loading="lazy" alt="" width="24" height="24" src="https://discuss.pytorch.org/letter_avatar_proxy/v4/letter/n/8edcca/48.png" class="avatar"> nickoth2:</div>
<blockquote>
<p>Also, is there a reason why the 1.4.0 and 1.4.0a0 would be failing.</p>
</blockquote>
</aside>
<p>Well, the PR that brings MKLDNN support for Windows is coming after the release of 1.4.0. So they aren’t supported.</p>

nickoth2: <p>The log appears too large to paste in it’s entirety and only image files (jpg, png, etc) can be uploaded.</p>

nickoth2: <p>And another question - I wanted to find out if any plans to release pytorch1.5 in the next 1-1.5 months?</p>

peterjc123: <p><a class="mention" href="/u/smth">@smth</a> may know the answer.</p>

peterjc123: <p>Use sth like <a href="https://gist.github.com/" rel="nofollow noopener">https://gist.github.com/</a> or <a href="https://pastebin.com/" rel="nofollow noopener">https://pastebin.com/</a>.</p>

smth: <p>1.5 is going to be in April.</p>