From faf7b3d1bb34854ad05e6da0a2f658276490b316 Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Wed, 24 Apr 2024 17:49:40 +0200 Subject: [PATCH] Document the two HUGETLB options for buffer allocation --- Makefile.rule | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Makefile.rule b/Makefile.rule index bb239be2a..d25299775 100644 --- a/Makefile.rule +++ b/Makefile.rule @@ -219,6 +219,16 @@ NO_AFFINITY = 1 # to the user space. If bigphysarea is enabled, it will use it. # DEVICEDRIVER_ALLOCATION = 1 +# Use large page allocation (called hugepage support in Linux context) +# for the thread buffers (with access by shared memory operations) +# HUGETLB_ALLOCATION = 1 + +# Use large page allocation called hugepages in Linux) based on mmap accessing +# a memory-backed pseudofile (requires hugetlbfs to be mounted in the system, +# the example below has it mounted on /hugepages. OpenBLAS will create the backing +# file as gotoblas.processid in that path) +# HUGETLBFILE_ALLOCATION = /hugepages + # If you need to synchronize FP CSR between threads (for x86/x86_64 and aarch64 only). # CONSISTENT_FPCSR = 1