Skip to content

Commit cfb5f03

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

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
@@ -4515,6 +4515,7 @@ static bool llm_load_tensors(
45154515
return true;
45164516
}
45174517

4518+
#ifdef GGML_USE_KOMPUTE
45184519
static const llm_arch LLM_KOMPUTE_SUPPORTED_ARCHES[] {
45194520
LLM_ARCH_LLAMA,
45204521
LLM_ARCH_FALCON,
@@ -4538,6 +4539,7 @@ static const llm_arch LLM_KOMPUTE_SUPPORTED_ARCHES[] {
45384539
LLM_ARCH_MINICPM,
45394540
LLM_ARCH_GEMMA,
45404541
};
4542+
#endif
45414543

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

0 commit comments

Comments
 (0)