From: Georgi Gerganov Date: Tue, 21 Apr 2026 08:04:46 +0000 (+0300) Subject: llama-ext : fix exports (#22202) X-Git-Tag: upstream/0.0.10438~1570 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=cd03ec7642f192c13689c7f20096dcca38dc5e33;p=pkg%2Fggml%2Fsources%2Fllama.cpp llama-ext : fix exports (#22202) --- diff --git a/src/llama-ext.h b/src/llama-ext.h index bf5dc7078..8ce29d217 100644 --- a/src/llama-ext.h +++ b/src/llama-ext.h @@ -82,9 +82,9 @@ struct llama_device_memory_data { // TODO: convert to C-style data structure using llama_memory_breakdown = std::map; -int32_t llama_model_n_expert (const struct llama_model * model); -int32_t llama_model_n_devices(const struct llama_model * model); +LLAMA_API int32_t llama_model_n_expert (const struct llama_model * model); +LLAMA_API int32_t llama_model_n_devices(const struct llama_model * model); -ggml_backend_dev_t llama_model_get_device(const struct llama_model * model, int i); +LLAMA_API ggml_backend_dev_t llama_model_get_device(const struct llama_model * model, int i); -llama_memory_breakdown llama_get_memory_breakdown(const struct llama_context * ctx); +LLAMA_API llama_memory_breakdown llama_get_memory_breakdown(const struct llama_context * ctx);