From 488c79d5a19b9796bc1d708247e7caa24514f0bf Mon Sep 17 00:00:00 2001 From: Peter Boyle Date: Wed, 15 Jul 2020 19:58:08 -0400 Subject: [PATCH] Bound improvement --- Grid/allocator/MemoryManager.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Grid/allocator/MemoryManager.cc b/Grid/allocator/MemoryManager.cc index e11ce948..1593cab2 100644 --- a/Grid/allocator/MemoryManager.cc +++ b/Grid/allocator/MemoryManager.cc @@ -120,7 +120,7 @@ void MemoryManager::Init(void) str= getenv("GRID_ALLOC_NCACHE_LARGE"); if ( str ) { Nc = atoi(str); - if ( (Nc>=0) && (Nc < NallocCacheMax)) { + if ( (Nc>=0) && (Nc <= NallocCacheMax)) { Ncache[Cpu]=Nc; Ncache[Acc]=Nc; Ncache[Shared]=Nc; @@ -130,7 +130,7 @@ void MemoryManager::Init(void) str= getenv("GRID_ALLOC_NCACHE_SMALL"); if ( str ) { Nc = atoi(str); - if ( (Nc>=0) && (Nc < NallocCacheMax)) { + if ( (Nc>=0) && (Nc <= NallocCacheMax)) { Ncache[CpuSmall]=Nc; Ncache[AccSmall]=Nc; Ncache[SharedSmall]=Nc;