Android 16 KB fix map

PyTorch Android 16 KB page-size status: no aligned release

Artifact org.pytorch:pytorch_android · Maintained by hermonLabs · last measured 1 Oct 2026 · methodology · all libraries

no aligned release found

No measured release of PyTorch Android is 16 KB-aligned. The newest measured version, 2.1.0, is still offending.

12of 12 measured versions with native code ship 4 KB-aligned libraries

Last offending 2.1.0: p_align = 4 KB (4096)

Thin lines: 4 KB cells. Heavy lines: 16 KB page boundaries.

How the verdict was reached

In version order, the 12 measured versions of org.pytorch:pytorch_android run as 1 stretch: org.pytorch:pytorch_android:0.0.9 to 2.1.0 offending (4 KB-aligned) (12 measured). Versions are ordered by number, not by publish date, because backports are released after newer lines.

Every one of the 12 measured versions with native code is offending; none reaches 16384. The newest measured, 2.1.0 (file date 2023-10-12), has a minimum p_align of 4 KB, so no upgrade of this artifact alone clears the requirement as of 1 Oct 2026.

Measured files by the year of their repository date:

  • 2021: 5 offending (4 KB-aligned)
  • 2022: 4 offending (4 KB-aligned)
  • 2023: 3 offending (4 KB-aligned)

The offending versions fail on arm64-v8a and x86_64; Google's rule covers the 64-bit ABIs, so those are the two libraries the verdict reads.

Every version measured

12 of 12 published versions of org.pytorch:pytorch_android were downloaded and read: 12 offending, 0 aligned, 0 with no arm64-v8a/x86_64 .so. Measured files date from 2021-01-27 to 2023-10-12. Newest first. Each version links to the file measured.

Coordinate (group:artifact:version)File dateResultarm64-v8a p_alignx86_64 p_align
org.pytorch:pytorch_android:2.1.02023-10-12offending4 KB4 KB
org.pytorch:pytorch_android:1.13.12023-03-21offending4 KB4 KB
org.pytorch:pytorch_android:1.13.02023-01-24offending4 KB4 KB
org.pytorch:pytorch_android:1.12.22022-06-29offending4 KB4 KB
org.pytorch:pytorch_android:1.12.12022-06-16offending4 KB4 KB
org.pytorch:pytorch_android:1.122022-03-10offending64 KB4 KB
org.pytorch:pytorch_android:1.112022-03-12offending64 KB4 KB
org.pytorch:pytorch_android:1.10.02021-10-21offending4 KB4 KB
org.pytorch:pytorch_android:1.9.02021-06-15offending4 KB4 KB
org.pytorch:pytorch_android:1.8.02021-03-04offending4 KB4 KB
org.pytorch:pytorch_android:1.7.12021-01-27offending4 KB4 KB
org.pytorch:pytorch_android:0.0.92021-03-10offending4 KB4 KB

Measured evidence

4 KB8 KB16 KB64 KB16 KB: the requirementlast offending 2.1.0
Last offendingversion 2.1.0

4 KBp_align 4096 = 2^12

016 KB linestarts inside the page
verdict
below the 16 KB requirement
library file
jni/arm64-v8a/libc++_shared.so
file date
Thu, 12 Oct 2023 07:22:53 GMT
source
artifact

Native libraries inside the artifact

The newest measured version with native code is 2.1.0. It ships 3 native libraries per ABI: libc++_shared.so, libfbjni.so, libpytorch_jni.so. The verdict is the lowest p_align among them.

Lowest p_align of each native library file across the measured versions (in version order):

  • libc++_shared.so: 4 KB (offending) in org.pytorch:pytorch_android:0.0.9 to 2.1.0 (12 versions)
  • libfbjni.so: 4 KB (offending) in org.pytorch:pytorch_android:0.0.9 to 2.1.0 (12 versions)
  • libpytorch_jni.so: 4 KB (offending) in org.pytorch:pytorch_android:0.0.9 to 2.1.0 (12 versions)
Library fileABIp_align @ 2.1.0
libc++_shared.soarm64-v8a4 KB
libc++_shared.sox86_644 KB
libfbjni.soarm64-v8a4 KB
libfbjni.sox86_644 KB
libpytorch_jni.soarm64-v8a4 KB
libpytorch_jni.sox86_644 KB

The Gradle change

build.gradle.kts
-implementation("org.pytorch:pytorch_android:2.1.0")
?no aligned version measured: nothing to change this to yet

no 16 KB-aligned release of org.pytorch:pytorch_android measured (latest measured 2.1.0); ask the vendor, check for a fork, or re-link the .so yourself; replacing is the last resort

Method and sources

Measured from the published files in repo1.maven.org/maven2/org/pytorch/pytorch_android/. How the verdicts are derived and what they do not cover: methodology. Google's requirement: Support 16 KB page sizes.

All 12 published versions were downloaded and measured.

Email me when PyTorch Android ships a 16 KB-aligned build

You get an email when a re-measurement changes the status. No newsletter.

Double opt-in. Stored: email, library ids, this wording, the time. No IP.