Skip to content

Commit

Permalink
scope::numa::nodes() respects --numa flag
Browse files Browse the repository at this point in the history
  • Loading branch information
cwpearson committed Nov 7, 2022
1 parent 6189d40 commit b78d8b0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/numa.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,9 @@ const std::vector<int> &cpu_nodes() { return ids(); }
const std::vector<int> nodes() {
std::vector<int> ret;
for (int node : detail::allowedMems) {
ret.push_back(node);
if (scope::flags::numa_is_visible(node)) {
ret.push_back(node);
}
}
sort_and_uniqify(ret);
return ret;
Expand Down

0 comments on commit b78d8b0

Please sign in to comment.