Skip to content
Snippets Groups Projects
Commit 232c0c35 authored by fireice-uk's avatar fireice-uk
Browse files

Fix cacheHashes calc

parent e1ce6141
No related branches found
No related tags found
No related merge requests found
......@@ -156,7 +156,7 @@ private:
cores.reserve(16);
findChildrenByType(obj, HWLOC_OBJ_CORE, [&cores](hwloc_obj_t found) { cores.emplace_back(found); } );
size_t cacheHashes = (cacheSize + hashSize/2u - 1) / hashSize;
size_t cacheHashes = (cacheSize + hashSize/2) / hashSize;
//Firstly allocate PU 0 of every CORE, then PU 1 etc.
size_t pu_id = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment