Hello
I tried to install pytorch on my raspberry pi 3, according to this tutorial:
https://gist.github.com/fgolemo/b973a3fa1aaa67ac61c480ae8440e754 95
But it don’t work.
Every time I got an Error from CMake
running install
running build_deps
+ WITH_CUDA=0
+ WITH_ROCM=0
+ WITH_NNPACK=0
+ WITH_MKLDNN=0
+ WITH_GLOO_IBVERBS=0
+ WITH_DISTRIBUTED_MW=0
+ [[ 4 -gt 0 ]]
+ case "$1" in
+ WITH_NNPACK=1
+ shift
+ [[ 3 -gt 0 ]]
+ case "$1" in
+ break
+ CMAKE_INSTALL='make install'
+ USER_CFLAGS=
+ USER_LDFLAGS=
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
++ dirname tools/build_pytorch_libs.sh
+ cd tools/..
+++ pwd
++ printf '%q\n' /root/Download/pytorch
+ PWD=/root/Download/pytorch
+ BASE_DIR=/root/Download/pytorch
+ TORCH_LIB_DIR=/root/Download/pytorch/torch/lib
+ INSTALL_DIR=/root/Download/pytorch/torch/lib/tmp_install
+ THIRD_PARTY_DIR=/root/Download/pytorch/third_party
+ CMAKE_VERSION=cmake
+ C_FLAGS=' -DTH_INDEX_BASE=0 -I"/root/Download/pytorch/torch/lib/tmp_install/include"   -I"/root/Download/pytorch/torch/lib/tmp_install/include/TH" -I"/root/Download/pytorch/torch/lib/tmp_install/include/THC"   -I"/root/Download/pytorch/torch/lib/tmp_install/include/THS" -I"/root/Download/pytorch/torch/lib/tmp_install/include/THCS"   -I"/root/Download/pytorch/torch/lib/tmp_install/include/THNN" -I"/root/Download/pytorch/torch/lib/tmp_install/include/THCUNN"'
+ C_FLAGS=' -DTH_INDEX_BASE=0 -I"/root/Download/pytorch/torch/lib/tmp_install/include"   -I"/root/Download/pytorch/torch/lib/tmp_install/include/TH" -I"/root/Download/pytorch/torch/lib/tmp_install/include/THC"   -I"/root/Download/pytorch/torch/lib/tmp_install/include/THS" -I"/root/Download/pytorch/torch/lib/tmp_install/include/THCS"   -I"/root/Download/pytorch/torch/lib/tmp_install/include/THNN" -I"/root/Download/pytorch/torch/lib/tmp_install/include/THCUNN" -DOMPI_SKIP_MPICXX=1'
+ LDFLAGS='-L"/root/Download/pytorch/torch/lib/tmp_install/lib" '
+ LD_POSTFIX=.so.1
+ LD_POSTFIX_UNVERSIONED=.so
++ uname
+ [[ Linux == \D\a\r\w\i\n ]]
+ LDFLAGS='-L"/root/Download/pytorch/torch/lib/tmp_install/lib"  -Wl,-rpath,$ORIGIN'
+ CPP_FLAGS=' -std=c++11 '
+ GLOO_FLAGS=
+ THD_FLAGS=
+ NCCL_ROOT_DIR=/root/Download/pytorch/torch/lib/tmp_install
+ [[ 0 -eq 1 ]]
+ [[ 0 -eq 1 ]]
+ [[ 0 -eq 1 ]]
+ CWRAP_FILES='/root/Download/pytorch/torch/lib/ATen/Declarations.cwrap;/root/Download/pytorch/torch/lib/THNN/generic/THNN.h;/root/Download/pytorch/torch/lib/THCUNN/generic/THCUNN.h;/root/Download/pytorch/torch/lib/ATen/nn.yaml'
+ CUDA_NVCC_FLAGS=' -DTH_INDEX_BASE=0 -I"/root/Download/pytorch/torch/lib/tmp_install/include"   -I"/root/Download/pytorch/torch/lib/tmp_install/include/TH" -I"/root/Download/pytorch/torch/lib/tmp_install/include/THC"   -I"/root/Download/pytorch/torch/lib/tmp_install/include/THS" -I"/root/Download/pytorch/torch/lib/tmp_install/include/THCS"   -I"/root/Download/pytorch/torch/lib/tmp_install/include/THNN" -I"/root/Download/pytorch/torch/lib/tmp_install/include/THCUNN" -DOMPI_SKIP_MPICXX=1'
+ [[ '' -eq 1 ]]
+ '[' -z 4 ']'
+ BUILD_TYPE=Release
+ [[ -n '' ]]
+ [[ -n '' ]]
+ echo 'Building in Release mode'
Building in Release mode
+ mkdir -p torch/lib/tmp_install
+ for arg in "$@"
+ [[ caffe2 == \n\c\c\l ]]
+ [[ caffe2 == \g\l\o\o ]]
+ [[ caffe2 == \c\a\f\f\e\2 ]]
+ pushd /root/Download/pytorch
~/Download/pytorch ~/Download/pytorch
+ build_caffe2
+ mkdir -p build
+ pushd build
~/Download/pytorch/build ~/Download/pytorch ~/Download/pytorch
+ cmake .. -DCMAKE_BUILD_TYPE=Release -DBUILD_CAFFE2=OFF -DBUILD_ATEN=ON -DBUILD_PYTHON=OFF -DBUILD_BINARY=OFF -DBUILD_SHARED_LIBS=ON -DUSE_CUDA=0 -DUSE_ROCM=0 -DUSE_NNPACK=1 -DCUDNN_INCLUDE_DIR= -DCUDNN_LIB_DIR= -DCUDNN_LIBRARY= -DUSE_MKLDNN=0 -DMKLDNN_INCLUDE_DIR= -DMKLDNN_LIB_DIR= -DMKLDNN_LIBRARY= -DCMAKE_INSTALL_PREFIX=/root/Download/pytorch/torch/lib/tmp_install -DCMAKE_EXPORT_COMPILE_COMMANDS=1 -DCMAKE_C_FLAGS= -DCMAKE_CXX_FLAGS= -DCMAKE_EXE_LINKER_FLAGS= -DCMAKE_SHARED_LINKER_FLAGS=
CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
Failed to run 'bash tools/build_pytorch_libs.sh --with-nnpack caffe2 nanopb libshm'

I hope someone can help me.