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.
1 parent b956e4c commit 7faf58aCopy full SHA for 7faf58a
src/llama-mmap.cpp
@@ -496,8 +496,8 @@ struct llama_mmap::impl {
496
mapping.path.c_str(), strerror(errno));
497
}
498
499
-#endif
500
-#ifndef GGML_NUMA_MIRROR
+#else
+ // Only unmap fragments if not using NUMA mirroring
501
for (const auto & frag : mapped_fragments) {
502
if (munmap((char *) addr + frag.first, frag.second - frag.first)) {
503
LLAMA_LOG_WARN("warning: munmap failed: %s\n", strerror(errno));
0 commit comments