We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b1aed75 + 6f4d28e commit e85ed8cCopy full SHA for e85ed8c
llama-cpp-2/src/lib.rs
@@ -133,7 +133,7 @@ pub fn max_devices() -> usize {
133
/// ```
134
#[must_use]
135
pub fn mmap_supported() -> bool {
136
- unsafe { llama_cpp_sys_2::llama_mmap_supported() }
+ unsafe { llama_cpp_sys_2::llama_supports_mmap() }
137
}
138
139
/// is memory locking supported according to llama.cpp
@@ -146,7 +146,7 @@ pub fn mmap_supported() -> bool {
146
147
148
pub fn mlock_supported() -> bool {
149
- unsafe { llama_cpp_sys_2::llama_mlock_supported() }
+ unsafe { llama_cpp_sys_2::llama_supports_mlock() }
150
151
152
/// An error that can occur when converting a token to a string.
llama-cpp-sys-2/llama.cpp
0 commit comments