Fix llama_mmap on non-Linux platforms

This commit is contained in:
Iwan Kawrakow
2025-08-14 15:35:06 +03:00
parent ca703ed677
commit 14ec5c7fd7

View File

@@ -410,7 +410,7 @@ struct llama_mmap::impl {
}
}
#elif defined(_WIN32)
impl(struct llama_file * file, size_t prefetch, bool numa) {
impl(struct llama_file * file, size_t prefetch, bool numa, [[maybe_unused]] bool use_thp) {
GGML_UNUSED(numa);
size = file->size();
@@ -466,7 +466,7 @@ struct llama_mmap::impl {
}
}
#else
impl(struct llama_file * file, size_t prefetch, bool numa) {
impl(struct llama_file * file, size_t prefetch, bool numa, [[maybe_unused]] bool use_thp) {
GGML_UNUSED(file);
GGML_UNUSED(prefetch);
GGML_UNUSED(numa);