[llvm] [Offload] Make MemoryManager threshold ENV var size_t type. (PR #124063)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 23 09:39:58 PST 2025
https://github.com/hidekisaito updated https://github.com/llvm/llvm-project/pull/124063
>From 1eb76855bcf9c9885bd4cfc5ef56f52e32a07d12 Mon Sep 17 00:00:00 2001
From: Hideki Saito <hidekido at amd.com>
Date: Wed, 22 Jan 2025 22:31:13 -0600
Subject: [PATCH] [Offload] Make MemoryManager threshold ENV var 64bit.
---
offload/plugins-nextgen/common/include/MemoryManager.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/offload/plugins-nextgen/common/include/MemoryManager.h b/offload/plugins-nextgen/common/include/MemoryManager.h
index fe1989930b76ef..a4f6e628c403ab 100644
--- a/offload/plugins-nextgen/common/include/MemoryManager.h
+++ b/offload/plugins-nextgen/common/include/MemoryManager.h
@@ -324,7 +324,7 @@ class MemoryManagerTy {
/// manager explicitly by setting the var to 0. If user doesn't specify
/// anything, returns <0, true>.
static std::pair<size_t, bool> getSizeThresholdFromEnv() {
- static UInt32Envar MemoryManagerThreshold(
+ static UInt64Envar MemoryManagerThreshold(
"LIBOMPTARGET_MEMORY_MANAGER_THRESHOLD", 0);
size_t Threshold = MemoryManagerThreshold.get();
More information about the llvm-commits
mailing list