-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4fe6688
commit 258229f
Showing
2 changed files
with
109 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,50 @@ | ||
# installTensorFlowTX2 | ||
Install TensorFlow on the NVIDIA Jetson TX2 Development Kit | ||
April 1, 2017 | ||
Install TensorFlow v1.0.1 on NVIDIA Jetson TX2 Development Kit | ||
|
||
Work in progress | ||
Jetson TX2 is flashed with JetPack 3.0 which installs: | ||
* L4T 27.1 an Ubuntu 16.04 64-bit variant (aarch64) | ||
* CUDA 8.0 | ||
* cuDNN 5.1.10 | ||
|
||
### Installation | ||
Before installing TensorFlow, a swap file should be created (minimum of 8GB recommended). The Jetson TX2 does not have enough physical memory to compile TensorFlow. The swap file may be located on the internal eMMC, and may be removed after the build. | ||
|
||
Note: This procedure was derived from these discussion threads: | ||
|
||
<ul> | ||
<li>https://github.com/tensorflow/tensorflow/issues/851</li> | ||
<li>http://stackoverflow.com/questions/39783919/tensorflow-on-nvidia-tx1/</li> | ||
<li>https://devtalk.nvidia.com/default/topic/1000717/tensorflow-on-jetson-tx2/</li> | ||
</ul> | ||
|
||
TensorFlow should be built in the following order: | ||
|
||
#### installPrerequisites.sh | ||
Installs Java and other dependencies needed. Also builds: | ||
|
||
##### Bazel | ||
Builds version 0.4.5. Includes patches for compiling under aarch64. | ||
|
||
#### cloneTensorFlow.sh | ||
Git clones v1.0.1 from the TensorFlow repository and patches the source code for aarch64 | ||
|
||
#### setTensorFlowEV.sh | ||
Sets up the TensorFlow environment variables. This script will ask for the default python library path. There are many settings to chose from, the script picks the usual suspects. Uses python 2.7. | ||
|
||
#### buildTensorFlow.sh | ||
Builds TensorFlow. | ||
|
||
#### packageTensorFlow.sh | ||
Once TensorFlow has finished building, this script may be used to create a 'wheel' file, a package for installing with Python. The wheel file will be in the $HOME directory. | ||
|
||
#### Install wheel file | ||
$ pip install $HOME/<em>wheel file</em> | ||
|
||
|
||
#### Build Issues | ||
|
||
For various reasons, the build may fail. The 'debug' folder contains a version of the buildTensorFlow.sh script which is more verbose in the way that it describes both what it is doing and errors it encounters. See the debug directory for more details. | ||
|
||
#### Notes | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters