Skip to content

Add Android arm64 CPU profile selection and variant loading#72

Merged
leehack merged 8 commits intomainfrom
feat/android-cpu-profiles
Feb 27, 2026
Merged

Add Android arm64 CPU profile selection and variant loading#72
leehack merged 8 commits intomainfrom
feat/android-cpu-profiles

Conversation

@leehack
Copy link
Copy Markdown
Owner

@leehack leehack commented Feb 27, 2026

Summary

  • Add Android arm64 CPU variant policy support to hook config with cpu_profile (full default, compact) and advanced cpu_variants override.
  • Update backend module loading to support dotted CPU variant names (for example libggml-cpu-android_armv8.2_2.so) and avoid CPU preload pinning when using load-all auto-selection.
  • Bump native bundle tag in hook to b8157 and document new Android CPU policy options in installation/support docs.

Validation

  • dart analyze hook/build.dart lib/src/hook/native_bundle_config.dart lib/src/backends/llama_cpp/llama_cpp_service.dart test/unit/hook/native_bundle_config_test.dart
  • dart test test/unit/hook/native_bundle_config_test.dart
  • dart test test/unit/backends/llama_cpp/llama_cpp_service_test.dart
  • dart test test/unit/hook/build_hook_integration_test.dart test/unit/hook/build_hook_linux_integration_test.dart

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Feb 27, 2026

Codecov Report

❌ Patch coverage is 66.66667% with 47 lines in your changes missing coverage. Please review.
✅ Project coverage is 76.48%. Comparing base (b39e062) to head (2611c51).
⚠️ Report is 12 commits behind head on main.

Files with missing lines Patch % Lines
lib/src/backends/llama_cpp/llama_cpp_service.dart 24.48% 37 Missing ⚠️
lib/src/hook/native_bundle_config.dart 89.13% 10 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #72      +/-   ##
==========================================
- Coverage   76.54%   76.48%   -0.07%     
==========================================
  Files          66       66              
  Lines        8216     8338     +122     
==========================================
+ Hits         6289     6377      +88     
- Misses       1927     1961      +34     
Flag Coverage Δ
unittests 76.48% <66.66%> (-0.07%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@leehack leehack merged commit 0f91c9e into main Feb 27, 2026
6 checks passed
@leehack leehack deleted the feat/android-cpu-profiles branch February 27, 2026 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants