Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion ggml/src/ggml-cpu/arch/arm/cpu-feats.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@

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; }
Expand Down
4 changes: 2 additions & 2 deletions ggml/src/ggml-cpu/kleidiai/kleidiai.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ static void add_smcus_from_smidr(uint64_t smidr, size_t & num_private, std::map<
}

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;
}
Expand Down Expand Up @@ -310,7 +310,7 @@ static void init_kleidiai_context(void) {
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;

Expand Down
2 changes: 1 addition & 1 deletion ggml/src/ggml-feats.h
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ typedef struct ggml_feats_arch64_runtime {
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__)
Expand Down
Loading