Jetson TX2: Pytorch install problem

I tried to install pytorch on my TX2, such as Install procedure for pyTorch on NVIDIA Jetson TX1/TX2 with JetPack <= 3.2.1. For JetPack 4.2 and Xavier/Nano/TX2, see https://devtalk.nvidia.com/default/topic/1049071/jetson-nano/pytorch-for-jetson-nano/ · GitHub. But it doesn’t word.
Does anyone share the wheel of pytorch for TX2? My TX2 version
JetPack 3.3, cuda 9.0, cudnn 7

Thanks guys.

Hi,

Could you share what kind of error do you meet?

We recently published a PyTorch installation tutorial for Jeton AGX Xavier:
Steps for TX2 should be similar.
[url]https://devtalk.nvidia.com/default/topic/1041716/jetson-agx-xavier/pytorch-install-problem/[/url]

Thanks.

I tried to use this method, but TX2 cuda version is 9.0. I don’t know how to modify it.
I used this tutorial you provided :
Python2.7
Download wheel file from here:
sudo apt-get install python-pip
pip install torch-1.0.0a0+8601b33-cp27-cp27mu-linux_aarch64.whl
pip install numpy

Torch can be found in pip list. When I import torch in python, the error showed:
ImportError: libcudart.so.10.0:cannot open shared object file: No such file or directory.

Thanks for your reply.

Hi,

Please follow the steps and build it by yourself.
Since the package is for Xavier, it will have some issue if running on TX2.

More, have you tried this script to build pyTorch from source?
[url]https://github.com/dusty-nv/jetson-scripts/blob/master/pytorch_jetson_install.sh[/url]

Thanks.

Thanks for your reply. I tried this cript to build pyTorch, but it still showed error as follows. LOL…

nvidia@tegra-ubuntu:~/pytorch$ python setup.py build_deps
running build_deps
/home/nvidia/pytorch/torch/_thnn/utils.py:1: RuntimeWarning: Parent module ‘torch._thnn’ not found while handling absolute import
import os
/home/nvidia/pytorch/torch/_thnn/utils.py:2: RuntimeWarning: Parent module ‘torch._thnn’ not found while handling absolute import
import itertools
/home/nvidia/pytorch/torch/_thnn/utils.py:3: RuntimeWarning: Parent module ‘torch._thnn’ not found while handling absolute import
import importlib
CMake Warning (dev) at /usr/local/share/cmake-3.7/Modules/FindOpenMP.cmake:179 (if):
if given arguments:

"TRUE"

An argument named “TRUE” appears in a conditional statement. Policy
CMP0012 is not set: if() recognizes numbers and boolean constants. Run
“cmake --help-policy CMP0012” for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
Call Stack (most recent call first):
/usr/local/share/cmake-3.7/Modules/FindOpenMP.cmake:224 (_OPENMP_GET_SPEC_DATE)
CMakeLists.txt:65 (FIND_PACKAGE)
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at /usr/local/share/cmake-3.7/Modules/FindOpenMP.cmake:179 (if):
if given arguments:

"TRUE"

An argument named “TRUE” appears in a conditional statement. Policy
CMP0012 is not set: if() recognizes numbers and boolean constants. Run
“cmake --help-policy CMP0012” for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
Call Stack (most recent call first):
/usr/local/share/cmake-3.7/Modules/FindOpenMP.cmake:266 (_OPENMP_GET_SPEC_DATE)
CMakeLists.txt:65 (FIND_PACKAGE)
This warning is for project developers. Use -Wno-dev to suppress it.

– Compiling with OpenMP support
– Could not find hardware support for NEON on this machine.
– No OMAP3 processor on this machine.
– No OMAP4 processor on this machine.
– asimd/Neon found with compiler flag : -D__NEON__
– TH_SO_VERSION: 1
– Atomics: using GCC intrinsics
– Checking for [mkl_gf_lp64 - mkl_gnu_thread - mkl_core - iomp5 - pthread - m]
– Library mkl_gf_lp64: not found
– Checking for [mkl_gf_lp64 - mkl_intel_thread - mkl_core - iomp5 - pthread - m]
– Library mkl_gf_lp64: not found
– Checking for [mkl_gf - mkl_gnu_thread - mkl_core - iomp5 - pthread - m]
– Library mkl_gf: not found
– Checking for [mkl_gf - mkl_intel_thread - mkl_core - iomp5 - pthread - m]
– Library mkl_gf: not found
– Checking for [mkl_intel_lp64 - mkl_gnu_thread - mkl_core - iomp5 - pthread - m]
– Library mkl_intel_lp64: not found
– Checking for [mkl_intel_lp64 - mkl_intel_thread - mkl_core - iomp5 - pthread - m]
– Library mkl_intel_lp64: not found
– Checking for [mkl_intel - mkl_gnu_thread - mkl_core - iomp5 - pthread - m]
– Library mkl_intel: not found
– Checking for [mkl_intel - mkl_intel_thread - mkl_core - iomp5 - pthread - m]
– Library mkl_intel: not found
– Checking for [mkl_gf_lp64 - mkl_gnu_thread - mkl_core - pthread - m]
– Library mkl_gf_lp64: not found
– Checking for [mkl_gf_lp64 - mkl_intel_thread - mkl_core - pthread - m]
– Library mkl_gf_lp64: not found
– Checking for [mkl_gf - mkl_gnu_thread - mkl_core - pthread - m]
– Library mkl_gf: not found
– Checking for [mkl_gf - mkl_intel_thread - mkl_core - pthread - m]
– Library mkl_gf: not found
– Checking for [mkl_intel_lp64 - mkl_gnu_thread - mkl_core - pthread - m]
– Library mkl_intel_lp64: not found
– Checking for [mkl_intel_lp64 - mkl_intel_thread - mkl_core - pthread - m]
– Library mkl_intel_lp64: not found
– Checking for [mkl_intel - mkl_gnu_thread - mkl_core - pthread - m]
– Library mkl_intel: not found
– Checking for [mkl_intel - mkl_intel_thread - mkl_core - pthread - m]
– Library mkl_intel: not found
– Checking for [mkl_gf_lp64 - mkl_sequential - mkl_core - m]
– Library mkl_gf_lp64: not found
– Checking for [mkl_gf - mkl_sequential - mkl_core - m]
– Library mkl_gf: not found
– Checking for [mkl_intel_lp64 - mkl_sequential - mkl_core - m]
– Library mkl_intel_lp64: not found
– Checking for [mkl_intel - mkl_sequential - mkl_core - m]
– Library mkl_intel: not found
– Checking for [mkl_gf_lp64 - mkl_sequential - mkl_core - m]
– Library mkl_gf_lp64: not found
– Checking for [mkl_gf - mkl_sequential - mkl_core - m]
– Library mkl_gf: not found
– Checking for [mkl_intel_lp64 - mkl_sequential - mkl_core - m]
– Library mkl_intel_lp64: not found
– Checking for [mkl_intel - mkl_sequential - mkl_core - m]
– Library mkl_intel: not found
– Checking for [mkl_gf_lp64 - mkl_gnu_thread - mkl_core - iomp5 - pthread - m]
– Library mkl_gf_lp64: not found
– Checking for [mkl_gf_lp64 - mkl_intel_thread - mkl_core - iomp5 - pthread - m]
– Library mkl_gf_lp64: not found
– Checking for [mkl_gf - mkl_gnu_thread - mkl_core - iomp5 - pthread - m]
– Library mkl_gf: not found
– Checking for [mkl_gf - mkl_intel_thread - mkl_core - iomp5 - pthread - m]
– Library mkl_gf: not found
– Checking for [mkl_intel_lp64 - mkl_gnu_thread - mkl_core - iomp5 - pthread - m]
– Library mkl_intel_lp64: not found
– Checking for [mkl_intel_lp64 - mkl_intel_thread - mkl_core - iomp5 - pthread - m]
– Library mkl_intel_lp64: not found
– Checking for [mkl_intel - mkl_gnu_thread - mkl_core - iomp5 - pthread - m]
– Library mkl_intel: not found
– Checking for [mkl_intel - mkl_intel_thread - mkl_core - iomp5 - pthread - m]
– Library mkl_intel: not found
– Checking for [mkl_gf_lp64 - mkl_gnu_thread - mkl_core - pthread - m]
– Library mkl_gf_lp64: not found
– Checking for [mkl_gf_lp64 - mkl_intel_thread - mkl_core - pthread - m]
– Library mkl_gf_lp64: not found
– Checking for [mkl_gf - mkl_gnu_thread - mkl_core - pthread - m]
– Library mkl_gf: not found
– Checking for [mkl_gf - mkl_intel_thread - mkl_core - pthread - m]
– Library mkl_gf: not found
– Checking for [mkl_intel_lp64 - mkl_gnu_thread - mkl_core - pthread - m]
– Library mkl_intel_lp64: not found
– Checking for [mkl_intel_lp64 - mkl_intel_thread - mkl_core - pthread - m]
– Library mkl_intel_lp64: not found
– Checking for [mkl_intel - mkl_gnu_thread - mkl_core - pthread - m]
– Library mkl_intel: not found
– Checking for [mkl_intel - mkl_intel_thread - mkl_core - pthread - m]
– Library mkl_intel: not found
– Checking for [mkl - guide - pthread - m]
– Library mkl: not found
– MKL library not found
– Checking for [openblas]
– Library openblas: BLAS_openblas_LIBRARY-NOTFOUND
– Checking for [openblas - pthread]
– Library openblas: BLAS_openblas_LIBRARY-NOTFOUND
– Checking for [goto2 - gfortran]
– Library goto2: BLAS_goto2_LIBRARY-NOTFOUND
– Checking for [goto2 - gfortran - pthread]
– Library goto2: BLAS_goto2_LIBRARY-NOTFOUND
– Checking for [acml - gfortran]
– Library acml: BLAS_acml_LIBRARY-NOTFOUND
– Checking for [Accelerate]
– Library Accelerate: BLAS_Accelerate_LIBRARY-NOTFOUND
– Checking for [vecLib]
– Library vecLib: BLAS_vecLib_LIBRARY-NOTFOUND
– Checking for [ptf77blas - atlas - gfortran]
– Library ptf77blas: BLAS_ptf77blas_LIBRARY-NOTFOUND
– Checking for [blas]
– Library blas: BLAS_blas_LIBRARY-NOTFOUND
– Cannot find a library with BLAS API. Not using BLAS.
– Checking for [mkl_gf_lp64 - mkl_gnu_thread - mkl_core - iomp5 - pthread - m]
– Library mkl_gf_lp64: not found
– Checking for [mkl_gf_lp64 - mkl_intel_thread - mkl_core - iomp5 - pthread - m]
– Library mkl_gf_lp64: not found
– Checking for [mkl_gf - mkl_gnu_thread - mkl_core - iomp5 - pthread - m]
– Library mkl_gf: not found
– Checking for [mkl_gf - mkl_intel_thread - mkl_core - iomp5 - pthread - m]
– Library mkl_gf: not found
– Checking for [mkl_intel_lp64 - mkl_gnu_thread - mkl_core - iomp5 - pthread - m]
– Library mkl_intel_lp64: not found
– Checking for [mkl_intel_lp64 - mkl_intel_thread - mkl_core - iomp5 - pthread - m]
– Library mkl_intel_lp64: not found
– Checking for [mkl_intel - mkl_gnu_thread - mkl_core - iomp5 - pthread - m]
– Library mkl_intel: not found
– Checking for [mkl_intel - mkl_intel_thread - mkl_core - iomp5 - pthread - m]
– Library mkl_intel: not found
– Checking for [mkl_gf_lp64 - mkl_gnu_thread - mkl_core - pthread - m]
– Library mkl_gf_lp64: not found
– Checking for [mkl_gf_lp64 - mkl_intel_thread - mkl_core - pthread - m]
– Library mkl_gf_lp64: not found
– Checking for [mkl_gf - mkl_gnu_thread - mkl_core - pthread - m]
– Library mkl_gf: not found
– Checking for [mkl_gf - mkl_intel_thread - mkl_core - pthread - m]
– Library mkl_gf: not found
– Checking for [mkl_intel_lp64 - mkl_gnu_thread - mkl_core - pthread - m]
– Library mkl_intel_lp64: not found
– Checking for [mkl_intel_lp64 - mkl_intel_thread - mkl_core - pthread - m]
– Library mkl_intel_lp64: not found
– Checking for [mkl_intel - mkl_gnu_thread - mkl_core - pthread - m]
– Library mkl_intel: not found
– Checking for [mkl_intel - mkl_intel_thread - mkl_core - pthread - m]
– Library mkl_intel: not found
– Checking for [mkl_gf_lp64 - mkl_sequential - mkl_core - m]
– Library mkl_gf_lp64: not found
– Checking for [mkl_gf - mkl_sequential - mkl_core - m]
– Library mkl_gf: not found
– Checking for [mkl_intel_lp64 - mkl_sequential - mkl_core - m]
– Library mkl_intel_lp64: not found
– Checking for [mkl_intel - mkl_sequential - mkl_core - m]
– Library mkl_intel: not found
– Checking for [mkl_gf_lp64 - mkl_sequential - mkl_core - m]
– Library mkl_gf_lp64: not found
– Checking for [mkl_gf - mkl_sequential - mkl_core - m]
– Library mkl_gf: not found
– Checking for [mkl_intel_lp64 - mkl_sequential - mkl_core - m]
– Library mkl_intel_lp64: not found
– Checking for [mkl_intel - mkl_sequential - mkl_core - m]
– Library mkl_intel: not found
– Checking for [mkl_gf_lp64 - mkl_gnu_thread - mkl_core - iomp5 - pthread - m]
– Library mkl_gf_lp64: not found
– Checking for [mkl_gf_lp64 - mkl_intel_thread - mkl_core - iomp5 - pthread - m]
– Library mkl_gf_lp64: not found
– Checking for [mkl_gf - mkl_gnu_thread - mkl_core - iomp5 - pthread - m]
– Library mkl_gf: not found
– Checking for [mkl_gf - mkl_intel_thread - mkl_core - iomp5 - pthread - m]
– Library mkl_gf: not found
– Checking for [mkl_intel_lp64 - mkl_gnu_thread - mkl_core - iomp5 - pthread - m]
– Library mkl_intel_lp64: not found
– Checking for [mkl_intel_lp64 - mkl_intel_thread - mkl_core - iomp5 - pthread - m]
– Library mkl_intel_lp64: not found
– Checking for [mkl_intel - mkl_gnu_thread - mkl_core - iomp5 - pthread - m]
– Library mkl_intel: not found
– Checking for [mkl_intel - mkl_intel_thread - mkl_core - iomp5 - pthread - m]
– Library mkl_intel: not found
– Checking for [mkl_gf_lp64 - mkl_gnu_thread - mkl_core - pthread - m]
– Library mkl_gf_lp64: not found
– Checking for [mkl_gf_lp64 - mkl_intel_thread - mkl_core - pthread - m]
– Library mkl_gf_lp64: not found
– Checking for [mkl_gf - mkl_gnu_thread - mkl_core - pthread - m]
– Library mkl_gf: not found
– Checking for [mkl_gf - mkl_intel_thread - mkl_core - pthread - m]
– Library mkl_gf: not found
– Checking for [mkl_intel_lp64 - mkl_gnu_thread - mkl_core - pthread - m]
– Library mkl_intel_lp64: not found
– Checking for [mkl_intel_lp64 - mkl_intel_thread - mkl_core - pthread - m]
– Library mkl_intel_lp64: not found
– Checking for [mkl_intel - mkl_gnu_thread - mkl_core - pthread - m]
– Library mkl_intel: not found
– Checking for [mkl_intel - mkl_intel_thread - mkl_core - pthread - m]
– Library mkl_intel: not found
– Checking for [mkl - guide - pthread - m]
– Library mkl: not found
– MKL library not found
– Checking for [openblas]
– Library openblas: BLAS_openblas_LIBRARY-NOTFOUND
– Checking for [openblas - pthread]
– Library openblas: BLAS_openblas_LIBRARY-NOTFOUND
– Checking for [goto2 - gfortran]
– Library goto2: BLAS_goto2_LIBRARY-NOTFOUND
– Checking for [goto2 - gfortran - pthread]
– Library goto2: BLAS_goto2_LIBRARY-NOTFOUND
– Checking for [acml - gfortran]
– Library acml: BLAS_acml_LIBRARY-NOTFOUND
– Checking for [Accelerate]
– Library Accelerate: BLAS_Accelerate_LIBRARY-NOTFOUND
– Checking for [vecLib]
– Library vecLib: BLAS_vecLib_LIBRARY-NOTFOUND
– Checking for [ptf77blas - atlas - gfortran]
– Library ptf77blas: BLAS_ptf77blas_LIBRARY-NOTFOUND
– Checking for [blas]
– Library blas: BLAS_blas_LIBRARY-NOTFOUND
– Cannot find a library with BLAS API. Not using BLAS.
– LAPACK requires BLAS
– Cannot find a library with LAPACK API. Not using LAPACK.
– Configuring done
– Generating done
– Build files have been written to: /home/nvidia/pytorch/torch/lib/build/TH
[100%] Built target TH
Install the project…
– Install configuration: “Release”
– Installing: /home/nvidia/pytorch/torch/lib/tmp_install/lib/libTH.so.1
– Installing: /home/nvidia/pytorch/torch/lib/tmp_install/lib/libTH.so
– Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/TH/TH.h
– Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/TH/THAllocator.h
– Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/TH/THMath.h
– Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/TH/THBlas.h
– Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/TH/THDiskFile.h
– Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/TH/THFile.h
– Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/TH/THFilePrivate.h
– Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/TH/THGeneral.h
– Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/TH/THGenerateAllTypes.h
– Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/TH/THGenerateHalfType.h
– Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/TH/THGenerateFloatTypes.h
– Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/TH/THGenerateIntTypes.h
– Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/TH/THLapack.h
– Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/TH/THLogAdd.h
– Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/TH/THMemoryFile.h
– Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/TH/THRandom.h
– Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/TH/THStorage.h
– Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/TH/THTensor.h
– Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/TH/THTensorApply.h
– Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/TH/THTensorDimApply.h
– Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/TH/THTensorMacros.h
– Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/TH/THVector.h
– Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/TH/THAtomic.h
– Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/TH/THHalf.h
– Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/TH/vector/AVX.h
– Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/TH/vector/AVX2.h
– Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/TH/generic/THBlas.c
– Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/TH/generic/THBlas.h
– Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/TH/generic/THLapack.c
– Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/TH/generic/THLapack.h
– Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/TH/generic/THStorage.c
– Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/TH/generic/THStorage.h
– Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/TH/generic/THStorageCopy.c
– Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/TH/generic/THStorageCopy.h
– Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/TH/generic/THTensor.c
– Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/TH/generic/THTensor.h
– Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/TH/generic/THTensorConv.c
– Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/TH/generic/THTensorConv.h
– Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/TH/generic/THTensorCopy.c
– Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/TH/generic/THTensorCopy.h
– Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/TH/generic/THTensorLapack.c
– Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/TH/generic/THTensorLapack.h
– Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/TH/generic/THTensorMath.c
– Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/TH/generic/THTensorMath.h
– Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/TH/generic/THTensorRandom.c
– Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/TH/generic/THTensorRandom.h
– Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/TH/generic/THVectorDispatch.c
– Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/TH/generic/THVector.h
– Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/share/cmake/TH/THConfig.cmake
– TH_LIBRARIES: /home/nvidia/pytorch/torch/lib/tmp_install/lib/libTH.so.1
– THS_SO_VERSION: 1
– Configuring done
– Generating done
– Build files have been written to: /home/nvidia/pytorch/torch/lib/build/THS
Scanning dependencies of target THS
[ 50%] Building C object CMakeFiles/THS.dir/THSTensor.c.o
[100%] Linking C shared library libTHS.so
[100%] Built target THS
Install the project…
– Install configuration: “Release”
– Installing: /home/nvidia/pytorch/torch/lib/tmp_install/lib/libTHS.so.1
– Installing: /home/nvidia/pytorch/torch/lib/tmp_install/lib/libTHS.so
– Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/THS/THS.h
– Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/THS/THSGenerateAllTypes.h
– Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/THS/THSGenerateFloatTypes.h
– Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/THS/THSGenerateIntTypes.h
– Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/THS/THSTensor.h
– Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/THS/generic/THSTensor.c
– Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/THS/generic/THSTensor.h
– Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/THS/generic/THSTensorMath.c
– Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/THS/generic/THSTensorMath.h
– TH_LIBRARIES: /home/nvidia/pytorch/torch/lib/tmp_install/lib/libTH.so.1
CMake Warning (dev) at /usr/local/share/cmake-3.7/Modules/FindOpenMP.cmake:179 (if):
if given arguments:

"TRUE"

An argument named “TRUE” appears in a conditional statement. Policy
CMP0012 is not set: if() recognizes numbers and boolean constants. Run
“cmake --help-policy CMP0012” for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
Call Stack (most recent call first):
/usr/local/share/cmake-3.7/Modules/FindOpenMP.cmake:224 (_OPENMP_GET_SPEC_DATE)
CMakeLists.txt:52 (FIND_PACKAGE)
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at /usr/local/share/cmake-3.7/Modules/FindOpenMP.cmake:179 (if):
if given arguments:

"TRUE"

An argument named “TRUE” appears in a conditional statement. Policy
CMP0012 is not set: if() recognizes numbers and boolean constants. Run
“cmake --help-policy CMP0012” for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
Call Stack (most recent call first):
/usr/local/share/cmake-3.7/Modules/FindOpenMP.cmake:266 (_OPENMP_GET_SPEC_DATE)
CMakeLists.txt:52 (FIND_PACKAGE)
This warning is for project developers. Use -Wno-dev to suppress it.

– Compiling with OpenMP support
CMake Warning (dev) at CMakeLists.txt:61 (LINK_DIRECTORIES):
This command specifies the relative path

as a link directory.

Policy CMP0015 is not set: link_directories() treats paths relative to the
source dir. Run “cmake --help-policy CMP0015” for policy details. Use the
cmake_policy command to set the policy and suppress this warning.
This warning is for project developers. Use -Wno-dev to suppress it.

– THNN_SO_VERSION: 1
– Configuring done
– Generating done
– Build files have been written to: /home/nvidia/pytorch/torch/lib/build/THNN
[100%] Built target THNN
Install the project…
– Install configuration: “Release”
– Installing: /home/nvidia/pytorch/torch/lib/tmp_install/lib/libTHNN.so.1
– Installing: /home/nvidia/pytorch/torch/lib/tmp_install/lib/libTHNN.so
– Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/THNN/THNN.h
– Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/THNN/generic/THNN.h
– Removing -DNDEBUG from compile flags
– TH_LIBRARIES: /home/nvidia/pytorch/torch/lib/tmp_install/lib/libTH.so.1
– MAGMA not found. Compiling without MAGMA support
– Autodetected CUDA architecture(s): 6.2
– got cuda version 9.0
– Found CUDA with FP16 support, compiling with torch.CudaHalfTensor
– CUDA_NVCC_FLAGS: -DTH_INDEX_BASE=0 -I/home/nvidia/pytorch/torch/lib/tmp_install/include -I/home/nvidia/pytorch/torch/lib/tmp_install/include/TH -I/home/nvidia/pytorch/torch/lib/tmp_install/include/THC -I/home/nvidia/pytorch/torch/lib/tmp_install/include/THS -I/home/nvidia/pytorch/torch/lib/tmp_install/include/THCS -I/home/nvidia/pytorch/torch/lib/tmp_install/include/THPP;-gencode;arch=compute_62,code=sm_62;-DCUDA_HAS_FP16=1
– THC_SO_VERSION: 1
– Configuring done
– Generating done
– Build files have been written to: /home/nvidia/pytorch/torch/lib/build/THC
[ 1%] Building NVCC (Device) object CMakeFiles/THC.dir/THC_generated_THCHalf.cu.o
[ 3%] Building NVCC (Device) object CMakeFiles/THC.dir/THC_generated_THCBlas.cu.o
[ 3%] Building NVCC (Device) object CMakeFiles/THC.dir/THC_generated_THCReduceApplyUtils.cu.o
[ 5%] Building NVCC (Device) object CMakeFiles/THC.dir/THC_generated_THCSleep.cu.o
[ 6%] Building NVCC (Device) object CMakeFiles/THC.dir/THC_generated_THCStorage.cu.o
[ 7%] Building NVCC (Device) object CMakeFiles/THC.dir/THC_generated_THCStorageCopy.cu.o
[ 8%] Building NVCC (Device) object CMakeFiles/THC.dir/THC_generated_THCTensor.cu.o
[ 10%] Building NVCC (Device) object CMakeFiles/THC.dir/THC_generated_THCTensorCopy.cu.o
[ 11%] Building NVCC (Device) object CMakeFiles/THC.dir/THC_generated_THCTensorMath.cu.o
/home/nvidia/pytorch/torch/lib/THC/THCHalf.cu(40): error: class “__half” has no member “x”

/home/nvidia/pytorch/torch/lib/THC/THCHalf.cu(41): error: class “__half” has no member “x”

/home/nvidia/pytorch/torch/lib/THC/THCHalf.cu(42): error: class “__half” has no member “x”

/home/nvidia/pytorch/torch/lib/THC/THCHalf.cu(80): error: class “__half” has no member “x”

/home/nvidia/pytorch/torch/lib/THC/THCHalf.cu(88): error: class “__half” has no member “x”

/home/nvidia/pytorch/torch/lib/THC/THCHalf.cu(92): error: class “__half” has no member “x”

/home/nvidia/pytorch/torch/lib/THC/THCHalf.cu(122): error: class “__half” has no member “x”

7 errors detected in the compilation of “/tmp/tmpxft_00005433_00000000-6_THCHalf.cpp1.ii”.
CMake Error at THC_generated_THCHalf.cu.o.cmake:267 (message):
Error generating file
/home/nvidia/pytorch/torch/lib/build/THC/CMakeFiles/THC.dir//./THC_generated_THCHalf.cu.o

CMakeFiles/THC.dir/build.make:3839: recipe for target ‘CMakeFiles/THC.dir/THC_generated_THCHalf.cu.o’ failed
make[2]: *** [CMakeFiles/THC.dir/THC_generated_THCHalf.cu.o] Error 1
make[2]: *** Waiting for unfinished jobs…
/home/nvidia/pytorch/torch/lib/THC/THCTensorTypeUtils.cuh(171): error: class “__half” has no member “x”

/home/nvidia/pytorch/torch/lib/THC/THCTensorTypeUtils.cuh(171): error: class “__half” has no member “x”

/home/nvidia/pytorch/torch/lib/THC/THCTensorTypeUtils.cuh(175): error: class “__half” has no member “x”

/home/nvidia/pytorch/torch/lib/THC/THCTensorTypeUtils.cuh(175): error: class “__half” has no member “x”

/home/nvidia/pytorch/torch/lib/THC/THCNumerics.cuh(114): error: class “__half” has no member “x”

/home/nvidia/pytorch/torch/lib/THC/THCNumerics.cuh(115): error: class “__half” has no member “x”

6 errors detected in the compilation of “/tmp/tmpxft_000054a3_00000000-6_THCTensorCopy.cpp1.ii”.
CMake Error at THC_generated_THCTensorCopy.cu.o.cmake:267 (message):
Error generating file
/home/nvidia/pytorch/torch/lib/build/THC/CMakeFiles/THC.dir//./THC_generated_THCTensorCopy.cu.o

CMakeFiles/THC.dir/build.make:1866: recipe for target ‘CMakeFiles/THC.dir/THC_generated_THCTensorCopy.cu.o’ failed
make[2]: *** [CMakeFiles/THC.dir/THC_generated_THCTensorCopy.cu.o] Error 1
/home/nvidia/pytorch/torch/lib/THC/THCTensorTypeUtils.cuh(171): error: class “__half” has no member “x”

/home/nvidia/pytorch/torch/lib/THC/THCTensorTypeUtils.cuh(171): error: class “__half” has no member “x”

/home/nvidia/pytorch/torch/lib/THC/THCTensorTypeUtils.cuh(175): error: class “__half” has no member “x”

/home/nvidia/pytorch/torch/lib/THC/THCTensorTypeUtils.cuh(175): error: class “__half” has no member “x”

/home/nvidia/pytorch/torch/lib/THC/THCNumerics.cuh(114): error: class “__half” has no member “x”

/home/nvidia/pytorch/torch/lib/THC/THCNumerics.cuh(115): error: class “__half” has no member “x”

6 errors detected in the compilation of “/tmp/tmpxft_000054c3_00000000-6_THCTensorMath.cpp1.ii”.
CMake Error at THC_generated_THCTensorMath.cu.o.cmake:267 (message):
Error generating file
/home/nvidia/pytorch/torch/lib/build/THC/CMakeFiles/THC.dir//./THC_generated_THCTensorMath.cu.o

CMakeFiles/THC.dir/build.make:2683: recipe for target ‘CMakeFiles/THC.dir/THC_generated_THCTensorMath.cu.o’ failed
make[2]: *** [CMakeFiles/THC.dir/THC_generated_THCTensorMath.cu.o] Error 1
CMakeFiles/Makefile2:67: recipe for target ‘CMakeFiles/THC.dir/all’ failed
make[1]: *** [CMakeFiles/THC.dir/all] Error 2
Makefile:127: recipe for target ‘all’ failed
make: *** [all] Error 2
nvidia@tegra-ubuntu:~/pytorch$ – Checking for [mkl_intel_lp64 - mkl_gnu_thread - mkl_core - pthread - m]
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ – Library mkl_intel_lp64: not found
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ – Checking for [mkl_intel_lp64 - mkl_intel_thread - mkl_core - pthread - m]
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ – Library mkl_intel_lp64: not found
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ – Checking for [mkl_intel - mkl_gnu_thread - mkl_core - pthread - m]
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ – Library mkl_intel: not found
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ – Checking for [mkl_intel - mkl_intel_thread - mkl_core - pthread - m]
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ – Library mkl_intel: not found
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ – Checking for [mkl - guide - pthread - m]
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ – Library mkl: not found
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ – MKL library not found
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ – Checking for [openblas]
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ – Library openblas: BLAS_openblas_LIBRARY-NOTFOUND
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ – Checking for [openblas - pthread]
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ – Library openblas: BLAS_openblas_LIBRARY-NOTFOUND
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ – Checking for [goto2 - gfortran]
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ – Library goto2: BLAS_goto2_LIBRARY-NOTFOUND
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ – Checking for [goto2 - gfortran - pthread]
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ – Library goto2: BLAS_goto2_LIBRARY-NOTFOUND
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ – Checking for [acml - gfortran]
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ – Library acml: BLAS_acml_LIBRARY-NOTFOUND
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ – Checking for [Accelerate]
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ – Library Accelerate: BLAS_Accelerate_LIBRARY-NOTFOUND
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ – Checking for [vecLib]
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ – Library vecLib: BLAS_vecLib_LIBRARY-NOTFOUND
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ – Checking for [ptf77blas - atlas - gfortran]
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ – Library ptf77blas: BLAS_ptf77blas_LIBRARY-NOTFOUND
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ – Checking for [blas]
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ – Library blas: BLAS_blas_LIBRARY-NOTFOUND
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ – Cannot find a library with BLAS API. Not using BLAS.
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ – LAPACK requires BLAS
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ – Cannot find a library with LAPACK API. Not using LAPACK.
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ – Configuring done
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ – Generating done
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ – Build files have been written to: /home/nvidia/pytorch/torch/lib/build/TH
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ [100%] Built target TH
bash: [100%]: command not found
nvidia@tegra-ubuntu:~/pytorch$ Install the project…
bash: Install: command not found
nvidia@tegra-ubuntu:~/pytorch$ – Install configuration: “Release”
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ – Installing: /home/nvidia/pytorch/torch/lib/tmp_install/lib/libTH.so.1
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ – Installing: /home/nvidia/pytorch/torch/lib/tmp_install/lib/libTH.so
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ – Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/TH/TH.h
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ – Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/TH/THAllocator.h
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ – Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/TH/THMath.h
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ – Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/TH/THBlas.h
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ – Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/TH/THDiskFile.h
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ – Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/TH/THFile.h
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ – Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/TH/THFilePrivate.h
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ – Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/TH/THGeneral.h
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ – Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/TH/THGenerateAllTypes.h
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ – Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/TH/THGenerateHalfType.h
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ – Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/TH/THGenerateFloatTypes.h
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ – Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/TH/THGenerateIntTypes.h
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ – Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/TH/THLapack.h
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ – Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/TH/THLogAdd.h
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ – Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/TH/THMemoryFile.h
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ – Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/TH/THRandom.h
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ – Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/TH/THStorage.h
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ – Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/TH/THTensor.h
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ – Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/TH/THTensorApply.h
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ – Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/TH/THTensorDimApply.h
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ – Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/TH/THTensorMacros.h
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ – Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/TH/THVector.h
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ – Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/TH/THAtomic.h
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ – Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/TH/THHalf.h
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ – Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/TH/vector/AVX.h
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ – Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/TH/vector/AVX2.h
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ – Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/TH/generic/THBlas.c
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ – Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/TH/generic/THBlas.h
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ – Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/TH/generic/THLapack.c
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ – Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/TH/generic/THLapack.h
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ – Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/TH/generic/THStorage.c
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ – Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/TH/generic/THStorage.h
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ – Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/TH/generic/THStorageCopy.c
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ – Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/TH/generic/THStorageCopy.h
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ – Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/TH/generic/THTensor.c
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ – Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/TH/generic/THTensor.h
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ – Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/TH/generic/THTensorConv.c
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ – Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/TH/generic/THTensorConv.h
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ – Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/TH/generic/THTensorCopy.c
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ – Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/TH/generic/THTensorCopy.h
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ – Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/TH/generic/THTensorLapack.c
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ – Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/TH/generic/THTensorLapack.h
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ – Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/TH/generic/THTensorMath.c
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ – Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/TH/generic/THTensorMath.h
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ – Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/TH/generic/THTensorRandom.c
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ – Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/TH/generic/THTensorRandom.h
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ – Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/TH/generic/THVectorDispatch.c
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ – Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/TH/generic/THVector.h
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ – Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/share/cmake/TH/THConfig.cmake
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ – TH_LIBRARIES: /home/nvidia/pytorch/torch/lib/tmp_install/lib/libTH.so.1
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ – THS_SO_VERSION: 1
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ – Configuring done
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ – Generating done
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ – Build files have been written to: /home/nvidia/pytorch/torch/lib/build/THS
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ Scanning dependencies of target THS
bash: Scanning: command not found
nvidia@tegra-ubuntu:~/pytorch$ [ 50%] Building C object CMakeFiles/THS.dir/THSTensor.c.o
6bash: [: missing ]' nvidia@tegra-ubuntu:~/pytorch$ [100%] Linking C shared library libTHS.so bash: [100%]: command not found nvidia@tegra-ubuntu:~/pytorch$ [100%] Built target THS bash: [100%]: command not found nvidia@tegra-ubuntu:~/pytorch$ Install the project... nbash: Install: command not found nvidia@tegra-ubuntu:~/pytorch$ -- Install configuration: "Release" bash: --: command not found nvidia@tegra-ubuntu:~/pytorch$ -- Installing: /home/nvidia/pytorch/torch/lib/tmp_install/lib/libTHS.so.1 bash: --: command not found nvidia@tegra-ubuntu:~/pytorch$ -- Installing: /home/nvidia/pytorch/torch/lib/tmp_install/lib/libTHS.so bash: --: command not found nvidia@tegra-ubuntu:~/pytorch$ -- Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/THS/THS.h bash: --: command not found nvidia@tegra-ubuntu:~/pytorch$ -- Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/THS/THSGenerateAllTypes.h bash: --: command not found nvidia@tegra-ubuntu:~/pytorch$ -- Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/THS/THSGenerateFloatTypes.h bash: --: command not found nvidia@tegra-ubuntu:~/pytorch$ -- Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/THS/THSGenerateIntTypes.h bash: --: command not found nvidia@tegra-ubuntu:~/pytorch$ -- Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/THS/THSTensor.h bash: --: command not found nvidia@tegra-ubuntu:~/pytorch$ -- Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/THS/generic/THSTensor.c bash: --: command not found nvidia@tegra-ubuntu:~/pytorch$ -- Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/THS/generic/THSTensor.h bash: --: command not found Device) object CMakeFiles/THC.dir/THC_generated_THCTensorCopy.cu.o [ 11%] Building NVCC (Dnvidia@tegra-ubuntu:~/pytorch$ -- Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/THS/generic/THSTensorMath.c bash: --: command not found nvidia@tegra-ubuntu:~/pytorch$ -- Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/THS/generic/THSTensorMath.h bash: --: command not found nvidia@tegra-ubuntu:~/pytorch$ -- TH_LIBRARIES: /home/nvidia/pytorch/torch/lib/tmp_install/lib/libTH.so.1 bash: --: command not found nvidia@tegra-ubuntu:~/pytorch$ CMake Warning (dev) at /usr/local/share/cmake-3.7/Modules/FindOpenMP.cmake:179 (if): bash: syntax error near unexpected token (’
nvidia@tegra-ubuntu:~/pytorch$ if given arguments:

i> “TRUE”

An argument named “TRUE” appears in a conditional statement. Policy
CMP0012 is not set: if() recognizes numbers and boolean constants. Run
bash: syntax error near unexpected token (' nvidia@tegra-ubuntu:~/pytorch$ "cmake --help-policy CMP0012" for policy details. Use the cmake_policy bash: cmake --help-policy CMP0012: command not found nvidia@tegra-ubuntu:~/pytorch$ command to set the policy and suppress this warning. bash: to: command not found nvidia@tegra-ubuntu:~/pytorch$ Call Stack (most recent call first): bash: syntax error near unexpected token (’
nvidia@tegra-ubuntu:~/pytorch$ /usr/local/share/cmake-3.7/Modules/FindOpenMP.cmake:224 (_OPENMP_GET_SPEC_DATE)
bash: syntax error near unexpected token _OPENMP_GET_SPEC_DATE' nvidia@tegra-ubuntu:~/pytorch$ CMakeLists.txt:52 (FIND_PACKAGE) bash: syntax error near unexpected token FIND_PACKAGE’
nvidia@tegra-ubuntu:~/pytorch$ This warning is for project developers. Use -Wno-dev to suppress it.
bash: This: command not found
nvidia@tegra-ubuntu:~/pytorch$
nvidia@tegra-ubuntu:~/pytorch$ CMake Warning (dev) at /usr/local/share/cmake-3.7/Modules/FindOpenMP.cmake:179 (if):
bash: syntax error near unexpected token `(’
nvidia@tegra-ubuntu:~/pytorch$ if given arguments:

"TRUE"

An argument named “TRUE” appears in a conditional statement. Policy
CMP0012 is not set: if() recognizes numbers and boolean constants. Run
bash: syntax error near unexpected token (' nvidia@tegra-ubuntu:~/pytorch$ "cmake --help-policy CMP0012" for policy details. Use the cmake_policy bash: cmake --help-policy CMP0012: command not found nvidia@tegra-ubuntu:~/pytorch$ command to set the policy and suppress this warning. bash: to: command not found nvidia@tegra-ubuntu:~/pytorch$ Call Stack (most recent call first): bash: syntax error near unexpected token (’
nvidia@tegra-ubuntu:~/pytorch$ /usr/local/share/cmake-3.7/Modules/FindOpenMP.cmake:266 (_OPENMP_GET_SPEC_DATE)
bash: syntax error near unexpected token _OPENMP_GET_SPEC_DATE' nvidia@tegra-ubuntu:~/pytorch$ CMakeLists.txt:52 (FIND_PACKAGE) bash: syntax error near unexpected token FIND_PACKAGE’
nvidia@tegra-ubuntu:~/pytorch$ This warning is for project developers. Use -Wno-dev to suppress it.
bash: This: command not found
nvidia@tegra-ubuntu:~/pytorch$
nvidia@tegra-ubuntu:~/pytorch$ – Compiling with OpenMP support
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ CMake Warning (dev) at CMakeLists.txt:61 (LINK_DIRECTORIES):
bash: syntax error near unexpected token (' nvidia@tegra-ubuntu:~/pytorch$ This command specifies the relative path bash: This: command not found nvidia@tegra-ubuntu:~/pytorch$ nvidia@tegra-ubuntu:~/pytorch$ nvidia@tegra-ubuntu:~/pytorch$ nvidia@tegra-ubuntu:~/pytorch$ as a link directory. Assembler messages: Error: can't open a for reading: No such file or directory a: Error: can't open link for reading: No such file or directory link: Error: can't open directory. for reading: No such file or directory nvidia@tegra-ubuntu:~/pytorch$ nvidia@tegra-ubuntu:~/pytorch$ Policy CMP0015 is not set: link_directories() treats paths relative to the bash: syntax error near unexpected token (’
nvidia@tegra-ubuntu:~/pytorch$ source dir. Run “cmake --help-policy CMP0015” for policy details. Use the
bash: dir.: No such file or directory
nvidia@tegra-ubuntu:~/pytorch$ cmake_policy command to set the policy and suppress this warning.
bash: cmake_policy: command not found
nvidia@tegra-ubuntu:~/pytorch$ This warning is for project developers. Use -Wno-dev to suppress it.
bash: This: command not found
nvidia@tegra-ubuntu:~/pytorch$
nvidia@tegra-ubuntu:~/pytorch$ – THNN_SO_VERSION: 1
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ – Configuring done
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ – Generating done
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ – Build files have been written to: /home/nvidia/pytorch/torch/lib/build/THNN
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ [100%] Built target THNN
bash: [100%]: command not found
nvidia@tegra-ubuntu:~/pytorch$ Install the project…
bash: Install: command not found
nvidia@tegra-ubuntu:~/pytorch$ – Install configuration: “Release”
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ – Installing: /home/nvidia/pytorch/torch/lib/tmp_install/lib/libTHNN.so.1
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ – Installing: /home/nvidia/pytorch/torch/lib/tmp_install/lib/libTHNN.so
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ – Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/THNN/THNN.h
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ – Up-to-date: /home/nvidia/pytorch/torch/lib/tmp_install/include/THNN/generic/THNN.h
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ – Removing -DNDEBUG from compile flags
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ – TH_LIBRARIES: /home/nvidia/pytorch/torch/lib/tmp_install/lib/libTH.so.1
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ – MAGMA not found. Compiling without MAGMA support
bash: --: command not found
nvidia@tegra-ubuntu:~/pytorch$ – Autodetected CUDA architecture(s): 6.2
bash: syntax error near unexpected token (' nvidia@tegra-ubuntu:~/pytorch$ -- got cuda version 9.0 idbash: --: command not found nvidia@tegra-ubuntu:~/pytorch$ -- Found CUDA with FP16 support, compiling with torch.CudaHalfTensor bash: --: command not found nvidia@tegra-ubuntu:~/pytorch$ -- CUDA_NVCC_FLAGS: -DTH_INDEX_BASE=0 -I/home/nvidia/pytorch/torch/lib/tmp_install/include -I/home/nvidia/pytorch/torch/lib/tmp_install/include/TH -I/home/nvidia/pytorch/torch/lib/tmp_install/include/THC -I/home/nvidia/pytorch/torch/lib/tmp_install/include/THS -I/home/nvidia/pytorch/torch/lib/tmp_install/include/THCS -I/home/nvidia/pytorch/torch/lib/tmp_install/include/THPP;-gencode;arch=compute_62,code=sm_62;-DCUDA_HAS_FP16=1 bash: --: command not found bash: -gencode: command not found bash: -DCUDA_HAS_FP16=1: command not found nvidia@tegra-ubuntu:~/pytorch$ -- THC_SO_VERSION: 1 bash: --: command not found nvidia@tegra-ubuntu:~/pytorch$ -- Configuring done bash: --: command not found nvidia@tegra-ubuntu:~/pytorch$ -- Generating done bash: --: command not found nvidia@tegra-ubuntu:~/pytorch$ -- Build files have been written to: /home/nvidia/pytorch/torch/lib/build/THC bash: --: command not found nvidia@tegra-ubuntu:~/pytorch$ [ 1%] Building NVCC (Device) object CMakeFiles/THC.dir/THC_generated_THCHalf.cu.o bash: syntax error near unexpected token (’
nvidia@tegra-ubuntu:~/pytorch$ [ 3%] Building NVCC (Device) object CMakeFiles/THC.dir/THC_generated_THCBlas.cu.o
bash: syntax error near unexpected token (' nvidia@tegra-ubuntu:~/pytorch$ [ 3%] Building NVCC (Device) object CMakeFiles/THC.dir/THC_generated_THCReduceApplyUtils.cu.o bash: syntax error near unexpected token (’
nvidia@tegra-ubuntu:~/pytorch$ [ 5%] Building NVCC (Device) object CMakeFiles/THC.dir/THC_generated_THCSleep.cu.o
bash: syntax error near unexpected token (' nvidia@tegra-ubuntu:~/pytorch$ [ 6%] Building NVCC (Device) object CMakeFiles/THC.dir/THC_generated_THCStorage.cu.o bash: syntax error near unexpected token (’
nvidia@tegra-ubuntu:~/pytorch$ [ 7%] Building NVCC (Device) object CMakeFiles/THC.dir/THC_generated_THCStorageCopy.cu.o
bash: syntax error near unexpected token (' nvidia@tegra-ubuntu:~/pytorch$ [ 8%] Building NVCC (Device) object CMakeFiles/THC.dir/THC_generated_THCTensor.cu.o bash: syntax error near unexpected token (’
nvidia@tegra-ubuntu:~/pytorch$ [ 10%] Building NVCC (Device) object CMakeFiles/THC.dir/THC_generated_THCTensorCopy.cu.o
bash: syntax error near unexpected token (' nvidia@tegra-ubuntu:~/pytorch$ [ 11%] Building NVCC (Device) object CMakeFiles/THC.dir/THC_generated_THCTensorMath.cu.o bash: syntax error near unexpected token (’
nvidia@tegra-ubuntu:~/pytorch$ /home/nvidia/pytorch/torch/lib/THC/THCHalf.cu(40): error: class “__half” has no member “x”
bash: syntax error near unexpected token 40' nvidia@tegra-ubuntu:~/pytorch$ nvidia@tegra-ubuntu:~/pytorch$ /home/nvidia/pytorch/torch/lib/THC/THCHalf.cu(41): error: class "__half" has no member "x" bash: syntax error near unexpected token 41’
nvidia@tegra-ubuntu:~/pytorch$
nvidia@tegra-ubuntu:~/pytorch$ /home/nvidia/pytorch/torch/lib/THC/THCHalf.cu(42): error: class “__half” has no member “x”
bash: syntax error near unexpected token 42' nvidia@tegra-ubuntu:~/pytorch$ nvidia@tegra-ubuntu:~/pytorch$ /home/nvidia/pytorch/torch/lib/THC/THCHalf.cu(80): error: class "__half" has no member "x" bash: syntax error near unexpected token 80’
nvidia@tegra-ubuntu:~/pytorch$
nvidia@tegra-ubuntu:~/pytorch$ /home/nvidia/pytorch/torch/lib/THC/THCHalf.cu(88): error: class “__half” has no member “x”
bash: syntax error near unexpected token 88' nvidia@tegra-ubuntu:~/pytorch$ nvidia@tegra-ubuntu:~/pytorch$ /home/nvidia/pytorch/torch/lib/THC/THCHalf.cu(92): error: class "__half" has no member "x" bash: syntax error near unexpected token 92’
nvidia@tegra-ubuntu:~/pytorch$
nvidia@tegra-ubuntu:~/pytorch$ /home/nvidia/pytorch/torch/lib/THC/THCHalf.cu(122): error: class “__half” has no member “x”
bash: syntax error near unexpected token 122' nvidia@tegra-ubuntu:~/pytorch$ nvidia@tegra-ubuntu:~/pytorch$ 7 errors detected in the compilation of "/tmp/tmpxft_00005433_00000000-6_THCHalf.cpp1.ii". bash: 7: command not found nvidia@tegra-ubuntu:~/pytorch$ CMake Error at THC_generated_THCHalf.cu.o.cmake:267 (message): bash: syntax error near unexpected token (’
nvidia@tegra-ubuntu:~/pytorch$ Error generating file
bash: Error: command not found
nvidia@tegra-ubuntu:~/pytorch$ /home/nvidia/pytorch/torch/lib/build/THC/CMakeFiles/THC.dir//./THC_generated_THCHalf.cu.o
bash: /home/nvidia/pytorch/torch/lib/build/THC/CMakeFiles/THC.dir//./THC_generated_THCHalf.cu.o: No such file or directory
nvidia@tegra-ubuntu:~/pytorch$
nvidia@tegra-ubuntu:~/pytorch$
nvidia@tegra-ubuntu:~/pytorch$ CMakeFiles/THC.dir/build.make:3839: recipe for target ‘CMakeFiles/THC.dir/THC_generated_THCHalf.cu.o’ failed
bash: CMakeFiles/THC.dir/build.make:3839:: No such file or directory
nvidia@tegra-ubuntu:~/pytorch$ make[2]: *** [CMakeFiles/THC.dir/THC_generated_THCHalf.cu.o] Error 1
bash: make[2]:: command not found
nvidia@tegra-ubuntu:~/pytorch$ make[2]: *** Waiting for unfinished jobs…
bash: make[2]:: command not found
nvidia@tegra-ubuntu:~/pytorch$ /home/nvidia/pytorch/torch/lib/THC/THCTensorTypeUtils.cuh(171): error: class “__half” has no member “x”
bash: syntax error near unexpected token 171' nvidia@tegra-ubuntu:~/pytorch$ nvidia@tegra-ubuntu:~/pytorch$ /home/nvidia/pytorch/torch/lib/THC/THCTensorTypeUtils.cuh(171): error: class "__half" has no member "x" bash: syntax error near unexpected token 171’
nvidia@tegra-ubuntu:~/pytorch$
nvidia@tegra-ubuntu:~/pytorch$ /home/nvidia/pytorch/torch/lib/THC/THCTensorTypeUtils.cuh(175): error: class “__half” has no member “x”
bash: syntax error near unexpected token 175' nvidia@tegra-ubuntu:~/pytorch$ nvidia@tegra-ubuntu:~/pytorch$ /home/nvidia/pytorch/torch/lib/THC/THCTensorTypeUtils.cuh(175): error: class "__half" has no member "x" bash: syntax error near unexpected token 175’
nvidia@tegra-ubuntu:~/pytorch$
nvidia@tegra-ubuntu:~/pytorch$ /home/nvidia/pytorch/torch/lib/THC/THCNumerics.cuh(114): error: class “__half” has no member “x”
bash: syntax error near unexpected token 114' nvidia@tegra-ubuntu:~/pytorch$ nvidia@tegra-ubuntu:~/pytorch$ /home/nvidia/pytorch/torch/lib/THC/THCNumerics.cuh(115): error: class "__half" has no member "x" bash: syntax error near unexpected token 115’
nvidia@tegra-ubuntu:~/pytorch$
nvidia@tegra-ubuntu:~/pytorch$ 6 errors detected in the compilation of “/tmp/tmpxft_000054a3_00000000-6_THCTensorCopy.cpp1.ii”.
bash: 6: command not found
nvidia@tegra-ubuntu:~/pytorch$ CMake Error at THC_generated_THCTensorCopy.cu.o.cmake:267 (message):
bash: syntax error near unexpected token (' nvidia@tegra-ubuntu:~/pytorch$ Error generating file bash: Error: command not found nvidia@tegra-ubuntu:~/pytorch$ /home/nvidia/pytorch/torch/lib/build/THC/CMakeFiles/THC.dir//./THC_generated_THCTensorCopy.cu.o bash: /home/nvidia/pytorch/torch/lib/build/THC/CMakeFiles/THC.dir//./THC_generated_THCTensorCopy.cu.o: No such file or directory nvidia@tegra-ubuntu:~/pytorch$ nvidia@tegra-ubuntu:~/pytorch$ nvidia@tegra-ubuntu:~/pytorch$ CMakeFiles/THC.dir/build.make:1866: recipe for target 'CMakeFiles/THC.dir/THC_generated_THCTensorCopy.cu.o' failed bash: CMakeFiles/THC.dir/build.make:1866:: No such file or directory nvidia@tegra-ubuntu:~/pytorch$ make[2]: *** [CMakeFiles/THC.dir/THC_generated_THCTensorCopy.cu.o] Error 1 bash: make[2]:: command not found nvidia@tegra-ubuntu:~/pytorch$ /home/nvidia/pytorch/torch/lib/THC/THCTensorTypeUtils.cuh(171): error: class "__half" has no member "x" bash: syntax error near unexpected token 171’
nvidia@tegra-ubuntu:~/pytorch$
nvidia@tegra-ubuntu:~/pytorch$ /home/nvidia/pytorch/torch/lib/THC/THCTensorTypeUtils.cuh(171): error: class “__half” has no member “x”
bash: syntax error near unexpected token 171' nvidia@tegra-ubuntu:~/pytorch$ nvidia@tegra-ubuntu:~/pytorch$ /home/nvidia/pytorch/torch/lib/THC/THCTensorTypeUtils.cuh(175): error: class "__half" has no member "x" bash: syntax error near unexpected token 175’
nvidia@tegra-ubuntu:~/pytorch$
nvidia@tegra-ubuntu:~/pytorch$ /home/nvidia/pytorch/torch/lib/THC/THCTensorTypeUtils.cuh(175): error: class “__half” has no member “x”
bash: syntax error near unexpected token 175' nvidia@tegra-ubuntu:~/pytorch$ nvidia@tegra-ubuntu:~/pytorch$ /home/nvidia/pytorch/torch/lib/THC/THCNumerics.cuh(114): error: class "__half" has no member "x" bash: syntax error near unexpected token 114’
nvidia@tegra-ubuntu:~/pytorch$
nvidia@tegra-ubuntu:~/pytorch$ /home/nvidia/pytorch/torch/lib/THC/THCNumerics.cuh(115): error: class “__half” has no member “x”
bash: syntax error near unexpected token 115' nvidia@tegra-ubuntu:~/pytorch$ nvidia@tegra-ubuntu:~/pytorch$ 6 errors detected in the compilation of "/tmp/tmpxft_000054c3_00000000-6_THCTensorMath.cpp1.ii". bash: 6: command not found nvidia@tegra-ubuntu:~/pytorch$ CMake Error at THC_generated_THCTensorMath.cu.o.cmake:267 (message): bash: syntax error near unexpected token (’
nvidia@tegra-ubuntu:~/pytorch$ Error generating file
bash: Error: command not found
nvidia@tegra-ubuntu:~/pytorch$ /home/nvidia/pytorch/torch/lib/build/THC/CMakeFiles/THC.dir//./THC_generated_THCTensorMath.cu.o
bash: /home/nvidia/pytorch/torch/lib/build/THC/CMakeFiles/THC.dir//./THC_generated_THCTensorMath.cu.o: No such file or directory
nvidia@tegra-ubuntu:~/pytorch$
nvidia@tegra-ubuntu:~/pytorch$
nvidia@tegra-ubuntu:~/pytorch$ CMakeFiles/THC.dir/build.make:2683: recipe for target ‘CMakeFiles/THC.dir/THC_generated_THCTensorMath.cu.o’ failed
bash: CMakeFiles/THC.dir/build.make:2683:: No such file or directory
nvidia@tegra-ubuntu:~/pytorch$ make[2]: *** [CMakeFiles/THC.dir/THC_generated_THCTensorMath.cu.o] Error 1
bash: make[2]:: command not found
nvidia@tegra-ubuntu:~/pytorch$ CMakeFiles/Makefile2:67: recipe for target ‘CMakeFiles/THC.dir/all’ failed
bash: CMakeFiles/Makefile2:67:: No such file or directory
nvidia@tegra-ubuntu:~/pytorch$ make[1]: *** [CMakeFiles/THC.dir/all] Error 2
bash: make[1]:: command not found
nvidia@tegra-ubuntu:~/pytorch$ Makefile:127: recipe for target ‘all’ failed
bash: Makefile:127:: command not found
nvidia@tegra-ubuntu:~/pytorch$ make: *** [all] Error 2
bash: make:: command not found

Hi,

Error is caused by missing required libraries.

Could you check if these commands run successfully on your environment first?

$ git submodule update --init
$ sudo pip install -U setuptools
$ sudo pip install -r requirements.txt

Thanks.

Hi tinydao,

I have been installing many Frameworks on Jetson TX2, with many JetPack versions.
I’ve found out that the most stable version of JetPack for most frameworks is JetPack-3.1.
I think that is so because of Cuda 8.0, which most frameworks accept really well.

I strongly suggest that you flash your TX2 with it.

After you successfully flash it, here is the tutorial that I wrote for myself in order to install torch and torchvision on Jetson TX2. Enjoy.

sudo apt install libopenblas-dev libatlas-dev liblapack-dev
sudo apt install liblapacke-dev checkinstall # For OpenCV
sudo apt-get install python-pip
sudo pip install numpy scipy # ~20-30 min
sudo pip install pyyaml
sudo pip install scikit-build
sudo apt install ninja-build
sudo apt-get -y install cmake

sudo apt install libffi-dev
sudo pip install cffi

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
#add both 2 lines to ~/.profile ou ~/.bashrc
export CUDNN_LIB_DIR=/usr/lib/aarch64-linux-gnu
export CUDNN_INCLUDE_DIR=/usr/include
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

git clone https://github.com/pytorch/pytorch.git
cd pytorch
git checkout -b v0.1.10 v0.1.10
sudo time python setup.py install
sudo apt clean
sudo apt-get install libjpeg-dev zlib1g-dev
git clone https://github.com/python-pillow/Pillow.git
cd Pillow/
sudo python setup.py install
sudo pip --no-cache-dir install torchvision

Try to run each line individually and enjoy!

Just a quick note: This installation process happens with no problems, however, pytorch doesn`t work properly, specially the module object which gets many erros on declarations.

I`m currently trying alternative installations, if I succeed I will share.

Have a good one.

Finally, I was able to work my way around the problem.
The command list has been updated.
The final tutorial is to be used after a clean JetPack flash.
I strongly suggest either JetPack3.2.1 or JetPack3.3

https://github.com/Bfzanchetta/DLARM/blob/master/jetsontx2/pytorch_install.sh

Have a good one!

tinydao were you able to find a solution for this? I have the same issue, can’t build torch for JetPack3.3 with python 3.5 from any of the linked sources (same error: class “__half” has no member “x”). Could not find a wheel either. Any help is highly appreciated as I don’t want to flash my Jetson just for the sake of python3.6

Hi,

Have you tried this script?
[url]https://gist.github.com/dusty-nv/ef2b372301c00c0a9d3203e42fd83426[/url]

Thanks.

Hi,
I tried to install pytorch on my TX2 wi
th Jetpack 3.3,cuda9.0,cudnn7.0,followed this link https://github.com/Bfzanchetta/DLARM/blob/master/jetsontx2/pytorch_install.sh

Error happens such as below.

nvidia@tegra-ubuntu:~/pytorch$ sudo python3 setup.py build_deps
Building wheel torch-1.1.0a0+abbfb7d
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
   or: setup.py --help [cmd1 cmd2 ...]
   or: setup.py --help-commands
   or: setup.py cmd --help

error: invalid command 'build_deps'

then

nvidia@tegra-ubuntu:~/pytorch$ sudo python3 setup.py install
******
********
nvlink error   : entry function '_Z33ncclAllReduceTreeLLKernel_sum_u648ncclColl' with max regcount of 80 calls function '_Z29ncclReduceScatterRing_max_f64P14CollectiveArgs' with regcount of 96
nvlink error   : entry function '_Z33ncclAllReduceRingLLKernel_sum_u648ncclColl' with max regcount of 80 calls function '_Z29ncclReduceScatterRing_max_f64P14CollectiveArgs' with regcount of 96
nvlink error   : entry function '_Z33ncclAllReduceTreeLLKernel_sum_i648ncclColl' with max regcount of 80 calls function '_Z29ncclReduceScatterRing_max_f64P14CollectiveArgs' with regcount of 96
nvlink error   : entry function '_Z33ncclAllReduceRingLLKernel_sum_i648ncclColl' with max regcount of 80 calls function '_Z29ncclReduceScatterRing_max_f64P14CollectiveArgs' with regcount of 96
nvlink error   : entry function '_Z33ncclAllReduceTreeLLKernel_sum_u328ncclColl' with max regcount of 80 calls function '_Z29ncclReduceScatterRing_max_f64P14CollectiveArgs' with regcount of 96
nvlink error   : entry function '_Z33ncclAllReduceRingLLKernel_sum_u328ncclColl' with max regcount of 80 calls function '_Z29ncclReduceScatterRing_max_f64P14CollectiveArgs' with regcount of 96
nvlink error   : entry function '_Z33ncclAllReduceTreeLLKernel_sum_i328ncclColl' with max regcount of 80 calls function '_Z29ncclReduceScatterRing_max_f64P14CollectiveArgs' with regcount of 96
nvlink error   : entry function '_Z33ncclAllReduceRingLLKernel_sum_i328ncclColl' with max regcount of 80 calls function '_Z29ncclReduceScatterRing_max_f64P14CollectiveArgs' with regcount of 96
nvlink error   : entry function '_Z32ncclAllReduceTreeLLKernel_sum_u88ncclColl' with max regcount of 80 calls function '_Z29ncclReduceScatterRing_max_f64P14CollectiveArgs' with regcount of 96
nvlink error   : entry function '_Z32ncclAllReduceRingLLKernel_sum_u88ncclColl' with max regcount of 80 calls function '_Z29ncclReduceScatterRing_max_f64P14CollectiveArgs' with regcount of 96
nvlink error   : entry function '_Z32ncclAllReduceTreeLLKernel_sum_i88ncclColl' with max regcount of 80 calls function '_Z29ncclReduceScatterRing_max_f64P14CollectiveArgs' with regcount of 96
nvlink error   : entry function '_Z32ncclAllReduceRingLLKernel_sum_i88ncclColl' with max regcount of 80 calls function '_Z29ncclReduceScatterRing_max_f64P14CollectiveArgs' with regcount of 96
Makefile:68: recipe for target '/home/nvidia/pytorch/build/nccl/obj/collectives/device/devlink.o' failed
make[2]: *** [/home/nvidia/pytorch/build/nccl/obj/collectives/device/devlink.o] Error 255
make[2]: Leaving directory '/home/nvidia/pytorch/third_party/nccl/nccl/src/collectives/device'
Makefile:44: recipe for target '/home/nvidia/pytorch/build/nccl/obj/collectives/device/colldevice.a' failed
make[1]: *** [/home/nvidia/pytorch/build/nccl/obj/collectives/device/colldevice.a] Error 2
make[1]: Leaving directory '/home/nvidia/pytorch/third_party/nccl/nccl/src'
Makefile:25: recipe for target 'src.build' failed
make: *** [src.build] Error 2
[51/2792] Building CXX object third_pa...__/src/google/protobuf/descriptor.cc.o
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
  File "setup.py", line 720, in <module>
    build_deps()
  File "setup.py", line 286, in build_deps
    build_dir='build')
  File "/home/nvidia/pytorch/tools/build_pytorch_libs.py", line 278, in build_caffe2
    check_call(ninja_cmd, cwd=build_dir, env=my_env)
  File "/usr/lib/python3.5/subprocess.py", line 581, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['ninja', 'install']' returned non-zero exit status 1

How to solve this problem? Thanks.

Hi,

If JetPack4.2 is acceptable, you can install the package shared in this comment directly:
[url]https://devtalk.nvidia.com/default/topic/1049071/pytorch-for-jetson-nano/[/url]

If you want a JetPack3.3 package, please follow the steps shared by Dusty to build it from the source.
The steps are verified recently.

Thanks.

What is wrong the following problems ???
SystemError: Cannot compile ‘Python.h’. Perhaps you need to install python-dev|python-devel.
I try: sudo apt install python-dev
Reading package lists… Done
Building dependency tree
Reading state information… Done
Package python-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
python python:i386 python:amd64

E: Package ‘python-dev’ has no installation candidate

please help me !!!
when I install pytorch1.x with cuda9.0 in TX2, I met many many problems, Is there an offical installtaion???
the ERROR as follows:

CMakeFiles/THC.dir/build.make:4124: recipe for target ‘CMakeFiles/THC.dir/THC_generated_THCTensorMathPairwise.cu.o’ failed
make[2]: *** [CMakeFiles/THC.dir/THC_generated_THCTensorMathPairwise.cu.o] Error 1
6 errors detected in the compilation of “/tmp/tmpxft_00000535_00000000-6_THCTensorMath2.cpp1.ii”.
CMake Error at THC_generated_THCTensorMath2.cu.o.cmake:267 (message):
Error generating file
/home/dji/DL/pytorch/torch/lib/build/THC/CMakeFiles/THC.dir//./THC_generated_THCTensorMath2.cu.o

CMakeFiles/THC.dir/build.make:3483: recipe for target ‘CMakeFiles/THC.dir/THC_generated_THCTensorMath2.cu.o’ failed
make[2]: *** [CMakeFiles/THC.dir/THC_generated_THCTensorMath2.cu.o] Error 1
6 errors detected in the compilation of “/tmp/tmpxft_0000053f_00000000-6_THCTensorMath.cpp1.ii”.
CMake Error at THC_generated_THCTensorMath.cu.o.cmake:267 (message):
Error generating file
/home/dji/DL/pytorch/torch/lib/build/THC/CMakeFiles/THC.dir//./THC_generated_THCTensorMath.cu.o

CMakeFiles/THC.dir/build.make:2683: recipe for target ‘CMakeFiles/THC.dir/THC_generated_THCTensorMath.cu.o’ failed
make[2]: *** [CMakeFiles/THC.dir/THC_generated_THCTensorMath.cu.o] Error 1
CMakeFiles/Makefile2:75: recipe for target ‘CMakeFiles/THC.dir/all’ failed
make[1]: *** [CMakeFiles/THC.dir/all] Error 2
Makefile:129: recipe for target ‘all’ failed
make: *** [all] Error 2

Hi,

You can setup pyTorch with the instructions shared here:
https://devtalk.nvidia.com/default/topic/1049071/jetson-nano/pytorch-for-jetson-nano/

Thanks.