mirror of
https://github.com/paboyle/Grid.git
synced 2025-04-25 13:15:55 +01:00
Force initial values
This commit is contained in:
parent
d6ba2581ce
commit
093d1ee21b
@ -24,7 +24,7 @@ void MemoryManager::PrintBytes(void)
|
|||||||
//////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////
|
||||||
MemoryManager::AllocationCacheEntry MemoryManager::Entries[MemoryManager::NallocType][MemoryManager::NallocCacheMax];
|
MemoryManager::AllocationCacheEntry MemoryManager::Entries[MemoryManager::NallocType][MemoryManager::NallocCacheMax];
|
||||||
int MemoryManager::Victim[MemoryManager::NallocType];
|
int MemoryManager::Victim[MemoryManager::NallocType];
|
||||||
int MemoryManager::Ncache[MemoryManager::NallocType];
|
int MemoryManager::Ncache[MemoryManager::NallocType] = { 8, 32, 8, 32, 8, 32 };
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////
|
||||||
// Actual allocation and deallocation utils
|
// Actual allocation and deallocation utils
|
||||||
@ -112,12 +112,6 @@ void MemoryManager::CpuFree (void *_ptr,size_t bytes)
|
|||||||
//////////////////////////////////////////
|
//////////////////////////////////////////
|
||||||
void MemoryManager::Init(void)
|
void MemoryManager::Init(void)
|
||||||
{
|
{
|
||||||
Ncache[Cpu] = 8;
|
|
||||||
Ncache[Acc] = 8;
|
|
||||||
Ncache[Shared] = 8;
|
|
||||||
Ncache[CpuSmall] = 32;
|
|
||||||
Ncache[AccSmall] = 32;
|
|
||||||
Ncache[SharedSmall] = 32;
|
|
||||||
|
|
||||||
char * str;
|
char * str;
|
||||||
int Nc;
|
int Nc;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user