summaryrefslogtreecommitdiff
path: root/common/common.h
diff options
context:
space:
mode:
authorKawrakow <iwankawrakow@gmail.com>2025-03-23 07:24:43 +0100
committerGitHub <noreply@github.com>2025-03-23 07:24:43 +0100
commitdd5ebd0e3d42e871ac398deaaa3f60edaa78a7eb (patch)
treedf6eabeff1f2f0fa7d6dd56e4fe7faaa9441b544 /common/common.h
parent6028362ef6112c035001fef4313ab3697ef79a30 (diff)
Test transparent huge pages on Linux (#278)
* Adding ability to use THP on Linux * Use the actual page size4 used for mmap also in munmap * Add -thp to llama-bench --------- Co-authored-by: Iwan Kawrakow <iwan.kawrakow@gmail.com>
Diffstat (limited to 'common/common.h')
-rw-r--r--common/common.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/common.h b/common/common.h
index f6a55885..79c5fe96 100644
--- a/common/common.h
+++ b/common/common.h
@@ -194,6 +194,7 @@ struct gpt_params {
bool warmup = true; // warmup run
bool check_tensors = false; // validate tensor data
bool repack_tensors = false; // repack tensors if interleaved variant is available
+ bool use_thp = false; // use transparent huge pages (linux only)
std::string cache_type_k = "f16"; // KV cache data type for the K
std::string cache_type_v = "f16"; // KV cache data type for the V