llm-build-and-ctest

Configure, build, and run CTest for the LLM library using CMake presets.

4|3|Updated Feb 18, 2026
One-click install
npx skills add https://github.com/Arm-Examples/LLM-Runner --skill llm-build-and-ctest
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: llm-build-and-ctest
Source: https://github.com/Arm-Examples/LLM-Runner/tree/main/skills/llm-build-and-ctest
Command: npx skills add https://github.com/Arm-Examples/LLM-Runner --skill llm-build-and-ctest

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines the process of configuring, building, and testing the LLM library using CMake, ensuring code integrity and functionality across different platforms and backends.

Core Features & Use Cases

  • CMake Configuration: Supports multiple presets for native, Android (aarch64), and Linux (aarch64) builds.
  • Build Customization: Allows fine-grained control over build options like LLM framework, JNI library inclusion, KleidiAI optimizations, and CPU architecture.
  • Automated Testing: Integrates CTest for running unit tests and verifying build success.
  • Use Case: When making changes to the CMake build system or C++ source files, use this Skill to automatically configure the project for a specific target (e.g., Android aarch64), build the library, and run all associated tests to catch regressions early.

Quick Start

Configure, build, and run CTest for the native preset using the default build directory.

Frequently Asked Questions about llm-build-and-ctest

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build and run CTest for an LLM library using CMake presets?

You can build and run CTest for the LLM library by configuring the project with CMake presets, compiling the source files, and executing CTest to verify build success and run unit tests automatically.

Can I cross-compile an LLM library for Android aarch64 using CMake?

Yes, you can cross-compile the LLM library for Android aarch64 targets by selecting the appropriate CMake preset and applying optional cache flags to control the build environment and architecture.

How do I customize CMake build options for an LLM library with KleidiAI optimizations?

You can customize the LLM library build by passing optional cache flags to CMake, allowing fine-grained control over the LLM framework, JNI library inclusion, KleidiAI optimizations, and CPU architecture.

What should I do when a CMake build or CTest fails for an aarch64 LLM library?

When a CMake build or CTest fails for the LLM library, you should follow the provided failure triage steps and diagnostic information to identify the root cause of the build or CI failure.

Does the LLM library CMake build support Linux aarch64 cross-compilation?

Yes, the LLM library CMake build supports cross-compilation for Linux aarch64 targets, alongside native builds and Android aarch64 cross-compilation, ensuring code integrity across different platforms.