temp.patch 799 B

123456789101112131415161718192021
  1. Index: src/core/topology.c
  2. ===================================================================
  3. --- src/core/topology.c (revision 6542)
  4. +++ src/core/topology.c (working copy)
  5. @@ -682,10 +682,13 @@
  6. support = hwloc_topology_get_support(config->topology.hwtopology);
  7. if (support->cpubind->set_thisthread_cpubind)
  8. {
  9. - hwloc_cpuset_t set = combined_worker->hwloc_cpu_set;
  10. + hwloc_cpuset_t set = hwloc_bitmap_alloc();
  11. + hwloc_bitmap_zero(set);
  12. + hwloc_bitmap_set_range(set, 0, 12);
  13. + //hwloc_cpuset_t set = combined_worker->hwloc_cpu_set;
  14. int ret;
  15. - ret = hwloc_set_cpubind(config->topology.hwtopology, set, HWLOC_CPUBIND_THREAD);
  16. + ret = hwloc_set_cpubind(config->topology.hwtopology, set, HWLOC_CPUBIND_PROCESS | HWLOC_CPUBIND_NOMEMBIND);
  17. if (ret)
  18. {
  19. perror("binding thread");