Who is this for?

This is an advanced topic for software developers and performance engineers who want to integrate a KleidiAI Scalable Matrix Extension 2 (SME2) microkernel into an existing AI inference framework.

What will you learn?

After completing this Learning Path, you'll be able to perform the following tasks:

  • Identify the XNNPACK qd8_f16_qc4w operand formats and select a KleidiAI microkernel with a matching quantization contract.
  • Pack XNNPACK QD8 activations and QC4W weights into the layouts required by a KleidiAI SME2 kernel.
  • Add runtime SME2 dispatch with a safe fallback path.
  • Build and validate the integration on an Arm-based Android device.

Prerequisites

Before starting, you'll need the following prerequisites:

  • Familiarity with C or C++ and basic matrix multiplication
  • Android Debug Bridge (adb) and an Arm-based Android device with SME2 support

Summary

AI-assisted

This summary was drafted with an approved AI-assisted workflow and reviewed by Arm contributors before publication. Human technical review remains part of the process so the final page reflects engineering rigor, accuracy, and Arm editorial standards.

Close
?
You’ll integrate a KleidiAI SME2 microkernel into XNNPACK’s qd8_f16_qc4w fully connected operator. First, you’ll examine operand formats and select a kernel with matching quantization. Next, you’ll examine how static QC4W weights and dynamic QD8 activations are packed while preserving their numerical contracts. You’ll then inspect how SME2 runtime dispatch is configured with the existing XNNPACK fallback. Finally, you’ll build the Android test binary, run correctness tests on an SME2 device, and verify the fallback build.