Compilation hangs: too many threads

Laurent1: <p>Hi,</p>
<p>Compiling PyTorch from source failed;<br>
My machine hangs because a huge number of threads is started for compiling PyTorch.<br>
Is there a way to limit the number of threads when compiling PyTorch?<br>
Thanks for any help,</p>
<p>PyTorch Version (e.g., 1.0): master<br>
Box: OpenSuse 15.2<br>
How you installed PyTorch (conda, pip, source): source<br>
Build command you used (if compiling from source): python3 setup.py install<br>
following instructions <a href="https://github.com/pytorch/pytorch#from-source" rel="noopener nofollow ugc">here</a><br>
that is</p>
<p>git clone --recursive <a href="https://github.com/pytorch/pytorch" rel="noopener nofollow ugc">https://github.com/pytorch/pytorch</a></p>
<p>cd  pytorch</p>
<p>git submodule sync</p>
<p>git submodule update --init --recursive</p>
<p>python3 setup.py install</p>
<p>Further info:<br>
Python version: 3.6.12<br>
CUDA/cuDNN version: 10.1</p>
<p>[…]</p>
<h2>–<br>
– ******** Summary ********<br>
– General:<br>
–   CMake version         : 3.19.1<br>
–   CMake command         : /usr/bin/cmake<br>
–   System                : Linux<br>
–   C++ compiler          : /usr/bin/c++<br>
–   C++ compiler id       : GNU<br>
–   C++ compiler version  : 7.5.0<br>
–   CXX flags             :  -Wno-deprecated -fvisibility-inlines-hidden -DUSE_PTHREADPOOL -fopenmp -DNDEBUG -DUSE_FBGEMM -DUSE_QNNPACK -DUSE_PYTORCH_QNNPACK -DUSE_XNNPACK -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-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<br>
–   Build type            : Release<br>
–   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<br>
–   CMAKE_PREFIX_PATH     : /usr/lib/python3.6/site-packages;/usr/local/cuda-10.1<br>
–   CMAKE_INSTALL_PREFIX  : /home/laurent/pytorch/torch</h2>
<p>–   TORCH_VERSION         : 1.8.0<br>
–   CAFFE2_VERSION        : 1.8.0<br>
–   BUILD_CAFFE2          : ON<br>
–   BUILD_CAFFE2_OPS      : ON<br>
–   BUILD_CAFFE2_MOBILE   : OFF<br>
–   BUILD_STATIC_RUNTIME_BENCHMARK: OFF<br>
–   BUILD_TENSOREXPR_BENCHMARK: 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.6.12<br>
–     Python executable   : /usr/bin/python3<br>
–     Pythonlibs version  : 3.6.12<br>
–     Python library      : /usr/lib64/libpython3.6m.so.1.0<br>
–     Python includes     : /usr/include/python3.6m<br>
–     Python site-packages: lib/python3.6/site-packages<br>
–   BUILD_SHARED_LIBS     : ON<br>
–   CAFFE2_USE_MSVC_STATIC_RUNTIME     : OFF<br>
–   BUILD_TEST            : True<br>
–   BUILD_JNI             : OFF<br>
–   BUILD_MOBILE_AUTOGRAD : OFF<br>
–   INTERN_BUILD_MOBILE   :<br>
–   USE_BLAS              : 1<br>
–     BLAS                : open<br>
–   USE_LAPACK            : 1<br>
–     LAPACK              : open<br>
–   USE_ASAN              : OFF<br>
–   USE_CPP_CODE_COVERAGE : OFF<br>
–   USE_CUDA              : ON<br>
–     CUDA static link    : OFF<br>
–     USE_CUDNN           : OFF<br>
–     CUDA version        : 10.1<br>
–     CUDA root directory : /usr/local/cuda-10.1<br>
–     CUDA library        : /usr/local/cuda-10.1/lib64/stubs/libcuda.so<br>
–     cudart library      : /usr/local/cuda-10.1/lib64/libcudart.so<br>
–     cublas library      : /usr/lib64/libcublas.so<br>
–     cufft library       : /usr/local/cuda-10.1/lib64/libcufft.so<br>
–     curand library      : /usr/local/cuda-10.1/lib64/libcurand.so<br>
–     nvrtc               : /usr/local/cuda-10.1/lib64/libnvrtc.so<br>
–     CUDA include path   : /usr/local/cuda-10.1/include<br>
–     NVCC executable     : /usr/local/cuda-10.1/bin/nvcc<br>
–     NVCC flags          : -Xfatbin;-compress-all;-DONNX_NAMESPACE=onnx_torch;-gencode;arch=compute_35,code=sm_35;-gencode;arch=compute_50,code=sm_50;-gencode;arch=compute_52,code=sm_52;-gencode;arch=compute_60,code=sm_60;-gencode;arch=compute_61,code=sm_61;-gencode;arch=compute_70,code=sm_70;-gencode;arch=compute_75,code=sm_75;-gencode;arch=compute_75,code=compute_75;-Xcudafe;–diag_suppress=cc_clobber_ignored,–diag_suppress=integer_sign_change,–diag_suppress=useless_using_declaration,–diag_suppress=set_but_not_used,–diag_suppress=field_without_dll_interface,–diag_suppress=base_class_has_different_dll_interface,–diag_suppress=dll_interface_conflict_none_assumed,–diag_suppress=dll_interface_conflict_dllexport_assumed,–diag_suppress=implicit_return_from_non_void_function,–diag_suppress=unsigned_compare_with_zero,–diag_suppress=declared_but_not_referenced,–diag_suppress=bad_friend_decl;-std=c++14;-Xcompiler;-fPIC;–expt-relaxed-constexpr;–expt-extended-lambda;-Wno-deprecated-gpu-targets;–expt-extended-lambda;-Xcompiler;-fPIC;-DCUDA_HAS_FP16=1;-D__CUDA_NO_HALF_OPERATORS__;-D__CUDA_NO_HALF_CONVERSIONS__;-D__CUDA_NO_BFLOAT16_CONVERSIONS__;-D__CUDA_NO_HALF2_OPERATORS__<br>
–     CUDA host compiler  : /usr/bin/cc<br>
–     NVCC --device-c     : OFF<br>
–     USE_TENSORRT        : OFF<br>
–   USE_ROCM              : OFF<br>
–   USE_EIGEN_FOR_BLAS    : ON<br>
–   USE_FBGEMM            : ON<br>
–     USE_FAKELOWP          : OFF<br>
–   USE_KINETO            : 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_PYTORCH_METAL     : OFF<br>
–   USE_FFTW              : OFF<br>
–   USE_MKL               : OFF<br>
–   USE_MKLDNN            : ON<br>
–   USE_MKLDNN_CBLAS      : OFF<br>
–   USE_NCCL              : ON<br>
–     USE_SYSTEM_NCCL     : OFF<br>
–   USE_NNPACK            : ON<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_VULKAN            : OFF<br>
–   USE_PROF              : OFF<br>
–   USE_QNNPACK           : ON<br>
–   USE_PYTORCH_QNNPACK   : ON<br>
–   USE_REDIS             : OFF<br>
–   USE_ROCKSDB           : OFF<br>
–   USE_ZMQ               : OFF<br>
–   USE_DISTRIBUTED       : ON<br>
–     USE_MPI             : OFF<br>
–     USE_GLOO            : ON<br>
–     USE_TENSORPIPE      : ON<br>
–   Public Dependencies  : Threads::Threads;caffe2::mkldnn<br>
–   Private Dependencies : pthreadpool;cpuinfo;qnnpack;pytorch_qnnpack;nnpack;XNNPACK;fbgemm;/usr/lib64/libnuma.so;fp16;gloo;tensorpipe;aten_op_header_gen;foxi_loader;rt;fmt::fmt-header-only;gcc_s;gcc;dl<br>
– Configuring done<br>
– Generating done<br>
CMake Warning:<br>
Manually-specified variables were not used by the project:</p>
<pre><code>JAVA_HOME
</code></pre>
<p>– Build files have been written to: /home/laurent/pytorch/build<br>
Scanning dependencies of target nccl_external<br>
[  0%] Creating directories for ‘nccl_external’<br>
Scanning dependencies of target benchmark<br>
[  0%] Building CXX object third_party/benchmark/src/CMakeFiles/benchmark.dir/benchmark.cc.o<br>
[  0%] No download step for ‘nccl_external’<br>
[  0%] No update step for ‘nccl_external’<br>
[  0%] No patch step for ‘nccl_external’<br>
[  0%] No configure step for ‘nccl_external’<br>
[  0%] Performing build step for ‘nccl_external’<br>
make[3]: warning: -jN forced in submake: disabling jobserver mode.<br>
Scanning dependencies of target clog<br>
[  0%] Building C object confu-deps/cpuinfo/deps/clog/CMakeFiles/clog.dir/src/clog.c.o<br>
Grabbing   include/nccl_net.h                  &gt; /home/laurent/pytorch/build/nccl/include/nccl_net.h<br>
Generating nccl.h.in                           &gt; /home/laurent/pytorch/build/nccl/include/nccl.h<br>
[  0%] Linking C static library …/…/…/…/lib/libclog.a<br>
Generating nccl.pc.in                          &gt; /home/laurent/pytorch/build/nccl/lib/pkgconfig/nccl.pc<br>
Compiling  init.cc                             &gt; /home/laurent/pytorch/build/nccl/obj/init.o<br>
Compiling  bootstrap.cc                        &gt; /home/laurent/pytorch/build/nccl/obj/bootstrap.o<br>
Compiling  channel.cc                          &gt; /home/laurent/pytorch/build/nccl/obj/channel.o<br>
Compiling  transport.cc                        &gt; /home/laurent/pytorch/build/nccl/obj/transport.o<br>
Compiling  enqueue.cc                          &gt; /home/laurent/pytorch/build/nccl/obj/enqueue.o<br>
Compiling  group.cc                            &gt; /home/laurent/pytorch/build/nccl/obj/group.o<br>
Compiling  debug.cc                            &gt; /home/laurent/pytorch/build/nccl/obj/debug.o<br>
Compiling  proxy.cc                            &gt; /home/laurent/pytorch/build/nccl/obj/proxy.o<br>
Compiling  misc/nvmlwrap.cc                    &gt; /home/laurent/pytorch/build/nccl/obj/misc/nvmlwrap.o<br>
Compiling  misc/ibvwrap.cc                     &gt; /home/laurent/pytorch/build/nccl/obj/misc/ibvwrap.o<br>
Compiling  misc/utils.cc                       &gt; /home/laurent/pytorch/build/nccl/obj/misc/utils.o<br>
Compiling  misc/argcheck.cc                    &gt; /home/laurent/pytorch/build/nccl/obj/misc/argcheck.o<br>
Compiling  transport/p2p.cc                    &gt; /home/laurent/pytorch/build/nccl/obj/transport/p2p.o<br>
Compiling  transport/shm.cc                    &gt; /home/laurent/pytorch/build/nccl/obj/transport/shm.o<br>
Compiling  transport/net.cc                    &gt; /home/laurent/pytorch/build/nccl/obj/transport/net.o<br>
Compiling  transport/net_socket.cc             &gt; /home/laurent/pytorch/build/nccl/obj/transport/net_socket.o<br>
Compiling  transport/net_ib.cc                 &gt; /home/laurent/pytorch/build/nccl/obj/transport/net_ib.o<br>
Compiling  transport/coll_net.cc               &gt; /home/laurent/pytorch/build/nccl/obj/transport/coll_net.o<br>
Compiling  collectives/sendrecv.cc             &gt; /home/laurent/pytorch/build/nccl/obj/collectives/sendrecv.o<br>
Compiling  collectives/all_reduce.cc           &gt; /home/laurent/pytorch/build/nccl/obj/collectives/all_reduce.o<br>
Compiling  collectives/all_gather.cc           &gt; /home/laurent/pytorch/build/nccl/obj/collectives/all_gather.o<br>
Compiling  collectives/broadcast.cc            &gt; /home/laurent/pytorch/build/nccl/obj/collectives/broadcast.o<br>
Compiling  collectives/reduce.cc               &gt; /home/laurent/pytorch/build/nccl/obj/collectives/reduce.o<br>
Compiling  collectives/reduce_scatter.cc       &gt; /home/laurent/pytorch/build/nccl/obj/collectives/reduce_scatter.o<br>
Compiling  graph/topo.cc                       &gt; /home/laurent/pytorch/build/nccl/obj/graph/topo.o<br>
Compiling  graph/paths.cc                      &gt; /home/laurent/pytorch/build/nccl/obj/graph/paths.o<br>
Compiling  graph/search.cc                     &gt; /home/laurent/pytorch/build/nccl/obj/graph/search.o<br>
Compiling  graph/connect.cc                    &gt; /home/laurent/pytorch/build/nccl/obj/graph/connect.o<br>
Compiling  graph/rings.cc                      &gt; /home/laurent/pytorch/build/nccl/obj/graph/rings.o<br>
Compiling  graph/trees.cc                      &gt; /home/laurent/pytorch/build/nccl/obj/graph/trees.o<br>
Compiling  graph/tuning.cc                     &gt; /home/laurent/pytorch/build/nccl/obj/graph/tuning.o<br>
Compiling  graph/xml.cc                        &gt; /home/laurent/pytorch/build/nccl/obj/graph/xml.o<br>
Generating rules                               &gt; /home/laurent/pytorch/build/nccl/obj/collectives/device/Makefile.rules<br>
[  0%] Built target clog<br>
Scanning dependencies of target defs.bzl<br>
[  0%] Built target defs.bzl<br>
[  0%] Building CXX object third_party/benchmark/src/CMakeFiles/benchmark.dir/benchmark_register.cc.o<br>
Scanning dependencies of target pthreadpool<br>
[  0%] Building C object confu-deps/pthreadpool/CMakeFiles/pthreadpool.dir/src/legacy-api.c.o<br>
In file included from /home/laurent/pytorch/third_party/pthreadpool/src/legacy-api.c:8:0:<br>
/home/laurent/pytorch/third_party/pthreadpool/include/pthreadpool.h:997:2: warning: ‘pthreadpool_function_1d_t’ is deprecated [-Wdeprecated-declarations]<br>
pthreadpool_function_1d_t function,<br>
^~~~~~~~~~~~~~~~~~~~~~~~~<br>
/home/laurent/pytorch/third_party/pthreadpool/include/pthreadpool.h:1003:2: warning: ‘pthreadpool_function_1d_tiled_t’ is deprecated [-Wdeprecated-declarations]<br>
pthreadpool_function_1d_tiled_t function,<br>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</p>
<p>[ many of these ]<br>
Scanning dependencies of target gtest<br>
[  0%] Building CXX object third_party/googletest/googlemock/gtest/CMakeFiles/gtest.dir/src/gtest-all.cc.o<br>
Scanning dependencies of target asmjit<br>
[  0%] Building CXX object third_party/fbgemm/asmjit/CMakeFiles/asmjit.dir/src/asmjit/core/arch.cpp.o<br>
[  0%] Building CXX object third_party/fbgemm/asmjit/CMakeFiles/asmjit.dir/src/asmjit/core/assembler.cpp.o<br>
[  0%] Building C object confu-deps/pthreadpool/CMakeFiles/pthreadpool.dir/src/memory.c.o<br>
In file included from /home/laurent/pytorch/third_party/pthreadpool/src/threadpool-object.h:30:0,<br>
from /home/laurent/pytorch/third_party/pthreadpool/src/memory.c:19:<br>
/home/laurent/pytorch/third_party/pthreadpool/include/pthreadpool.h:997:2: warning: ‘pthreadpool_function_1d_t’ is deprecated [-Wdeprecated-declarations]<br>
pthreadpool_function_1d_t function,<br>
^~~~~~~~~~~~~~~~~~~~~~~~~<br>
/home/laurent/pytorch/third_party/pthreadpool/include/pthreadpool.h:1003:2: warning: ‘pthreadpool_function_1d_tiled_t’ is deprecated [-Wdeprecated-declarations]<br>
pthreadpool_function_1d_tiled_t function,</p>
<p>[ many of these ]<br>
[  0%] Building C object confu-deps/pthreadpool/CMakeFiles/pthreadpool.dir/src/pthreads.c.o<br>
[  0%] Building CXX object third_party/fbgemm/asmjit/CMakeFiles/asmjit.dir/src/asmjit/core/builder.cpp.o<br>
In file included from /home/laurent/pytorch/third_party/pthreadpool/src/pthreads.c:50:0:<br>
/home/laurent/pytorch/third_party/pthreadpool/include/pthreadpool.h:997:2: warning: ‘pthreadpool_function_1d_t’ is deprecated [-Wdeprecated-declarations]<br>
pthreadpool_function_1d_t function,</p>
<p>[ many of these ]</p>
<p>[  0%] Building C object confu-deps/pthreadpool/CMakeFiles/pthreadpool.dir/src/fastpath.c.o<br>
In file included from /home/laurent/pytorch/third_party/pthreadpool/src/fastpath.c:16:0:<br>
/home/laurent/pytorch/third_party/pthreadpool/include/pthreadpool.h:997:2: warning: ‘pthreadpool_function_1d_t’ is deprecated [-Wdeprecated-declarations]<br>
pthreadpool_function_1d_t function,<br>
^~~~~~~~~~~~~~~~~~~~~~~~~<br>
/home/laurent/pytorch/third_party/pthreadpool/include/pthreadpool.h:1003:2: warning: ‘pthreadpool_function_1d_tiled_t’ is deprecated [-Wdeprecated-declarations]<br>
pthreadpool_function_1d_tiled_t function,</p>
<p>Scanning dependencies of target libprotobuf-lite<br>
Scanning dependencies of target libprotobuf<br>
[  0%] Building CXX object third_party/fbgemm/asmjit/CMakeFiles/asmjit.dir/src/asmjit/core/callconv.cpp.o<br>
[  0%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/<strong>/src/google/protobuf/any_lite.cc.o<br>
[  0%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/</strong>/src/google/protobuf/any_lite.cc.o<br>
[  0%] Building CXX object third_party/fbgemm/asmjit/CMakeFiles/asmjit.dir/src/asmjit/core/codeholder.cpp.o<br>
[  0%] Linking C static library …/…/lib/libpthreadpool.a<br>
[  0%] Building CXX object third_party/fbgemm/asmjit/CMakeFiles/asmjit.dir/src/asmjit/core/compiler.cpp.o<br>
Compiling  functions.cu                        &gt; /home/laurent/pytorch/build/nccl/obj/collectives/device/functions.o<br>
Compiling  all_gather.cu                       &gt; /home/laurent/pytorch/build/nccl/obj/collectives/device/all_gather_sum_i8.o<br>
Compiling  all_gather.cu                       &gt; /home/laurent/pytorch/build/nccl/obj/collectives/device/all_gather_sum_u8.o<br>
Compiling  all_gather.cu                       &gt; /home/laurent/pytorch/build/nccl/obj/collectives/device/all_gather_sum_i32.o<br>
Compiling  all_gather.cu                       &gt; /home/laurent/pytorch/build/nccl/obj/collectives/device/all_gather_sum_u32.o<br>
Compiling  all_gather.cu                       &gt; /home/laurent/pytorch/build/nccl/obj/collectives/device/all_gather_sum_i64.o<br>
[  0%] Built target pthreadpool</p>
<p>[ I killed the compilation before it freezes my machine ]</p>

googlebot: <p>set MAX_JOBS environment variable (ninja default is 6)</p>

Laurent1: <p>with<br>
export MAX_JOBS=4<br>
it didn’t work as expected. Here a screenshot of the too many threads from CMake (v3.19.1):</p>
<p><div class="lightbox-wrapper"><a class="lightbox" href="https://discuss.pytorch.org/uploads/default/original/3X/c/b/cb3f9a5fbbcacdce7deb1abfa31ebb6180e1dcf6.png" data-download-href="https://discuss.pytorch.org/uploads/default/cb3f9a5fbbcacdce7deb1abfa31ebb6180e1dcf6" title="image"><img src="https://discuss.pytorch.org/uploads/default/original/3X/c/b/cb3f9a5fbbcacdce7deb1abfa31ebb6180e1dcf6.png" alt="image" data-base62-sha1="t01c6Vodn18GZJir8NuWGk5wjCC" width="585" height="500" data-dominant-color="494C4C"><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">image</span><span class="informations">709×605 61 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>There is no concurrent compilation running.</p>

googlebot: <p>perhaps it is this<br>
</p><aside class="onebox githubissue">
  <header class="source">
      <a href="https://github.com/pytorch/pytorch/issues/20692" target="_blank" rel="noopener nofollow ugc">github.com/pytorch/pytorch</a>
  </header>
  <article class="onebox-body">
    <div class="github-row">
  <div class="github-icon-container" title="Issue">
	  <svg width="60" height="60" class="github-icon" viewBox="0 0 14 16" aria-hidden="true"><path d="M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"></path></svg>
  </div>

  <div class="github-info-container">
    <h4>
      <a href="https://github.com/pytorch/pytorch/issues/20692" target="_blank" rel="noopener nofollow ugc">Compiling NCCL does not obey MAX_JOBS, makes machine unresponsive</a>
    </h4>

    <div class="github-info">
      <div class="date">
        opened <span class="discourse-local-date" data-format="ll" data-date="2019-05-19" data-time="23:29:40" data-timezone="UTC">11:29PM - 19 May 19 UTC</span>
      </div>

        <div class="date">
          closed <span class="discourse-local-date" data-format="ll" data-date="2020-10-15" data-time="23:46:22" data-timezone="UTC">11:46PM - 15 Oct 20 UTC</span>
        </div>

      <div class="user">
        <a href="https://github.com/jamt9000" target="_blank" rel="noopener nofollow ugc">
          <img alt="jamt9000" src="https://avatars3.githubusercontent.com/u/1186841?v=4" class="onebox-avatar-inline" width="20" height="20">
          jamt9000
        </a>
      </div>
    </div>
  </div>
</div>

<div class="github-row">
  <p class="github-content">🐛 Bug
Compiling pytorch causes my laptop to become unresponsive, requiring a hard restart. This is because NCCL is compiled with make...</p>
</div>

<div class="labels">
    <span style="display:inline-block;margin-top:2px;background-color: #B8B8B8;padding: 2px;border-radius: 4px;color: #fff;margin-left: 3px;">module: build</span>
    <span style="display:inline-block;margin-top:2px;background-color: #B8B8B8;padding: 2px;border-radius: 4px;color: #fff;margin-left: 3px;">module: nccl</span>
    <span style="display:inline-block;margin-top:2px;background-color: #B8B8B8;padding: 2px;border-radius: 4px;color: #fff;margin-left: 3px;">triaged</span>
</div>

  </article>
  <div class="onebox-metadata">
    
    
  </div>
  <div style="clear: both"></div>
</aside>


Laurent1: <p>Exactly ! Big thanks !<br>
It is curious that the fix is not merged. Or is it and the fix is not working? I will comment on the thread you mentioned.</p>