Skip to content

Commit a537146

Browse files
committed
fix bug in NUMA enumeration without --numa
1 parent d408568 commit a537146

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/numa.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ void init() {
3939
for (int i = 0; i < numa_num_configured_cpus(); ++i) {
4040
int node = numa_node_of_cpu(i);
4141

42-
if (!scope::flags::visibleNUMAs.empty() &&
42+
if (scope::flags::visibleNUMAs.empty() ||
4343
(scope::flags::visibleNUMAs.end() !=
4444
std::find(scope::flags::visibleNUMAs.begin(),
4545
scope::flags::visibleNUMAs.end(), node))) {

0 commit comments

Comments
 (0)