Skip to content

Commit

Permalink
Fix cacheHashes calc
Browse files Browse the repository at this point in the history
  • Loading branch information
fireice-uk committed Jul 18, 2017
1 parent e1ce614 commit 232c0c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoAdjustHwloc.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ class autoAdjust
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;
Expand Down

0 comments on commit 232c0c3

Please sign in to comment.