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 0682209 commit 21f7ca2Copy full SHA for 21f7ca2
src/llama-mmap.cpp
@@ -441,7 +441,8 @@ void * llama_mmap::addr() const { return pimpl->addr; }
441
442
void llama_mmap::unmap_fragment(size_t first, size_t last) { pimpl->unmap_fragment(first, last); }
443
444
-#if defined(_POSIX_MEMLOCK_RANGE) || defined(_WIN32)
+// disable mmap on s390x while it usually loads little-endian models
445
+#if (defined(_POSIX_MEMLOCK_RANGE) && !defined(__s390x__)) || defined(_WIN32)
446
const bool llama_mmap::SUPPORTED = true;
447
#else
448
const bool llama_mmap::SUPPORTED = false;
0 commit comments