Here are the nvidia instructions for installing tensorflow:
http://www.nvidia.com/object/gpu-accelerated-applications-tensorflow-installation.html
I installed the latest version of JetPack (2.3) on the jetson tx1 device.
All of the requirements listed in this install document are met by JetPack (2.3)
<b>Q: 64-bit Linux?</b>
ubuntu@tegra-ubuntu:~$ uname -a
Linux tegra-ubuntu 3.10.96-tegra #1 SMP PREEMPT Thu Sep 8 13:48:54 PDT 2016 aarch64 aarch64 aarch64 GNU/Linux
<b>Q: Python 2.7?</b>
ubuntu@tegra-ubuntu:~$ python --version
Python 2.7.11+
[b]
Q: NVIDIA CUDA® 7.5 (CUDA 8.0 required for Pascal GPUs)?[/b]
ubuntu@tegra-ubuntu:~$ nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2016 NVIDIA Corporation
Built on Fri_Jul_15_14:52:12_CDT_2016
Cuda compilation tools, release 8.0, V8.0.33
ubuntu@tegra-ubuntu:~$
<b>Q: NVIDIA cuDNN v4.0 (minimum) or v5.1 (recommended)? </b>
ubuntu@tegra-ubuntu:~$ sudo cat /usr/include/cudnn.h | grep CUDNN_MAJOR -A 2
#define CUDNN_MAJOR 5
#define CUDNN_MINOR 1
#define CUDNN_PATCHLEVEL 5
--
#define CUDNN_VERSION (CUDNN_MAJOR * 1000 + CUDNN_MINOR * 100 + CUDNN_PATCHLEVEL)
#include "driver_types.h"
However, when it came to installing bazel, I got this error.
ubuntu@tegra-ubuntu:~$ sudo apt-get install bazel
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package bazel
What is the work-around to this problem?
P.S. everything before this step worked okay …
ubuntu@tegra-ubuntu:~$ echo "deb http://storage.googleapis.com/bazel-apt stable jdk1.8" | sudo tee /etc/apt/sources.list.d/bazel.list
deb http://storage.googleapis.com/bazel-apt stable jdk1.8
ubuntu@tegra-ubuntu:~$ curl https://storage.googleapis.com/bazel-apt/doc/apt-key.pub.gpg | sudo apt-key add -
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 3157 100 3157 0 0 5105 0 --:--:-- --:--:-- --:--:-- 5116
OK
P.P.S.
I suspect this is because bazel has only been build for x86_64 and not for 64-bit arm.
We have tried building bazel ourselves for arm 64 to no avail.
The problem we encountered is that bazel requires grpc-java and we cannot get the gradle script to build grpc-java to work on arm 64. This seems to be a problem with gradle not being able to build for this architecture.
https://discuss.gradle.org/t/tool-chain-gcc-gnu-gcc-dont-know-how-to-build-for-platform-linux-aarch64/19232