diff options
author | Justine Tunney <jtunney@gmail.com> | 2023-03-30 01:53:36 -0700 |
---|---|---|
committer | Justine Tunney <jtunney@gmail.com> | 2023-03-30 12:28:25 -0700 |
commit | 6f23ba5ee235cbcb1eedd63b98422dd8d4392a78 (patch) | |
tree | f4cd59b1850674cc79ce2a0d48dab6a5220255c4 /ggml.h | |
parent | 78ca9838ee36660a776e97e3391b6fb5dcaacf7f (diff) |
Ensure --mlock works properly with mmap() support
Diffstat (limited to 'ggml.h')
-rw-r--r-- | ggml.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -345,7 +345,11 @@ size_t ggml_used_mem(const struct ggml_context * ctx); size_t ggml_set_scratch(struct ggml_context * ctx, struct ggml_scratch scratch); bool ggml_mlock_supported(void); -bool ggml_mlock(struct ggml_context * ctx, char ** err_p); +bool ggml_mlock( + struct ggml_context * ctx, + const void *opt_extra_addr, + size_t opt_extra_len, + char **err_p); struct ggml_tensor * ggml_new_tensor( struct ggml_context * ctx, |