static int ggml_backend_cpu_aarch64_score() {
int score = 1;
- ggml_feats_arch64_runtime_t af = ggml_get_aarch64_runtime_features();
+ const ggml_feats_arch64_runtime_t af = ggml_feats_get_arch64_runtime();
+ GGML_UNUSED(af);
#ifdef GGML_USE_DOTPROD
if (!af.has_dotprod) { return 0; }
}
static size_t detect_num_smcus() {
- auto runtime_feat = ggml_get_aarch64_runtime_features();
+ const auto runtime_feat = ggml_feats_get_arch64_runtime();
if (!runtime_feat.has_sme) {
return 0;
}
const char *env_threads = getenv("GGML_TOTAL_THREADS");
const char *env_chunk_mult = getenv("GGML_KLEIDIAI_CHUNK_MULTIPLIER");
- auto runtime_feat = ggml_get_aarch64_runtime_features();
+ const auto runtime_feat = ggml_feats_get_arch64_runtime();
size_t detected_smcus = 0;
int sve_cnt;
} ggml_feats_arch64_runtime_t;
-static inline ggml_feats_arch64_runtime_t ggml_get_aarch64_runtime_features(void) {
+static inline ggml_feats_arch64_runtime_t ggml_feats_get_arch64_runtime(void) {
ggml_feats_arch64_runtime_t runtime_feat = {};
#if defined(__linux__)