Error during pytorch installation tx2

Hi Experts

I am using the script:

with the pip3.

When I run:

python3 setup.py build_deps

I get the error message below. Any hints?

[ 11%] Building CXX object c10/CMakeFiles/c10.dir/DeviceType.cpp.o
In file included from /home/nvidia/pytorch/third_party/ideep/mkl-dnn/src/cpu/jit_generator.hpp:35:0,
from /home/nvidia/pytorch/third_party/ideep/mkl-dnn/src/cpu/cpu_barrier.hpp:22,
from /home/nvidia/pytorch/third_party/ideep/mkl-dnn/src/cpu/cpu_reducer.hpp:28,
from /home/nvidia/pytorch/third_party/ideep/mkl-dnn/src/cpu/jit_sse42_1x1_convolution.hpp:23,
from /home/nvidia/pytorch/third_party/ideep/mkl-dnn/src/cpu/jit_sse42_1x1_convolution.cpp:20:
/home/nvidia/pytorch/third_party/ideep/mkl-dnn/src/cpu/xbyak/xbyak_util.h:84:21: fatal error: cpuid.h: No such file or directory
compilation terminated.

Hi,

We recently found there are some issues in this script due to pytorch source update.
You can try this script:
https://github.com/Bfzanchetta/DLARM/blob/master/jetsontx2/pytorch_install.sh

Thanks.

Hi AastaLLL

When I run the above script I get:

sudo alien ninja-1.8.2-3.mga7.aarch64.rpm
warning: ninja-1.8.2-3.mga7.aarch64.rpm: Header V4 RSA/SHA256 Signature, key ID 80420f66: NOKEY
warning: ninja-1.8.2-3.mga7.aarch64.rpm: Header V4 RSA/SHA256 Signature, key ID 80420f66: NOKEY
warning: ninja-1.8.2-3.mga7.aarch64.rpm: Header V4 RSA/SHA256 Signature, key ID 80420f66: NOKEY
warning: ninja-1.8.2-3.mga7.aarch64.rpm: Header V4 RSA/SHA256 Signature, key ID 80420f66: NOKEY
warning: ninja-1.8.2-3.mga7.aarch64.rpm: Header V4 RSA/SHA256 Signature, key ID 80420f66: NOKEY
warning: ninja-1.8.2-3.mga7.aarch64.rpm: Header V4 RSA/SHA256 Signature, key ID 80420f66: NOKEY
warning: ninja-1.8.2-3.mga7.aarch64.rpm: Header V4 RSA/SHA256 Signature, key ID 80420f66: NOKEY
warning: ninja-1.8.2-3.mga7.aarch64.rpm: Header V4 RSA/SHA256 Signature, key ID 80420f66: NOKEY
warning: ninja-1.8.2-3.mga7.aarch64.rpm: Header V4 RSA/SHA256 Signature, key ID 80420f66: NOKEY
warning: ninja-1.8.2-3.mga7.aarch64.rpm: Header V4 RSA/SHA256 Signature, key ID 80420f66: NOKEY

This is after the wget…

Any hints…

Thanks again…

Sojohans

Hi,

It looks like you can jump to this command:
https://github.com/Bfzanchetta/DLARM/blob/master/jetsontx2/pytorch_install.sh#L35

Thanks.

Hi AAstaLLL

Thanks…

When I do as above I get:

sudo dpkg -i ninja_1.8.2-4_arm64.deb
dpkg: error processing archive ninja_1.8.2-4_arm64.deb (–install):
cannot access archive: No such file or directory
Errors were encountered while processing:
ninja_1.8.2-4_arm64.deb

Any hints?

sojohans

Hi,

The error shows that it cannot find the ninja package.
Have you executed this command when running the script?

wget https://rpmfind.net/linux/mageia/distrib/cauldron/aarch64/media/core/release/ninja-1.8.2-3.mga7.aarch64.rpm

Is there any error when downloading the ninja package?

Thanks.

Hi AastaLLL

No there were no errors when I downloaded the package…

Thanks,
sojohans

Hi,

So you should already download the .deb file, right?
Then you can pass the correct path for error in comment #5.

If you still have issues in installing ninja, you can try this command:

$ pip install ninja --user

Thanks.

Hi AastaLLL

I have the ninja-1.8.2-3.mga7,aarch64.rpm file.

By the way I updated my cmake to 3.12. and also tried to run

pip3 install ninja --user

but that also gave an error.

In addition I have the following folders:

ninja-1.8.2 and ninja-1.8.2.orig
ninja-1.8.2-3.mga.7.aarch64

Happy thanksgivning,

sojohans

Hi,

It looks like ninja for python3 has some issue.
Could you check if this page helps?
http://arm.ninja/

Thanks.

Hi AastaLLL

Thanks again. This is a bit too technical for me…
I will wait to somebody makes a new script for installing pytorch on tx2.

Sojohans

Hi,

There is a user successfully building pyTorch from source on TX2.
You can find him for information:
https://devtalk.nvidia.com/default/topic/1044722/jetson-tx2/pytorch-jetpack-3-3-and-python3-5-install-issues/post/5300803/#5300803

Thanks.

Hi AastaLLL

The script by Singularity worked.

Thanks,

sojohans