Skip to content

Instantly share code, notes, and snippets.

@alifahrri
Created February 23, 2025 18:46
Show Gist options
  • Select an option

  • Save alifahrri/793e8a4ecfd4a63c30a424b7730644bd to your computer and use it in GitHub Desktop.

Select an option

Save alifahrri/793e8a4ecfd4a63c30a424b7730644bd to your computer and use it in GitHub Desktop.
Build and Run ARM ComputeLibrary compute_validation

Install deps

  1. Install clang
export LLVM_VERSION=18
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo llvm.sh ${LLVM_VERSION}
  1. Install scons
sudo apt install -y scons

Build ARM ComputeLibary

  1. Download
wget https://github.com/ARM-software/ComputeLibrary/archive/refs/tags/v25.02.tar.gz
tar -zxvf v25.02.tar.gz
  1. Build
cd ComputeLibrary-25.02
CC=clang-18 CXX=clang++-18 scons -j4 Werror=1 debug=0 neon=1 openmp=1 cppthreads=1 os=linux arch=armv8a multi_isa=1 build=native validation_tests=1

Screenshot from 2025-02-24 00-45-07 Screenshot from 2025-02-24 00-33-10

Run Validation

LD_LIBRARY_PATH=./build/:$LD_LIBRARY_PATH ./build/tests/arm_compute_validation --filter-id=200

Sample output (on OrangePi5): image

We can see the supported cpu features, in this examples we do not have any SVE nor SME:

cpu_has_sve = false
cpu_has_sve2 = false
cpu_has_svef32mm = false
cpu_has_svei8mm = false
cpu_has_svebf16 = false
cpu_has_sme = false
cpu_has_sme2 = false
cpu_has_fp16 = true
cpu_has_bf16 = false
cpu_has_dotprod = true
cpu_has_i8mm = false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment