Commit 733d724f authored by Sebastian Woelke's avatar Sebastian Woelke

for testing

parent d26c8e28
...@@ -446,6 +446,7 @@ public: ...@@ -446,6 +446,7 @@ public:
auto& wdata = d(self); auto& wdata = d(self);
auto& cdata = d(self->parent()); auto& cdata = d(self->parent());
auto current_pu = hwloc_bitmap_make_wrapper(); auto current_pu = hwloc_bitmap_make_wrapper();
hwloc_bitmap_set(current_pu.get(), static_cast<unsigned int>(self->id()));
int res = 0; int res = 0;
if (wdata.actor_pinning_entity == atom("nop")) { if (wdata.actor_pinning_entity == atom("nop")) {
wdata.xxx(current_pu.get(), "no cpu pinnning"); wdata.xxx(current_pu.get(), "no cpu pinnning");
...@@ -453,7 +454,6 @@ public: ...@@ -453,7 +454,6 @@ public:
HWLOC_CPUBIND_THREAD | HWLOC_CPUBIND_NOMEMBIND); HWLOC_CPUBIND_THREAD | HWLOC_CPUBIND_NOMEMBIND);
} else { } else {
wdata.xxx(current_pu.get(), "with cpu pinnning"); wdata.xxx(current_pu.get(), "with cpu pinnning");
hwloc_bitmap_set(current_pu.get(), static_cast<unsigned int>(self->id()));
res = hwloc_set_cpubind(cdata.topo.get(), current_pu.get(), res = hwloc_set_cpubind(cdata.topo.get(), current_pu.get(),
HWLOC_CPUBIND_THREAD | HWLOC_CPUBIND_NOMEMBIND); HWLOC_CPUBIND_THREAD | HWLOC_CPUBIND_NOMEMBIND);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment