]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
llama-ext : fix exports (#22202)
authorGeorgi Gerganov <redacted>
Tue, 21 Apr 2026 08:04:46 +0000 (11:04 +0300)
committerGitHub <redacted>
Tue, 21 Apr 2026 08:04:46 +0000 (11:04 +0300)
src/llama-ext.h

index bf5dc70785677a4b913ff950cb45d4c6fd23cc63..8ce29d217cb6ba71447ffbe7795b5f5e7bbae3b0 100644 (file)
@@ -82,9 +82,9 @@ struct llama_device_memory_data {
 // TODO: convert to C-style data structure
 using llama_memory_breakdown = std::map<ggml_backend_buffer_type_t, llama_memory_breakdown_data>;
 
-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);