Fixed hugepages/memory printout for CN-Turtle/Ultralite

- Added more names to the algo parse CN-Turtle/Ultralite
This commit is contained in:
Ben Gräf 2019-01-30 20:51:11 +01:00
parent 25b1e2e223
commit 61778ab4c2
4 changed files with 7 additions and 5 deletions

View file

@ -62,7 +62,7 @@ ScratchPadMem Mem::create(ScratchPad** scratchPads, int threadId)
scratchPadMem.realSize = scratchPadSize * getThreadHashFactor(threadId);
scratchPadMem.size = scratchPadSize * getThreadHashFactor(threadId);
scratchPadMem.size += scratchPadMem.size % MEMORY;
scratchPadMem.pages = scratchPadMem.size / MEMORY;
scratchPadMem.pages = std::max(scratchPadMem.size / MEMORY, static_cast<size_t>(1));
allocate(scratchPadMem, m_useHugePages);