Skip to content

Commit 2d3ce01

Browse files
committed
llama : fix -Wunused-const-variable warning for non-Kompute build
Signed-off-by: Jared Van Bortel <[email protected]>
1 parent 008e929 commit 2d3ce01

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llama.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6099,6 +6099,7 @@ static bool llm_load_tensors(
60996099
return true;
61006100
}
61016101

6102+
#ifdef GGML_USE_KOMPUTE
61026103
static const llm_arch LLM_KOMPUTE_SUPPORTED_ARCHES[] {
61036104
LLM_ARCH_LLAMA,
61046105
LLM_ARCH_FALCON,
@@ -6122,6 +6123,7 @@ static const llm_arch LLM_KOMPUTE_SUPPORTED_ARCHES[] {
61226123
LLM_ARCH_MINICPM,
61236124
LLM_ARCH_GEMMA,
61246125
};
6126+
#endif
61256127

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

0 commit comments

Comments
 (0)