Name: uke-htp-model-check Version: 1.0.0 Release: 1%{?dist} Summary: Compare reference model inference on Uke CPU and Hexagon v73 License: MIT Source0: htp-model-check.tar.xz BuildRequires: gcc BuildRequires: ocl-icd Requires: fastrpc ExclusiveArch: aarch64 %global debug_package %{nil} %global __strip /usr/bin/true %global __requires_exclude_from ^%{_libexecdir}/uke-htp-model-check/dsp/.*$ %global __provides_exclude_from ^%{_libexecdir}/uke-htp-model-check/dsp/.*$ %description Compare two short prompt inferences through Fastrpc Hexagon HVX and native CPU. %prep %setup -q -c sha256sum --strict -c SHA256SUMS %build %{__cc} %{optflags} %{build_ldflags} -std=c17 -Wall -Wextra -Werror model-check.c -Iinclude \ -Llib -Wl,-rpath-link,lib -lllama -lggml -lggml-base -lm -o htp-model-check %check LD_LIBRARY_PATH="$PWD/lib" ./htp-model-check --build-check %install install -Dm0755 htp-model-check %{buildroot}%{_libexecdir}/uke-htp-model-check/run install -Dm0644 -t %{buildroot}%{_libexecdir}/uke-htp-model-check/lib lib/*.so install -Dm0644 -t %{buildroot}%{_libexecdir}/uke-htp-model-check/dsp dsp/*.so install -Dm0644 -t %{buildroot}%{_libexecdir}/uke-htp-model-check/model model/*.gguf %files %license LICENSE.GGML LICENSE.MODEL %doc ORIGIN %{_libexecdir}/uke-htp-model-check/