You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tensorflow/contrib/android/README.md
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -81,6 +81,11 @@ For documentation on building a self-contained AAR file with cmake, see
81
81
[tensorflow/contrib/android/cmake](cmake).
82
82
83
83
84
+
### Makefile
85
+
86
+
For documentation on building native TF libraries with make, including a CUDA-enabled variant for devices like the Nvidia Shield TV, see [tensorflow/contrib/makefile/README.md](../makefile/README.md)
87
+
88
+
84
89
## AssetManagerFileSystem
85
90
86
91
This directory also contains a TensorFlow filesystem supporting the Android
For more details, see the [benchmark documentation](../../tools/benchmark).
132
132
133
+
## CUDA support for Tegra devices running Android (Nvidia Shield TV, etc)
134
+
135
+
With the release of TF 1.6 and JetPack for Android 3.2 (currently pending), you can now build a version of TensorFlow for compatible devices according to the following instructions which will receive the full benefits of GPU acceleration.
136
+
137
+
#### Environment setup:
138
+
139
+
First, download and install JetPack for Android version 3.2 or greater from [Nvidia](https://developers.nvidia.com). Note that as of the TF 1.6 release the JetPack for Android 3.2 release is still pending, and regular JetPack for L4T will not work.
This will build CUDA-enabled versions of libtensorflow_inference.so and the benchmark binary. (libtensorflow_demo.so will also be built incidentally, but it does not support CUDA)
150
+
151
+
```bash
152
+
NDK_ROOT=$JETPACK/android-ndk-r13b
153
+
CC_PREFIX=ccache tensorflow/contrib/makefile/build_all_android.sh -s tensorflow/contrib/makefile/sub_makefiles/android/Makefile.in -t "libtensorflow_inference.so libtensorflow_demo.so all" -a tegra
154
+
```
155
+
(add -T on subsequent builds to skip protobuf downloading/building)
156
+
157
+
158
+
#### Testing the the CUDA-enabled benchmark via adb:
0 commit comments