Skip to content

Commit 85e7458

Browse files
kirklandsignfacebook-github-bot
authored andcommitted
Update NDK version to r26d in docs (#5612)
Summary: Pull Request resolved: pytorch/executorch#5612 Reviewed By: cmodi-meta, cccclai Differential Revision: D63353031 Pulled By: kirklandsign fbshipit-source-id: 0baef63226c8606e2e263a73adde6ac01f2db808
1 parent 5c56f96 commit 85e7458

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

backends/vulkan/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,12 +137,12 @@ compile the Vulkan Compute Library's GLSL compute shaders.
137137
The Vulkan Delegate libraries can be built by setting `-DEXECUTORCH_BUILD_VULKAN=ON`
138138
when building with CMake.
139139

140-
First, make sure that you have the Android NDK installed - Android NDK r25c is
140+
First, make sure that you have the Android NDK installed - Android NDK 26.3.11579264 is
141141
recommended. The Android SDK should also be installed so that you have access
142142
to `adb`.
143143

144144
```shell
145-
# Recommended version is Android NDK r25c.
145+
# Recommended version is Android NDK 26.3.11579264.
146146
export ANDROID_NDK=<path_to_ndk>
147147
# Select an appropriate Android ABI
148148
export ANDROID_ABI=arm64-v8a

backends/vulkan/docs/android_demo.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Tutorial in order to install the specified versions of the Android NDK and the
2828
Android SDK.
2929

3030
```shell
31-
# Recommended version is Android NDK r25c.
31+
# Recommended version is Android NDK 26.3.11579264.
3232
export ANDROID_NDK=<path_to_ndk>
3333
# Select an appropriate Android ABI
3434
export ANDROID_ABI=arm64-v8a

examples/demo-apps/android/LlamaDemo/SDK-quick-setup-guide.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,9 @@ export ANDROID_HOME="$(realpath $DEV_HOME/sdk)"
7070
# Install SDK 34
7171
./cmdline-tools/bin/sdkmanager --sdk_root="${ANDROID_HOME}" --install "platforms;android-34"
7272
# Install NDK
73-
./cmdline-tools/bin/sdkmanager --sdk_root="${ANDROID_HOME}" --install "ndk;25.0.8775105"
73+
./cmdline-tools/bin/sdkmanager --sdk_root="${ANDROID_HOME}" --install "ndk;26.3.11579264"
7474
# The NDK root is then under `ndk/<version>`.
75-
export ANDROID_NDK="$ANDROID_HOME/ndk/25.0.8775105"
75+
export ANDROID_NDK="$ANDROID_HOME/ndk/26.3.11579264"
7676
```
7777

7878
### (Optional) Android Studio Setup

examples/demo-apps/android/LlamaDemo/docs/delegates/mediatek_README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ More specifically, it covers:
55
2. Building and linking libraries that are required to inference on-device for Android platform using MediaTek AI accelerators.
66
3. Loading the needed files on the device and running inference.
77

8-
Verified on MacOS, Linux CentOS (model export), Python 3.10, Android NDK 25.0.8775105
8+
Verified on MacOS, Linux CentOS (model export), Python 3.10, Android NDK 26.3.11579264
99
Phone verified: MediaTek Dimensity 9300 (D9300) chip.
1010

1111
## Prerequisites

examples/demo-apps/android/LlamaDemo/docs/delegates/xnnpack_README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ Phone verified: OnePlus 12. Samsung S23 (Llama only), Samsung S24+ (Llama only),
1414

1515
## Prerequisites
1616
* Install [Java 17 JDK](https://www.oracle.com/java/technologies/javase/jdk17-archive-downloads.html).
17-
* Install the [Android SDK API Level 34](https://developer.android.com/about/versions/14/setup-sdk) and [Android NDK 25.0.8775105](https://developer.android.com/studio/projects/install-ndk).
17+
* Install the [Android SDK API Level 34](https://developer.android.com/about/versions/15/setup-sdk) and [Android NDK 26.3.11579264](https://developer.android.com/studio/projects/install-ndk).
1818
* If you have Android Studio set up, you can install them with
1919
* Android Studio Settings -> Language & Frameworks -> Android SDK -> SDK Platforms -> Check the row with API Level 34.
2020
* Android Studio Settings -> Language & Frameworks -> Android SDK -> SDK Tools -> Check NDK (Side by side) row.
2121
* Alternatively, you can follow [this guide](https://github.com/pytorch/executorch/blob/856e085b9344c8b0bf220a97976140a5b76356aa/examples/demo-apps/android/LlamaDemo/SDK.md) to set up Java/SDK/NDK with CLI.
2222
Supported Host OS: CentOS, macOS Sonoma on Apple Silicon.
2323

2424

25-
Note: This demo app and tutorial has only been validated with arm64-v8a [ABI](https://developer.android.com/ndk/guides/abis), with NDK 25.0.8775105.
25+
Note: This demo app and tutorial has only been validated with arm64-v8a [ABI](https://developer.android.com/ndk/guides/abis), with NDK 26.3.11579264.
2626

2727

2828

0 commit comments

Comments
 (0)