<p dir="auto">-- Building version 1.1.0a0+562fa55<br>
make: *** No rule to make target 'install'.  Stop.<br>
Traceback (most recent call last):<br>
File "setup.py", line 734, in <br>
build_deps()<br>
File "setup.py", line 281, in build_deps<br>
build_dir='build')<br>
File "/home/simon/Downloads/pytorch/tools/build_pytorch_libs.py", line 255, in build_caffe2<br>
check_call(['make', '-j', str(max_jobs), 'install'], cwd=build_dir, env=my_env)<br>
File "/usr/lib/python3.6/subprocess.py", line 291, in check_call<br>
raise CalledProcessError(retcode, cmd)<br>
subprocess.CalledProcessError: Command '['make', '-j', '8', 'install']' returned non-zero exit status 2.<br>
simon@localhost:<del>/Downloads/pytorch$ ls<br>
CITATION         aten      modules           test<br>
CMakeLists.txt   binaries  mypy-README.md    third_party<br>
CODEOWNERS       build     mypy-files.txt    tools<br>
CONTRIBUTING.md  c10       mypy.ini          torch<br>
LICENSE          caffe2    requirements.txt  ubsan.supp<br>
Makefile         cmake     scripts<br>
NOTICE           docker    setup.py<br>
README.md        docs      submodules<br>
simon@localhost:</del>/Downloads/pytorch$ rm -rf build<br>
simon@localhost:~/Downloads/pytorch$ python setup.py installBuilding wheel torch-1.1.0a0+562fa55<br>
-- Building version 1.1.0a0+562fa55<br>
['cmake',<br>
'/home/simon/Downloads/pytorch',<br>
'-DBUILDING_WITH_TORCH_LIBS=ON',<br>
'-DBUILD_BINARY=False',<br>
'-DBUILD_CAFFE2_OPS=True',<br>
'-DBUILD_PYTHON=True',<br>
'-DBUILD_SHARED_LIBS=ON',<br>
'-DBUILD_TEST=True',<br>
'-DBUILD_TORCH=ON',<br>
'-DCAFFE2_STATIC_LINK_CUDA=False',<br>
'-DCMAKE_BUILD_TYPE=Release',<br>
'-DCMAKE_CXX_FLAGS= ',<br>
'-DCMAKE_C_FLAGS= ',<br>
'-DCMAKE_EXE_LINKER_FLAGS=',<br>
'-DCMAKE_INSTALL_PREFIX=/home/simon/Downloads/pytorch/torch',<br>
'-DCMAKE_PREFIX_PATH=/usr/lib/python3/dist-packages',<br>
'-DCMAKE_SHARED_LINKER_FLAGS=',<br>
'-DINSTALL_TEST=True',<br>
'-DNCCL_EXTERNAL=False',<br>
'-DNUMPY_INCLUDE_DIR=/usr/lib/python3/dist-packages/numpy/core/include',<br>
'-DONNX_ML=False',<br>
'-DONNX_NAMESPACE=onnx_torch',<br>
'-DPYTHON_EXECUTABLE=/usr/local/bin/python3',<br>
'-DPYTHON_INCLUDE_DIR=/usr/include/python3.6m',<br>
'-DPYTHON_LIBRARY=/usr/lib/libpython3.6m.so.1.0',<br>
'-DTHD_SO_VERSION=1',<br>
'-DTORCH_BUILD_VERSION=1.1.0a0+562fa55',<br>
'-DUSE_CUDA=False',<br>
'-DUSE_DISTRIBUTED=True',<br>
'-DUSE_FBGEMM=True',<br>
'-DUSE_FFMPEG=False',<br>
'-DUSE_LEVELDB=False',<br>
'-DUSE_LMDB=False',<br>
'-DUSE_MKLDNN=False',<br>
'-DUSE_NCCL=False',<br>
'-DUSE_NNPACK=True',<br>
'-DUSE_NUMPY=True',<br>
'-DUSE_OPENCV=False',<br>
'-DUSE_QNNPACK=True',<br>
'-DUSE_ROCM=False',<br>
'-DUSE_SYSTEM_EIGEN_INSTALL=OFF',<br>
'-DUSE_SYSTEM_NCCL=False',<br>
'-DUSE_TENSORRT=False']<br>
{'HOME': '/home/simon',<br>
'LESSCLOSE': '/usr/bin/lesspipe %s %s',<br>
'LESSOPEN': '| /usr/bin/lesspipe %s',<br>
'LIBGL_ALWAYS_SOFTWARE': '1',<br>
'LOGNAME': 'simon',<br>
'LS_COLORS': 'rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:<em>.tar=01;31:</em>.tgz=01;31:<em>.arc=01;31:</em>.arj=01;31:<em>.taz=01;31:</em>.lha=01;31:<em>.lz4=01;31:</em>.lzh=01;31:<em>.lzma=01;31:</em>.tlz=01;31:<em>.txz=01;31:</em>.tzo=01;31:<em>.t7z=01;31:</em>.zip=01;31:<em>.z=01;31:</em>.Z=01;31:<em>.dz=01;31:</em>.gz=01;31:<em>.lrz=01;31:</em>.lz=01;31:<em>.lzo=01;31:</em>.xz=01;31:<em>.zst=01;31:</em>.tzst=01;31:<em>.bz2=01;31:</em>.bz=01;31:<em>.tbz=01;31:</em>.tbz2=01;31:<em>.tz=01;31:</em>.deb=01;31:<em>.rpm=01;31:</em>.jar=01;31:<em>.war=01;31:</em>.ear=01;31:<em>.sar=01;31:</em>.rar=01;31:<em>.alz=01;31:</em>.ace=01;31:<em>.zoo=01;31:</em>.cpio=01;31:<em>.7z=01;31:</em>.rz=01;31:<em>.cab=01;31:</em>.wim=01;31:<em>.swm=01;31:</em>.dwm=01;31:<em>.esd=01;31:</em>.jpg=01;35:<em>.jpeg=01;35:</em>.mjpg=01;35:<em>.mjpeg=01;35:</em>.gif=01;35:<em>.bmp=01;35:</em>.pbm=01;35:<em>.pgm=01;35:</em>.ppm=01;35:<em>.tga=01;35:</em>.xbm=01;35:<em>.xpm=01;35:</em>.tif=01;35:<em>.tiff=01;35:</em>.png=01;35:<em>.svg=01;35:</em>.svgz=01;35:<em>.mng=01;35:</em>.pcx=01;35:<em>.mov=01;35:</em>.mpg=01;35:<em>.mpeg=01;35:</em>.m2v=01;35:<em>.mkv=01;35:</em>.webm=01;35:<em>.ogm=01;35:</em>.mp4=01;35:<em>.m4v=01;35:</em>.mp4v=01;35:<em>.vob=01;35:</em>.qt=01;35:<em>.nuv=01;35:</em>.wmv=01;35:<em>.asf=01;35:</em>.rm=01;35:<em>.rmvb=01;35:</em>.flc=01;35:<em>.avi=01;35:</em>.fli=01;35:<em>.flv=01;35:</em>.gl=01;35:<em>.dl=01;35:</em>.xcf=01;35:<em>.xwd=01;35:</em>.yuv=01;35:<em>.cgm=01;35:</em>.emf=01;35:<em>.ogv=01;35:</em>.ogx=01;35:<em>.aac=00;36:</em>.au=00;36:<em>.flac=00;36:</em>.m4a=00;36:<em>.mid=00;36:</em>.midi=00;36:<em>.mka=00;36:</em>.mp3=00;36:<em>.mpc=00;36:</em>.ogg=00;36:<em>.ra=00;36:</em>.wav=00;36:<em>.oga=00;36:</em>.opus=00;36:<em>.spx=00;36:</em>.xspf=00;36:',<br>
'OLDPWD': '/home/simon/Downloads',<br>
'PATH': '/home/simon/.local/bin:/home/simon/miniconda3:/home/simon/miniconda3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games',<br>
'PWD': '/home/simon/Downloads/pytorch',<br>
'SHELL': '/bin/bash',<br>
'SHLVL': '1',<br>
'SSH_AUTH_SOCK': '/tmp/dropbear-6acaa863/auth-74992dd7-6',<br>
'SSH_CLIENT': '127.0.0.1 43280 2022',<br>
'SSH_CONNECTION': '127.0.0.1 43280 127.0.0.1 2022',<br>
'SSH_TTY': '/dev/pts/0',<br>
'TERM': 'linux',<br>
'USER': 'simon',<br>
'XDG_DATA_DIRS': '/usr/local/share:/usr/share:/var/lib/snapd/desktop',<br>
'_': '/usr/local/bin/python3'}<br>
-- The CXX compiler identification is GNU 7.3.0<br>
-- The C compiler identification is GNU 7.3.0<br>
-- Check for working CXX compiler: /usr/bin/c++<br>
-- Check for working CXX compiler: /usr/bin/c++ -- works<br>
-- Detecting CXX compiler ABI info<br>
-- Detecting CXX compiler ABI info - done<br>
-- Detecting CXX compile features<br>
-- Detecting CXX compile features - done<br>
-- Check for working C compiler: /usr/bin/cc<br>
-- Check for working C compiler: /usr/bin/cc -- works<br>
-- Detecting C compiler ABI info<br>
-- Detecting C compiler ABI info - done<br>
-- Detecting C compile features<br>
-- Detecting C compile features - done<br>
-- Not forcing any particular BLAS to be found<br>
-- Performing Test CAFFE2_EXCEPTION_PTR_SUPPORTED<br>
-- Performing Test CAFFE2_EXCEPTION_PTR_SUPPORTED - Success<br>
-- std::exception_ptr is supported.<br>
-- NUMA is disabled<br>
-- Performing Test CAFFE2_NEED_TO_TURN_OFF_DEPRECATION_WARNING<br>
-- Performing Test CAFFE2_NEED_TO_TURN_OFF_DEPRECATION_WARNING - Failed<br>
-- Turning off deprecation warning due to glog.<br>
-- Performing Test CAFFE2_COMPILER_SUPPORTS_AVX2_EXTENSIONS<br>
-- Performing Test CAFFE2_COMPILER_SUPPORTS_AVX2_EXTENSIONS - Failed<br>
-- Performing Test CAFFE2_COMPILER_SUPPORTS_AVX512_EXTENSIONS<br>
-- Performing Test CAFFE2_COMPILER_SUPPORTS_AVX512_EXTENSIONS - Failed<br>
-- Performing Test COMPILER_SUPPORTS_HIDDEN_VISIBILITY<br>
-- Performing Test COMPILER_SUPPORTS_HIDDEN_VISIBILITY - Success<br>
-- Performing Test COMPILER_SUPPORTS_HIDDEN_INLINE_VISIBILITY<br>
-- Performing Test COMPILER_SUPPORTS_HIDDEN_INLINE_VISIBILITY - Success<br>
-- Performing Test COMPILER_SUPPORTS_RDYNAMIC<br>
-- Performing Test COMPILER_SUPPORTS_RDYNAMIC - Success<br>
-- Looking for pthread.h<br>
-- Looking for pthread.h - found<br>
-- Looking for pthread_create<br>
-- Looking for pthread_create - not found<br>
-- Looking for pthread_create in pthreads<br>
-- Looking for pthread_create in pthreads - not found<br>
-- Looking for pthread_create in pthread<br>
-- Looking for pthread_create in pthread - found<br>
-- Found Threads: TRUE<br>
CMake Warning at cmake/public/protobuf.cmake:88 (message):<br>
Protobuf cannot be found.  Depending on whether you are building Caffe2 or<br>
a Caffe2 dependent library, the next warning / error will give you more<br>
info.<br>
Call Stack (most recent call first):<br>
cmake/ProtoBuf.cmake:97 (include)<br>
cmake/Dependencies.cmake:40 (include)<br>
CMakeLists.txt:224 (include)</p>
<p dir="auto">CMake Warning at cmake/ProtoBuf.cmake:101 (message):<br>
Protobuf cannot be found.  Caffe2 will automatically switch to use own<br>
protobuf under third_party.  Note that this behavior may change in the<br>
future, and you will need to specify -DBUILD_CUSTOM_PROTOBUF=ON explicitly.<br>
Call Stack (most recent call first):<br>
cmake/Dependencies.cmake:40 (include)<br>
CMakeLists.txt:224 (include)</p>
<p dir="auto">-- Use custom protobuf build.<br>
-- Caffe2 protobuf include directory: <math-renderer class="js-inline-math" style="display: inline" data-static-url="https://github.githubassets.com/static" data-run-id="3f623c1ef06d0be48df46f684ec2ea10">$&amp;lt;BUILD_INTERFACE:/home/simon/Downloads/pytorch/third_party/protobuf/src&amp;gt;$</math-renderer>&amp;lt;INSTALL_INTERFACE:include&gt;<br>
-- Trying to find preferred BLAS backend of choice: Eigen<br>
-- The ASM compiler identification is GNU<br>
-- Found assembler: /usr/bin/cc<br>
-- Check if compiler accepts -pthread<br>
-- Check if compiler accepts -pthread - yes<br>
CMake Error at third_party/QNNPACK/CMakeLists.txt:326 (ADD_SUBDIRECTORY):<br>
The source directory</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/home/simon/Downloads/pytorch/third_party/psimd"><pre class="notranslate"><code class="notranslate">/home/simon/Downloads/pytorch/third_party/psimd
</code></pre></div>
<p dir="auto">does not contain a CMakeLists.txt file.</p>
<p dir="auto">CMake Error at third_party/QNNPACK/CMakeLists.txt:336 (ADD_SUBDIRECTORY):<br>
The source directory</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/home/simon/Downloads/pytorch/third_party/FP16"><pre class="notranslate"><code class="notranslate">/home/simon/Downloads/pytorch/third_party/FP16
</code></pre></div>
<p dir="auto">does not contain a CMakeLists.txt file.</p>
<p dir="auto">-- Brace yourself, we are building NNPACK<br>
CMake Error at cmake/External/nnpack.cmake:68 (add_subdirectory):<br>
The source directory</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/home/simon/Downloads/pytorch/third_party/NNPACK"><pre class="notranslate"><code class="notranslate">/home/simon/Downloads/pytorch/third_party/NNPACK
</code></pre></div>
<p dir="auto">does not contain a CMakeLists.txt file.<br>
Call Stack (most recent call first):<br>
cmake/Dependencies.cmake:251 (include)<br>
CMakeLists.txt:224 (include)</p>
<p dir="auto">CMake Error at cmake/External/nnpack.cmake:73 (set_property):<br>
set_property could not find TARGET nnpack.  Perhaps it has not yet been<br>
created.<br>
Call Stack (most recent call first):<br>
cmake/Dependencies.cmake:251 (include)<br>
CMakeLists.txt:224 (include)</p>
<p dir="auto">-- Found PythonInterp: /usr/local/bin/python3 (found version "3.6.7")<br>
-- Found Git: /usr/bin/git (found version "2.17.1")<br>
-- git Version: v1.4.0-505be96a<br>
-- Version: 1.4.0<br>
-- Performing Test HAVE_CXX_FLAG_STD_CXX11<br>
-- Performing Test HAVE_CXX_FLAG_STD_CXX11 - Success<br>
-- Performing Test HAVE_CXX_FLAG_WALL<br>
-- Performing Test HAVE_CXX_FLAG_WALL - Success<br>
-- Performing Test HAVE_CXX_FLAG_WEXTRA<br>
-- Performing Test HAVE_CXX_FLAG_WEXTRA - Success<br>
-- Performing Test HAVE_CXX_FLAG_WSHADOW<br>
-- Performing Test HAVE_CXX_FLAG_WSHADOW - Success<br>
-- Performing Test HAVE_CXX_FLAG_WERROR<br>
-- Performing Test HAVE_CXX_FLAG_WERROR - Success<br>
-- Performing Test HAVE_CXX_FLAG_PEDANTIC<br>
-- Performing Test HAVE_CXX_FLAG_PEDANTIC - Success<br>
-- Performing Test HAVE_CXX_FLAG_PEDANTIC_ERRORS<br>
-- Performing Test HAVE_CXX_FLAG_PEDANTIC_ERRORS - Success<br>
-- Performing Test HAVE_CXX_FLAG_WSHORTEN_64_TO_32<br>
-- Performing Test HAVE_CXX_FLAG_WSHORTEN_64_TO_32 - Failed<br>
-- Performing Test HAVE_CXX_FLAG_WFLOAT_EQUAL<br>
-- Performing Test HAVE_CXX_FLAG_WFLOAT_EQUAL - Success<br>
-- Performing Test HAVE_CXX_FLAG_FSTRICT_ALIASING<br>
-- Performing Test HAVE_CXX_FLAG_FSTRICT_ALIASING - Success<br>
-- Performing Test HAVE_CXX_FLAG_WNO_DEPRECATED_DECLARATIONS-- Performing Test HAVE_CXX_FLAG_WNO_DEPRECATED_DECLARATIONS - Success<br>
-- Performing Test HAVE_CXX_FLAG_WSTRICT_ALIASING<br>
-- Performing Test HAVE_CXX_FLAG_WSTRICT_ALIASING - Success<br>
-- Performing Test HAVE_CXX_FLAG_WD654<br>
-- Performing Test HAVE_CXX_FLAG_WD654 - Failed<br>
-- Performing Test HAVE_CXX_FLAG_WTHREAD_SAFETY<br>
-- Performing Test HAVE_CXX_FLAG_WTHREAD_SAFETY - Failed<br>
-- Performing Test HAVE_CXX_FLAG_COVERAGE<br>
-- Performing Test HAVE_CXX_FLAG_COVERAGE - Success<br>
-- Performing Test HAVE_STD_REGEX<br>
-- Performing Test HAVE_STD_REGEX<br>
-- Performing Test HAVE_STD_REGEX -- success<br>
-- Performing Test HAVE_GNU_POSIX_REGEX<br>
-- Performing Test HAVE_GNU_POSIX_REGEX<br>
-- Performing Test HAVE_GNU_POSIX_REGEX -- failed to compile-- Performing Test HAVE_POSIX_REGEX<br>
-- Performing Test HAVE_POSIX_REGEX<br>
-- Performing Test HAVE_POSIX_REGEX -- success<br>
-- Performing Test HAVE_STEADY_CLOCK<br>
-- Performing Test HAVE_STEADY_CLOCK<br>
-- Performing Test HAVE_STEADY_CLOCK -- success<br>
CMake Warning at cmake/Dependencies.cmake:362 (message):<br>
A compiler with AVX512 support is required for FBGEMM.  Not compiling with<br>
FBGEMM.  Turn this warning off by USE_FBGEMM=OFF.<br>
Call Stack (most recent call first):<br>
CMakeLists.txt:224 (include)</p>
<p dir="auto">CMake Error at cmake/Dependencies.cmake:520 (add_subdirectory):<br>
The source directory</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/home/simon/Downloads/pytorch/third_party/FP16"><pre class="notranslate"><code class="notranslate">/home/simon/Downloads/pytorch/third_party/FP16
</code></pre></div>
<p dir="auto">does not contain a CMakeLists.txt file.<br>
Call Stack (most recent call first):<br>
CMakeLists.txt:224 (include)</p>
<p dir="auto">-- Using third party subdirectory Eigen.<br>
Python 3.6.7<br>
-- Found PythonInterp: /usr/local/bin/python3 (found suitable version "3.6.7", minimum required is "2.7")<br>
-- Found PythonLibs: /usr/lib/libpython3.6m.so.1.0 (found suitable version "3.6.7", minimum required is "2.7")<br>
-- Could NOT find pybind11 (missing: pybind11_DIR)<br>
-- Could NOT find pybind11 (missing: pybind11_INCLUDE_DIR)<br>
-- Using third_party/pybind11.<br>
-- Could NOT find MPI_C (missing: MPI_C_LIB_NAMES MPI_C_HEADER_DIR MPI_C_WORKS)<br>
-- Could NOT find MPI_CXX (missing: MPI_CXX_LIB_NAMES MPI_CXX_HEADER_DIR MPI_CXX_WORKS)<br>
-- Could NOT find MPI (missing: MPI_C_FOUND MPI_CXX_FOUND)<br>
CMake Warning at cmake/Dependencies.cmake:670 (message):<br>
Not compiling with MPI.  Suppress this warning with -DUSE_MPI=OFF<br>
Call Stack (most recent call first):<br>
CMakeLists.txt:224 (include)</p>
<h2 dir="auto">--<br>
-- ******** Summary ********<br>
--   CMake version         : 3.10.2<br>
--   CMake command         : /usr/bin/cmake<br>
--   System                : Linux<br>
--   C++ compiler          : /usr/bin/c++<br>
--   C++ compiler version  : 7.3.0<br>
--   CXX flags             :   -Wno-deprecated -fvisibility-inlines-hidden -Wnon-virtual-dtor<br>
--   Build type            : Release<br>
--   Compile definitions   :<br>
--   CMAKE_PREFIX_PATH     : /usr/lib/python3/dist-packages<br>
--   CMAKE_INSTALL_PREFIX  : /home/simon/Downloads/pytorch/torch<br>
--   CMAKE_MODULE_PATH     : /home/simon/Downloads/pytorch/cmake/Modules</h2>
<h2 dir="auto">--   ONNX version          : 1.4.1<br>
--   ONNX NAMESPACE        : onnx_torch<br>
--   ONNX_BUILD_TESTS      : OFF<br>
--   ONNX_BUILD_BENCHMARKS : OFF<br>
--   ONNX_USE_LITE_PROTO   : OFF<br>
--   ONNXIFI_DUMMY_BACKEND : OFF<br>
--   ONNXIFI_ENABLE_EXT    : OFF</h2>
<p dir="auto">--   Protobuf compiler     : Protobuf_PROTOC_EXECUTABLE-NOTFOUND<br>
--   Protobuf includes     :<br>
--   Protobuf libraries    : Protobuf_LIBRARY-NOTFOUND;-lpthread<br>
--   BUILD_ONNX_PYTHON     : OFF<br>
-- GCC 7.3.0: Adding gcc and gcc_s libs to link line<br>
-- don't use NUMA<br>
-- pytorch is compiling with OpenMP.<br>
OpenMP CXX_FLAGS: -fopenmp.<br>
OpenMP libraries: /usr/lib/gcc/aarch64-linux-gnu/7/libgomp.so;/usr/lib/aarch64-linux-gnu/libpthread.so.<br>
-- /usr/bin/c++ /home/simon/Downloads/pytorch/torch/abi-check.cpp -o /home/simon/Downloads/pytorch/build/abi-check<br>
-- Determined _GLIBCXX_USE_CXX11_ABI=1<br>
-- Performing Test HAS_THREAD_LOCAL<br>
-- Performing Test HAS_THREAD_LOCAL - Success<br>
-- Could NOT find MPI_C (missing: MPI_C_LIB_NAMES MPI_C_HEADER_DIR MPI_C_WORKS)<br>
-- Could NOT find MPI_CXX (missing: MPI_CXX_LIB_NAMES MPI_CXX_HEADER_DIR MPI_CXX_WORKS)<br>
-- Could NOT find MPI (missing: MPI_C_FOUND MPI_CXX_FOUND)<br>
-- ignoring CUDA<br>
-- Building C10D without CUDA support<br>
-- Could NOT find MPI_C (missing: MPI_C_LIB_NAMES MPI_C_HEADER_DIR MPI_C_WORKS)<br>
-- Could NOT find MPI_CXX (missing: MPI_CXX_LIB_NAMES MPI_CXX_HEADER_DIR MPI_CXX_WORKS)<br>
-- Could NOT find MPI (missing: MPI_C_FOUND MPI_CXX_FOUND)<br>
-- Not able to find MPI, will compile c10d without MPI support<br>
-- Looking for clock_gettime in rt<br>
-- Looking for clock_gettime in rt - found<br>
-- NCCL operators skipped due to no CUDA support<br>
-- Excluding ideep operators as we are not using ideep<br>
-- Excluding image processing operators due to no opencv<br>
-- Excluding video processing operators due to no opencv<br>
-- MPI operators skipped due to no MPI support<br>
-- Include Observer library<br>
-- Using lib/python3/dist-packages as python relative installation path<br>
CMake Warning at CMakeLists.txt:421 (message):<br>
Generated cmake files are only fully tested if one builds with system glog,<br>
gflags, and protobuf.  Other settings may generate files that are not well<br>
tested.</p>
<h2 dir="auto">--<br>
-- ******** Summary ********<br>
-- General:<br>
--   CMake version         : 3.10.2<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.3.0<br>
--   BLAS                  : Eigen<br>
--   CXX flags             :   -Wno-deprecated -fvisibility-inlines-hidden -O2 -fPIC -Wno-narrowing -Wall -Wextra -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 -faligned-new -Wno-unused-but-set-variable -Wno-maybe-uninitialized -Wno-stringop-overflow<br>
--   Build type            : Release<br>
--   Compile definitions   : ONNX_NAMESPACE=onnx_torch<br>
--   CMAKE_PREFIX_PATH     : /usr/lib/python3/dist-packages<br>
--   CMAKE_INSTALL_PREFIX  : /home/simon/Downloads/pytorch/torch</h2>
<p dir="auto">--   TORCH_VERSION         : 1.1.0<br>
--   CAFFE2_VERSION        : 1.1.0<br>
--   BUILD_ATEN_MOBILE     : ON<br>
--   BUILD_ATEN_ONLY       : OFF<br>
--   BUILD_BINARY          : False<br>
--   BUILD_CUSTOM_PROTOBUF : OFF<br>
--     Protobuf compiler   : Protobuf_PROTOC_EXECUTABLE-NOTFOUND<br>
--     Protobuf includes   :<br>
--     Protobuf libraries  : Protobuf_LIBRARY-NOTFOUND;-lpthread<br>
--   BUILD_DOCS            : OFF<br>
--   BUILD_PYTHON          : True<br>
--     Python version      : 3.6.7<br>
--     Python executable   : /usr/local/bin/python3<br>
--     Pythonlibs version  : 3.6.7<br>
--     Python library      : /usr/lib/libpython3.6m.so.1.0<br>
--     Python includes     : /usr/include/python3.6m<br>
--     Python site-packages: lib/python3/dist-packages<br>
--   BUILD_CAFFE2_OPS      : True<br>
--   BUILD_SHARED_LIBS     : ON<br>
--   BUILD_TEST            : True<br>
--   USE_ASAN              : OFF<br>
--   USE_CUDA              : False<br>
--   USE_ROCM              : False<br>
--   USE_EIGEN_FOR_BLAS    : ON<br>
--   USE_FBGEMM            : OFF<br>
--   USE_FFMPEG            : False<br>
--   USE_GFLAGS            : OFF<br>
--   USE_GLOG              : OFF<br>
--   USE_LEVELDB           : False<br>
--   USE_LITE_PROTO        : OFF<br>
--   USE_LMDB              : False<br>
--   USE_METAL             : OFF<br>
--   USE_MKL               :<br>
--   USE_MKLDNN            :<br>
--   USE_NCCL              : False<br>
--   USE_NNPACK            : True<br>
--   USE_NUMPY             : ON<br>
--   USE_OBSERVERS         : ON<br>
--   USE_OPENCL            : OFF<br>
--   USE_OPENCV            : False<br>
--   USE_OPENMP            : OFF<br>
--   USE_PROF              : OFF<br>
--   USE_QNNPACK           : True<br>
--   USE_REDIS             : OFF<br>
--   USE_ROCKSDB           : OFF<br>
--   USE_ZMQ               : OFF<br>
--   USE_DISTRIBUTED       : True<br>
--     USE_MPI             : OFF<br>
--     USE_GLOO            : ON<br>
--     USE_GLOO_IBVERBS    : OFF<br>
--   Public Dependencies  : Threads::Threads<br>
--   Private Dependencies : qnnpack;cpuinfo;fp16;gloo;onnxifi_loader;gcc_s;gcc;dl<br>
-- Configuring incomplete, errors occurred!<br>
See also "/home/simon/Downloads/pytorch/build/CMakeFiles/CMakeOutput.log".<br>
See also "/home/simon/Downloads/pytorch/build/CMakeFiles/CMakeError.log".<br>
Traceback (most recent call last):<br>
File "setup.py", line 734, in <br>
build_deps()<br>
File "setup.py", line 281, in build_deps<br>
build_dir='build')<br>
File "/home/simon/Downloads/pytorch/tools/build_pytorch_libs.py", line 235, in build_caffe2<br>
my_env)<br>
File "/home/simon/Downloads/pytorch/tools/build_pytorch_libs.py", line 215, in run_cmake<br>
check_call(cmake_args, cwd=build_dir, env=my_env)<br>
File "/usr/lib/python3.6/subprocess.py", line 291, in check_call<br>
raise CalledProcessError(retcode, cmd)<br>
subprocess.CalledProcessError: Command '['cmake', '/home/simon/Downloads/pytorch', '-DBUILDING_WITH_TORCH_LIBS=ON', '-DBUILD_BINARY=False', '-DBUILD_CAFFE2_OPS=True', '-DBUILD_PYTHON=True', '-DBUILD_SHARED_LIBS=ON', '-DBUILD_TEST=True', '-DBUILD_TORCH=ON', '-DCAFFE2_STATIC_LINK_CUDA=False', '-DCMAKE_BUILD_TYPE=Release', '-DCMAKE_CXX_FLAGS= ', '-DCMAKE_C_FLAGS= ', '-DCMAKE_EXE_LINKER_FLAGS=', '-DCMAKE_INSTALL_PREFIX=/home/simon/Downloads/pytorch/torch', '-DCMAKE_PREFIX_PATH=/usr/lib/python3/dist-packages', '-DCMAKE_SHARED_LINKER_FLAGS=', '-DINSTALL_TEST=True', '-DNCCL_EXTERNAL=False', '-DNUMPY_INCLUDE_DIR=/usr/lib/python3/dist-packages/numpy/core/include', '-DONNX_ML=False', '-DONNX_NAMESPACE=onnx_torch', '-DPYTHON_EXECUTABLE=/usr/local/bin/python3', '-DPYTHON_INCLUDE_DIR=/usr/include/python3.6m', '-DPYTHON_LIBRARY=/usr/lib/libpython3.6m.so.1.0', '-DTHD_SO_VERSION=1', '-DTORCH_BUILD_VERSION=1.1.0a0+562fa55', '-DUSE_CUDA=False', '-DUSE_DISTRIBUTED=True', '-DUSE_FBGEMM=True', '-DUSE_FFMPEG=False', '-DUSE_LEVELDB=False', '-DUSE_LMDB=False', '-DUSE_MKLDNN=False', '-DUSE_NCCL=False', '-DUSE_NNPACK=True', '-DUSE_NUMPY=True', '-DUSE_OPENCV=False', '-DUSE_QNNPACK=True', '-DUSE_ROCM=False', '-DUSE_SYSTEM_EIGEN_INSTALL=OFF', '-DUSE_SYSTEM_NCCL=False', '-DUSE_TENSORRT=False']' returned non-zero exit status 1.</p>
<h2 dir="auto"><g-emoji class="g-emoji" alias="rocket" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f680.png">🚀</g-emoji> Feature</h2>
<p dir="auto">Hey folks, I think the best path forward if you want to truly support mobile production environments is to make it easier to allow people to compile libtorch such that it can be used with Android Studio's NDK.</p>
<p dir="auto">Right now, given the current state of things, I'm forced to fall back on the protobuf, caffe2 solution. I do understand that things are still unstable &amp; a work in progress.</p>
<h2 dir="auto">Motivation</h2>
<p dir="auto">Current shared/static libs offered in the docs are pre-built for specific architectures &amp; thereby do not allow you to utilize libtorch on a robust set of production devices easily in the real-world.</p>
<p dir="auto">For example, in my case, I can't run libtorch even a rooted Android phone because the architecture (aarch64) still has differences in compilation due to the OS/ABI I suspect. The NDK has invested in solving this for developers already via a fairly robust toolchain. It's not obvious how to build pytorch via it &amp; then utilize those various static/shared libs to compile with the NDK.</p>
<p dir="auto">Additionally, it's not simple to just compile libtorch on an arm64 machine and run the binary on the phone.</p>
<h2 dir="auto">Pitch</h2>
<p dir="auto">NDK support will dramatically reduce the numerous pipeline of tools required for a mobile production environment.</p>
<p dir="auto">This will also help people who do not have the priviledge of developing on a rooted phone &amp; enable fast, client-side inference.</p>
<h2 dir="auto">Alternatives</h2>
<p dir="auto">pytorch -&gt; export to onnx -&gt; caffe2 -&gt; Write C++ w/ NDK -&gt; Java</p>