Skip to content

Commit

Permalink
llama : fix -Wunused-const-variable warning for non-Kompute build
Browse files Browse the repository at this point in the history
  • Loading branch information
cebtenzzre committed Sep 26, 2024
1 parent 759db4e commit acc0c90
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/llama.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8875,6 +8875,7 @@ static bool llm_load_tensors(
return true;
}

#ifdef GGML_USE_KOMPUTE
static const llm_arch LLM_KOMPUTE_SUPPORTED_ARCHES[] {
LLM_ARCH_LLAMA,
LLM_ARCH_FALCON,
Expand All @@ -8898,6 +8899,7 @@ static const llm_arch LLM_KOMPUTE_SUPPORTED_ARCHES[] {
LLM_ARCH_MINICPM,
LLM_ARCH_GEMMA,
};
#endif

// Returns 0 on success, -1 on error, and -2 on cancellation via llama_progress_callback
static int llama_model_load(const std::string & fname, llama_model & model, llama_model_params & params) {
Expand Down

0 comments on commit acc0c90

Please sign in to comment.