Build from source for only CPU version on cluster Server

ph0123: <p>Hi,</p>
<p>I followed instructions at <a href="https://github.com/pytorch/pytorch#from-source" rel="noopener nofollow ugc">here.</a></p>
<ol>
<li>install dependencies<br>
conda install numpy ninja pyyaml mkl mkl-include setuptools cmake cffi</li>
<li>clone pytorch<br>
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>
cd pytorch<br>
// if you are updating an existing checkout<br>
git submodule sync<br>
git submodule update --init --recursive</li>
<li>export CMAKE_PREFIX_PATH=${CONDA_PREFIX:-“$(dirname $(which conda))/…/”}<br>
python setup.py install</li>
</ol>
<p>The output:</p>
<blockquote>
<p>[1/1647] Generating libmkldnn.a<br>
[2/1647] Building CXX object c10/CMakeFiles/c10.dir/util/numa.cpp.o<br>
FAILED: c10/CMakeFiles/c10.dir/util/numa.cpp.o<br>
/cluster/software/Anaconda3/2019.03/bin/c++  -DHAVE_MALLOC_USABLE_SIZE=1 -DHAVE_MMAP=1 -DHAVE_SHM_OPEN=1 -DHAVE_SHM_UNLINK=1 -DMINIZ_DISABLE_ZIP_READER_CRC32_CHECKS -DONNXIFI_ENABLE_EXT=1 -DONNX_ML=1 -DONNX_NAMESPACE=onnx_torch -DSUPPORTS_BACKTRACE=1 -D_FILE_OFFSET_BITS=64 -Dc10_EXPORTS -Iaten/src -I…/aten/src -I. -I…/ -I…/cmake/…/third_party/benchmark/include -Icaffe2/contrib/aten -I…/third_party/onnx -Ithird_party/onnx -I…/third_party/foxi -Ithird_party/foxi -I…/c10/… -isystem third_party/gloo -isystem …/cmake/…/third_party/gloo -isystem …/cmake/…/third_party/googletest/googlemock/include -isystem …/cmake/…/third_party/googletest/googletest/include -isystem …/third_party/protobuf/src -isystem …/third_party/gemmlowp -isystem …/third_party/neon2sse -isystem …/third_party/XNNPACK/include -isystem …/third_party -isystem …/cmake/…/third_party/eigen -isystem /cluster/software/Python/3.6.6-foss-2018b/include/python3.6m -isystem /cluster/home/cnphuong/my_environment/lib/python3.6/site-packages/numpy/core/include -isystem …/cmake/…/third_party/pybind11/include -isystem /opt/rocm/hip/include -isystem /include -isystem …/third_party/ideep/mkl-dnn/include -isystem …/third_party/ideep/include -Wno-deprecated -fvisibility-inlines-hidden -fopenmp -DNDEBUG -DUSE_FBGEMM -DUSE_QNNPACK -DUSE_PYTORCH_QNNPACK -DUSE_XNNPACK -DUSE_INTERNAL_THREADPOOL_IMPL -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-strict-overflow -Wno-strict-aliasing -Wno-error=deprecated-declarations -Wno-stringop-overflow -Wno-error=pedantic -Wno-error=redundant-decls -Wno-error=old-style-cast -fdiagnostics-color=always -faligned-new -Wno-unused-but-set-variable -Wno-maybe-uninitialized -fno-math-errno -fno-trapping-math -Werror=format -Wno-stringop-overflow -O3 -DNDEBUG -DNDEBUG -fPIC   -DCAFFE2_USE_GLOO -DHAVE_GCC_GET_CPUID -DUSE_AVX -DUSE_AVX2 -DTH_HAVE_THREAD -DC10_BUILD_MAIN_LIB -fvisibility=hidden -std=gnu++14 -MD -MT c10/CMakeFiles/c10.dir/util/numa.cpp.o -MF c10/CMakeFiles/c10.dir/util/numa.cpp.o.d -o c10/CMakeFiles/c10.dir/util/numa.cpp.o -c …/c10/util/numa.cpp<br>
…/c10/util/numa.cpp:6:10: fatal error: numa.h: No such file or directory<br>
<span class="hashtag-raw">#include</span> &lt;numa.h&gt;<br>
^~~~~~~~<br>
compilation terminated.<br>
[3/1647] Building CXX object caffe2/CMakeFiles/torch_cpu.dir/<strong>/aten/src/ATen/CPUGeneratorImpl.cpp.o<br>
[4/1647] Building CXX object caffe2/CMakeFiles/fixed_divisor_test.dir/utils/fixed_divisor_test.cc.o<br>
[5/1647] Building CXX object caffe2/CMakeFiles/variant_test.dir/</strong>/aten/src/ATen/test/variant_test.cpp.o<br>
[6/1647] Building CXX object caffe2/CMakeFiles/common_test.dir/core/common_test.cc.o<br>
[7/1647] Building CXX object caffe2/CMakeFiles/inline_container_test.dir/serialize/inline_container_test.cc.o<br>
[8/1647] Building CXX object caffe2/CMakeFiles/mobile_test.dir/opt/mobile_test.cc.o<br>
[9/1647] Building CXX object caffe2/CMakeFiles/cast_test.dir/utils/cast_test.cc.o<br>
[10/1647] Building CXX object caffe2/CMakeFiles/TopoSortTest.dir/core/nomnigraph/tests/TopoSortTest.cc.o<br>
[11/1647] Building CXX object caffe2/CMakeFiles/smart_tensor_printer_test.dir/utils/smart_tensor_printer_test.cc.o<br>
[12/1647] Building CXX object caffe2/CMakeFiles/device_test.dir/opt/device_test.cc.o<br>
[13/1647] Building CXX object caffe2/CMakeFiles/NeuralNetTest.dir/core/nomnigraph/tests/NeuralNetTest.cc.o<br>
[14/1647] Building CXX object caffe2/CMakeFiles/ssa_test.dir/onnx/ssa_test.cc.o<br>
[15/1647] Building CXX object caffe2/CMakeFiles/text_file_reader_utils_test.dir/operators/text_file_reader_utils_test.cc.o<br>
[16/1647] Building CXX object caffe2/CMakeFiles/torch_cpu.dir/<strong>/aten/src/ATen/DynamicLibrary.cpp.o<br>
[17/1647] Building CXX object caffe2/CMakeFiles/torch_cpu.dir/operators/conv_op_shared.cc.o<br>
[18/1647] Building CXX object caffe2/CMakeFiles/dead_code_elim_test.dir/opt/dead_code_elim_test.cc.o<br>
[19/1647] Building CXX object caffe2/CMakeFiles/math_test.dir/utils/math_test.cc.o<br>
[20/1647] Building CXX object caffe2/CMakeFiles/converter_nomigraph_test.dir/opt/converter_nomigraph_test.cc.o<br>
[21/1647] Building CXX object caffe2/CMakeFiles/net_async_tracing_test.dir/core/net_async_tracing_test.cc.o<br>
[22/1647] Building CXX object caffe2/CMakeFiles/boolean_unmask_ops_test.dir/operators/boolean_unmask_ops_test.cc.o<br>
[23/1647] Building CXX object caffe2/CMakeFiles/conv_to_nnpack_transform_test.dir/transforms/conv_to_nnpack_transform_test.cc.o<br>
[24/1647] Building CXX object caffe2/CMakeFiles/utility_ops_test.dir/operators/utility_ops_test.cc.o<br>
[25/1647] Building CXX object caffe2/CMakeFiles/operator_schema_test.dir/core/operator_schema_test.cc.o<br>
[26/1647] Building CXX object caffe2/CMakeFiles/half_float_ops_test.dir/operators/half_float_ops_test.cc.o<br>
[27/1647] Building CXX object caffe2/CMakeFiles/bound_shape_inference_test.dir/opt/bound_shape_inference_test.cc.o<br>
[28/1647] Building CXX object caffe2/CMakeFiles/torch_cpu.dir/operators/communicator_op.cc.o<br>
[29/1647] Building CXX object caffe2/CMakeFiles/conv_transpose_op_mobile_test.dir/operators/conv_transpose_op_mobile_test.cc.o<br>
[30/1647] Building CXX object caffe2/CMakeFiles/common_subexpression_elimination_test.dir/transforms/common_subexpression_elimination_test.cc.o<br>
[31/1647] Building CXX object caffe2/CMakeFiles/batch_matmul_op_test.dir/operators/batch_matmul_op_test.cc.o<br>
[32/1647] Building CXX object caffe2/CMakeFiles/torch_cpu.dir/</strong>/aten/src/ATen/Context.cpp.o<br>
[33/1647] Building CXX object caffe2/CMakeFiles/torch_cpu.dir/operators/conditional_op.cc.o<br>
[34/1647] Building CXX object caffe2/CMakeFiles/torch_cpu.dir/operators/conv_transpose_gradient_op.cc.o<br>
[35/1647] Building CXX object caffe2/CMakeFiles/nnpack_test.dir/share/contrib/nnpack/nnpack_test.cc.o<br>
[36/1647] Building CXX object caffe2/CMakeFiles/xla_tensor_test.dir/<strong>/aten/src/ATen/test/xla_tensor_test.cpp.o<br>
[37/1647] Building CXX object caffe2/CMakeFiles/torch_cpu.dir/operators/conv_transpose_op.cc.o<br>
[38/1647] Building CXX object caffe2/CMakeFiles/depthwise3x3_conv_op_test.dir/share/contrib/depthwise/depthwise3x3_conv_op_test.cc.o<br>
[39/1647] Building CXX object caffe2/CMakeFiles/wrapdim_test.dir/</strong>/aten/src/ATen/test/wrapdim_test.cpp.o<br>
[40/1647] Building CXX object caffe2/CMakeFiles/split_slss_test.dir/opt/split_slss_test.cc.o<br>
[41/1647] Building CXX object caffe2/CMakeFiles/test_parallel.dir/<strong>/aten/src/ATen/test/test_parallel.cpp.o<br>
[42/1647] Building CXX object caffe2/CMakeFiles/graph_test.dir/core/graph_test.cc.o<br>
[43/1647] Building CXX object caffe2/CMakeFiles/native_test.dir/</strong>/aten/src/ATen/test/native_test.cpp.o<br>
[44/1647] Building CXX object caffe2/CMakeFiles/NamedTensor_test.dir/<strong>/aten/src/ATen/test/NamedTensor_test.cpp.o<br>
[45/1647] Building CXX object caffe2/CMakeFiles/torch_cpu.dir/</strong>/aten/src/ATen/DLConvertor.cpp.o<br>
[46/1647] Building CXX object caffe2/CMakeFiles/undefined_tensor_test.dir/<strong>/aten/src/ATen/test/undefined_tensor_test.cpp.o<br>
[47/1647] Building CXX object caffe2/CMakeFiles/scalar_tensor_test.dir/</strong>/aten/src/ATen/test/scalar_tensor_test.cpp.o<br>
[48/1647] Building CXX object caffe2/CMakeFiles/weakref_test.dir/<strong>/aten/src/ATen/test/weakref_test.cpp.o<br>
[49/1647] Building CXX object caffe2/CMakeFiles/List_test.dir/</strong>/aten/src/ATen/core/List_test.cpp.o<br>
[50/1647] Building CXX object caffe2/CMakeFiles/pattern_net_transform_test.dir/transforms/pattern_net_transform_test.cc.o<br>
[51/1647] Building CXX object caffe2/CMakeFiles/torch_cpu.dir/operators/concat_split_op.cc.o<br>
[52/1647] Building CXX object caffe2/CMakeFiles/thread_init_test.dir/<strong>/aten/src/ATen/test/thread_init_test.cpp.o<br>
[53/1647] Building CXX object caffe2/CMakeFiles/torch_cpu.dir/operators/conv_gradient_op.cc.o<br>
[54/1647] Building CXX object caffe2/CMakeFiles/generate_proposals_op_util_nms_test.dir/operators/generate_proposals_op_util_nms_test.cc.o<br>
[55/1647] Building CXX object caffe2/CMakeFiles/torch_cpu.dir/operators/conv_op.cc.o<br>
[56/1647] Building CXX object caffe2/CMakeFiles/reduce_ops_test.dir/</strong>/aten/src/ATen/test/reduce_ops_test.cpp.o<br>
[57/1647] Building CXX object caffe2/CMakeFiles/pow_test.dir/<strong>/aten/src/ATen/test/pow_test.cpp.o<br>
[58/1647] Building CXX object caffe2/CMakeFiles/int8_test.dir/operators/quantized/int8_test.cc.o<br>
[59/1647] Building CXX object caffe2/CMakeFiles/generate_proposals_op_test.dir/operators/generate_proposals_op_test.cc.o<br>
[60/1647] Building CXX object caffe2/CMakeFiles/tensor_iterator_test.dir/</strong>/aten/src/ATen/test/tensor_iterator_test.cpp.o<br>
[61/1647] Building CXX object caffe2/CMakeFiles/torch_cpu.dir/operators/conv_op_eigen.cc.o<br>
[62/1647] Building CXX object caffe2/CMakeFiles/blob_test.dir/core/blob_test.cc.o<br>
[63/1647] Building CXX object caffe2/CMakeFiles/ivalue_test.dir/<strong>/aten/src/ATen/test/ivalue_test.cpp.o<br>
[64/1647] Building CXX object caffe2/CMakeFiles/type_test.dir/</strong>/aten/src/ATen/test/type_test.cpp.o<br>
[65/1647] Building CXX object caffe2/CMakeFiles/cpu_rng_test.dir/__/aten/src/ATen/test/cpu_rng_test.cpp.o<br>
ninja: build stopped: subcommand failed.<br>
Building wheel torch-1.6.0a0+f463586<br>
– Building version 1.6.0a0+f463586<br>
cmake --build . --target install --config Release – -j 64</p>
</blockquote>
<p>I run on linux server with user mode.<br>
Could I install from source with cluster server?<br>
Thanks,</p>