Name: uke-htp-smoke Version: 1.0.2 Release: 1%{?dist} Summary: Verify a dense reference model on the Uke Hexagon v73 accelerator License: MIT Source0: htp-smoke.tar.xz BuildRequires: gcc Requires: fastrpc ExclusiveArch: aarch64 %global debug_package %{nil} %global __strip /usr/bin/true %global __requires_exclude_from ^%{_libexecdir}/uke-htp-smoke/dsp/.*$ %global __provides_exclude_from ^%{_libexecdir}/uke-htp-smoke/dsp/.*$ %description An isolated diagnostic for the native AArch64 GGML and Hexagon v73 paths. %prep %setup -q -c sha256sum --strict -c SHA256SUMS %build %{__cc} %{optflags} %{build_ldflags} -std=c17 -Wall -Wextra -Werror dense.c -Iinclude \ -Llib -lggml-hexagon -lggml-base -lm -o htp-smoke %check LD_LIBRARY_PATH="$PWD/lib" ./htp-smoke --build-check %install install -Dm0755 htp-smoke %{buildroot}%{_libexecdir}/uke-htp-smoke/run install -Dm0644 lib/libggml-base.so %{buildroot}%{_libexecdir}/uke-htp-smoke/lib/libggml-base.so install -Dm0644 lib/libggml-hexagon.so %{buildroot}%{_libexecdir}/uke-htp-smoke/lib/libggml-hexagon.so install -Dm0644 dsp/libggml-htp-v73.so %{buildroot}%{_libexecdir}/uke-htp-smoke/dsp/libggml-htp-v73.so %files %license LICENSE.GGML %doc ORIGIN %{_libexecdir}/uke-htp-smoke/