Skip to content

Commit 6873063

Browse files
hidekisaitoronlieb
authored andcommitted
[Offload] Make MemoryManager threshold ENV var size_t type. (llvm#124063)
1 parent 9f412b0 commit 6873063

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

offload/plugins-nextgen/common/include/MemoryManager.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ class MemoryManagerTy {
323323
/// manager explicitly by setting the var to 0. If user doesn't specify
324324
/// anything, returns <0, true>.
325325
static std::pair<size_t, bool> getSizeThresholdFromEnv() {
326-
static UInt32Envar MemoryManagerThreshold(
326+
static UInt64Envar MemoryManagerThreshold(
327327
"LIBOMPTARGET_MEMORY_MANAGER_THRESHOLD", 0);
328328

329329
size_t Threshold = MemoryManagerThreshold.get();

0 commit comments

Comments
 (0)