set 130 ompi/mca/topo/treematch/topo_treematch_dist_graph_create.c hwloc_cpuset_t set = NULL; set 226 ompi/mca/topo/treematch/topo_treematch_dist_graph_create.c set = hwloc_bitmap_alloc_full(); set 227 ompi/mca/topo/treematch/topo_treematch_dist_graph_create.c hwloc_get_cpubind(opal_hwloc_topology, set, 0); set 236 ompi/mca/topo/treematch/topo_treematch_dist_graph_create.c if(hwloc_bitmap_isincluded(root_obj->cpuset,set)) { /* processes are not bound on the machine */ set 246 ompi/mca/topo/treematch/topo_treematch_dist_graph_create.c object = hwloc_get_obj_covering_cpuset(opal_hwloc_topology, set); set 261 ompi/mca/topo/treematch/topo_treematch_dist_graph_create.c if(hwloc_bitmap_isincluded(root_obj->cpuset, set)) { /* processes are not bound on the machine */ set 285 ompi/mca/topo/treematch/topo_treematch_dist_graph_create.c if( hwloc_bitmap_isincluded(root_obj->cpuset, set) ) { /* processes are not bound on the machine */ set 291 ompi/mca/topo/treematch/topo_treematch_dist_graph_create.c hwloc_bitmap_free(set); set 295 ompi/mca/topo/treematch/topo_treematch_dist_graph_create.c hwloc_bitmap_copy(set, object->cpuset); set 296 ompi/mca/topo/treematch/topo_treematch_dist_graph_create.c hwloc_bitmap_singlify(set); /* we don't want the process to move */ set 297 ompi/mca/topo/treematch/topo_treematch_dist_graph_create.c hwloc_err = hwloc_set_cpubind(opal_hwloc_topology, set, 0); set 318 ompi/mca/topo/treematch/topo_treematch_dist_graph_create.c hwloc_bitmap_free(set); set 960 ompi/mca/topo/treematch/topo_treematch_dist_graph_create.c if( NULL != set) hwloc_bitmap_free(set); set 66 ompi/mpi/java/java/Info.java set(handle, key, value); set 979 opal/mca/base/mca_base_var.c int mca_base_var_set_flag (int vari, mca_base_var_flag_t flag, bool set) set 989 opal/mca/base/mca_base_var.c var->mbv_flags = (var->mbv_flags & ~flag) | (set ? flag : 0); set 665 opal/mca/base/mca_base_var.h bool set); set 497 opal/mca/base/mca_base_var_group.c int mca_base_var_group_set_var_flag (const int group_index, int flags, bool set) set 514 opal/mca/base/mca_base_var_group.c (void) mca_base_var_set_flag (vars[i], flags, set); set 161 opal/mca/base/mca_base_var_group.h bool set); set 121 opal/mca/event/libevent2022/libevent/win32select.c struct win_fd_set *set = read ? op->readset_in : op->writeset_in; set 129 opal/mca/event/libevent2022/libevent/win32select.c if (set->fd_count == op->num_fds_in_fd_sets) { set 133 opal/mca/event/libevent2022/libevent/win32select.c set = read ? op->readset_in : op->writeset_in; set 135 opal/mca/event/libevent2022/libevent/win32select.c set->fd_array[set->fd_count] = s; set 137 opal/mca/event/libevent2022/libevent/win32select.c ent->read_pos_plus1 = set->fd_count+1; set 139 opal/mca/event/libevent2022/libevent/win32select.c ent->write_pos_plus1 = set->fd_count+1; set 140 opal/mca/event/libevent2022/libevent/win32select.c return (set->fd_count++); set 148 opal/mca/event/libevent2022/libevent/win32select.c struct win_fd_set *set = read ? op->readset_in : op->writeset_in; set 158 opal/mca/event/libevent2022/libevent/win32select.c if (--set->fd_count != (unsigned)i) { set 161 opal/mca/event/libevent2022/libevent/win32select.c s2 = set->fd_array[i] = set->fd_array[set->fd_count]; set 36 opal/mca/hwloc/hwloc201/hwloc/hwloc/bind.c hwloc_fix_cpubind(hwloc_topology_t topology, hwloc_const_bitmap_t set) set 41 opal/mca/hwloc/hwloc201/hwloc/hwloc/bind.c if (hwloc_bitmap_iszero(set)) { set 46 opal/mca/hwloc/hwloc201/hwloc/hwloc/bind.c if (!hwloc_bitmap_isincluded(set, complete_set)) { set 51 opal/mca/hwloc/hwloc201/hwloc/hwloc/bind.c if (hwloc_bitmap_isincluded(topology_set, set)) set 52 opal/mca/hwloc/hwloc201/hwloc/hwloc/bind.c set = complete_set; set 54 opal/mca/hwloc/hwloc201/hwloc/hwloc/bind.c return set; set 58 opal/mca/hwloc/hwloc201/hwloc/hwloc/bind.c hwloc_set_cpubind(hwloc_topology_t topology, hwloc_const_bitmap_t set, int flags) set 65 opal/mca/hwloc/hwloc201/hwloc/hwloc/bind.c set = hwloc_fix_cpubind(topology, set); set 66 opal/mca/hwloc/hwloc201/hwloc/hwloc/bind.c if (!set) set 71 opal/mca/hwloc/hwloc201/hwloc/hwloc/bind.c return topology->binding_hooks.set_thisproc_cpubind(topology, set, flags); set 74 opal/mca/hwloc/hwloc201/hwloc/hwloc/bind.c return topology->binding_hooks.set_thisthread_cpubind(topology, set, flags); set 77 opal/mca/hwloc/hwloc201/hwloc/hwloc/bind.c int err = topology->binding_hooks.set_thisproc_cpubind(topology, set, flags); set 83 opal/mca/hwloc/hwloc201/hwloc/hwloc/bind.c return topology->binding_hooks.set_thisthread_cpubind(topology, set, flags); set 91 opal/mca/hwloc/hwloc201/hwloc/hwloc/bind.c hwloc_get_cpubind(hwloc_topology_t topology, hwloc_bitmap_t set, int flags) set 100 opal/mca/hwloc/hwloc201/hwloc/hwloc/bind.c return topology->binding_hooks.get_thisproc_cpubind(topology, set, flags); set 103 opal/mca/hwloc/hwloc201/hwloc/hwloc/bind.c return topology->binding_hooks.get_thisthread_cpubind(topology, set, flags); set 106 opal/mca/hwloc/hwloc201/hwloc/hwloc/bind.c int err = topology->binding_hooks.get_thisproc_cpubind(topology, set, flags); set 112 opal/mca/hwloc/hwloc201/hwloc/hwloc/bind.c return topology->binding_hooks.get_thisthread_cpubind(topology, set, flags); set 120 opal/mca/hwloc/hwloc201/hwloc/hwloc/bind.c hwloc_set_proc_cpubind(hwloc_topology_t topology, hwloc_pid_t pid, hwloc_const_bitmap_t set, int flags) set 127 opal/mca/hwloc/hwloc201/hwloc/hwloc/bind.c set = hwloc_fix_cpubind(topology, set); set 128 opal/mca/hwloc/hwloc201/hwloc/hwloc/bind.c if (!set) set 132 opal/mca/hwloc/hwloc201/hwloc/hwloc/bind.c return topology->binding_hooks.set_proc_cpubind(topology, pid, set, flags); set 139 opal/mca/hwloc/hwloc201/hwloc/hwloc/bind.c hwloc_get_proc_cpubind(hwloc_topology_t topology, hwloc_pid_t pid, hwloc_bitmap_t set, int flags) set 147 opal/mca/hwloc/hwloc201/hwloc/hwloc/bind.c return topology->binding_hooks.get_proc_cpubind(topology, pid, set, flags); set 155 opal/mca/hwloc/hwloc201/hwloc/hwloc/bind.c hwloc_set_thread_cpubind(hwloc_topology_t topology, hwloc_thread_t tid, hwloc_const_bitmap_t set, int flags) set 162 opal/mca/hwloc/hwloc201/hwloc/hwloc/bind.c set = hwloc_fix_cpubind(topology, set); set 163 opal/mca/hwloc/hwloc201/hwloc/hwloc/bind.c if (!set) set 167 opal/mca/hwloc/hwloc201/hwloc/hwloc/bind.c return topology->binding_hooks.set_thread_cpubind(topology, tid, set, flags); set 174 opal/mca/hwloc/hwloc201/hwloc/hwloc/bind.c hwloc_get_thread_cpubind(hwloc_topology_t topology, hwloc_thread_t tid, hwloc_bitmap_t set, int flags) set 182 opal/mca/hwloc/hwloc201/hwloc/hwloc/bind.c return topology->binding_hooks.get_thread_cpubind(topology, tid, set, flags); set 190 opal/mca/hwloc/hwloc201/hwloc/hwloc/bind.c hwloc_get_last_cpu_location(hwloc_topology_t topology, hwloc_bitmap_t set, int flags) set 199 opal/mca/hwloc/hwloc201/hwloc/hwloc/bind.c return topology->binding_hooks.get_thisproc_last_cpu_location(topology, set, flags); set 202 opal/mca/hwloc/hwloc201/hwloc/hwloc/bind.c return topology->binding_hooks.get_thisthread_last_cpu_location(topology, set, flags); set 205 opal/mca/hwloc/hwloc201/hwloc/hwloc/bind.c int err = topology->binding_hooks.get_thisproc_last_cpu_location(topology, set, flags); set 211 opal/mca/hwloc/hwloc201/hwloc/hwloc/bind.c return topology->binding_hooks.get_thisthread_last_cpu_location(topology, set, flags); set 219 opal/mca/hwloc/hwloc201/hwloc/hwloc/bind.c hwloc_get_proc_last_cpu_location(hwloc_topology_t topology, hwloc_pid_t pid, hwloc_bitmap_t set, int flags) set 227 opal/mca/hwloc/hwloc201/hwloc/hwloc/bind.c return topology->binding_hooks.get_proc_last_cpu_location(topology, pid, set, flags); set 328 opal/mca/hwloc/hwloc201/hwloc/hwloc/bind.c hwloc_set_membind(hwloc_topology_t topology, hwloc_const_bitmap_t set, hwloc_membind_policy_t policy, int flags) set 333 opal/mca/hwloc/hwloc201/hwloc/hwloc/bind.c ret = hwloc_set_membind_by_nodeset(topology, set, policy, flags); set 336 opal/mca/hwloc/hwloc201/hwloc/hwloc/bind.c if (hwloc_fix_membind_cpuset(topology, nodeset, set)) set 375 opal/mca/hwloc/hwloc201/hwloc/hwloc/bind.c hwloc_get_membind(hwloc_topology_t topology, hwloc_bitmap_t set, hwloc_membind_policy_t * policy, int flags) set 380 opal/mca/hwloc/hwloc201/hwloc/hwloc/bind.c ret = hwloc_get_membind_by_nodeset(topology, set, policy, flags); set 385 opal/mca/hwloc/hwloc201/hwloc/hwloc/bind.c hwloc_cpuset_from_nodeset(topology, set, nodeset); set 413 opal/mca/hwloc/hwloc201/hwloc/hwloc/bind.c hwloc_set_proc_membind(hwloc_topology_t topology, hwloc_pid_t pid, hwloc_const_bitmap_t set, hwloc_membind_policy_t policy, int flags) set 418 opal/mca/hwloc/hwloc201/hwloc/hwloc/bind.c ret = hwloc_set_proc_membind_by_nodeset(topology, pid, set, policy, flags); set 421 opal/mca/hwloc/hwloc201/hwloc/hwloc/bind.c if (hwloc_fix_membind_cpuset(topology, nodeset, set)) set 447 opal/mca/hwloc/hwloc201/hwloc/hwloc/bind.c hwloc_get_proc_membind(hwloc_topology_t topology, hwloc_pid_t pid, hwloc_bitmap_t set, hwloc_membind_policy_t * policy, int flags) set 452 opal/mca/hwloc/hwloc201/hwloc/hwloc/bind.c ret = hwloc_get_proc_membind_by_nodeset(topology, pid, set, policy, flags); set 457 opal/mca/hwloc/hwloc201/hwloc/hwloc/bind.c hwloc_cpuset_from_nodeset(topology, set, nodeset); set 488 opal/mca/hwloc/hwloc201/hwloc/hwloc/bind.c hwloc_set_area_membind(hwloc_topology_t topology, const void *addr, size_t len, hwloc_const_bitmap_t set, hwloc_membind_policy_t policy, int flags) set 493 opal/mca/hwloc/hwloc201/hwloc/hwloc/bind.c ret = hwloc_set_area_membind_by_nodeset(topology, addr, len, set, policy, flags); set 496 opal/mca/hwloc/hwloc201/hwloc/hwloc/bind.c if (hwloc_fix_membind_cpuset(topology, nodeset, set)) set 528 opal/mca/hwloc/hwloc201/hwloc/hwloc/bind.c hwloc_get_area_membind(hwloc_topology_t topology, const void *addr, size_t len, hwloc_bitmap_t set, hwloc_membind_policy_t * policy, int flags) set 533 opal/mca/hwloc/hwloc201/hwloc/hwloc/bind.c ret = hwloc_get_area_membind_by_nodeset(topology, addr, len, set, policy, flags); set 538 opal/mca/hwloc/hwloc201/hwloc/hwloc/bind.c hwloc_cpuset_from_nodeset(topology, set, nodeset); set 565 opal/mca/hwloc/hwloc201/hwloc/hwloc/bind.c hwloc_get_area_memlocation(hwloc_topology_t topology, const void *addr, size_t len, hwloc_cpuset_t set, int flags) set 570 opal/mca/hwloc/hwloc201/hwloc/hwloc/bind.c ret = hwloc_get_area_memlocation_by_nodeset(topology, addr, len, set, flags); set 575 opal/mca/hwloc/hwloc201/hwloc/hwloc/bind.c hwloc_cpuset_from_nodeset(topology, set, nodeset); set 676 opal/mca/hwloc/hwloc201/hwloc/hwloc/bind.c hwloc_alloc_membind(hwloc_topology_t topology, size_t len, hwloc_const_bitmap_t set, hwloc_membind_policy_t policy, int flags) set 681 opal/mca/hwloc/hwloc201/hwloc/hwloc/bind.c ret = hwloc_alloc_membind_by_nodeset(topology, len, set, policy, flags); set 684 opal/mca/hwloc/hwloc201/hwloc/hwloc/bind.c if (hwloc_fix_membind_cpuset(topology, nodeset, set)) { set 709 opal/mca/hwloc/hwloc201/hwloc/hwloc/bind.c static int dontset_return_complete_cpuset(hwloc_topology_t topology, hwloc_cpuset_t set) set 711 opal/mca/hwloc/hwloc201/hwloc/hwloc/bind.c hwloc_bitmap_copy(set, hwloc_topology_get_complete_cpuset(topology)); set 715 opal/mca/hwloc/hwloc201/hwloc/hwloc/bind.c static int dontset_thisthread_cpubind(hwloc_topology_t topology __hwloc_attribute_unused, hwloc_const_bitmap_t set __hwloc_attribute_unused, int flags __hwloc_attribute_unused) set 719 opal/mca/hwloc/hwloc201/hwloc/hwloc/bind.c static int dontget_thisthread_cpubind(hwloc_topology_t topology __hwloc_attribute_unused, hwloc_bitmap_t set, int flags __hwloc_attribute_unused) set 721 opal/mca/hwloc/hwloc201/hwloc/hwloc/bind.c return dontset_return_complete_cpuset(topology, set); set 723 opal/mca/hwloc/hwloc201/hwloc/hwloc/bind.c static int dontset_thisproc_cpubind(hwloc_topology_t topology __hwloc_attribute_unused, hwloc_const_bitmap_t set __hwloc_attribute_unused, int flags __hwloc_attribute_unused) set 727 opal/mca/hwloc/hwloc201/hwloc/hwloc/bind.c static int dontget_thisproc_cpubind(hwloc_topology_t topology __hwloc_attribute_unused, hwloc_bitmap_t set, int flags __hwloc_attribute_unused) set 729 opal/mca/hwloc/hwloc201/hwloc/hwloc/bind.c return dontset_return_complete_cpuset(topology, set); set 731 opal/mca/hwloc/hwloc201/hwloc/hwloc/bind.c static int dontset_proc_cpubind(hwloc_topology_t topology __hwloc_attribute_unused, hwloc_pid_t pid __hwloc_attribute_unused, hwloc_const_bitmap_t set __hwloc_attribute_unused, int flags __hwloc_attribute_unused) set 740 opal/mca/hwloc/hwloc201/hwloc/hwloc/bind.c static int dontset_thread_cpubind(hwloc_topology_t topology __hwloc_attribute_unused, hwloc_thread_t tid __hwloc_attribute_unused, hwloc_const_bitmap_t set __hwloc_attribute_unused, int flags __hwloc_attribute_unused) set 750 opal/mca/hwloc/hwloc201/hwloc/hwloc/bind.c static int dontset_return_complete_nodeset(hwloc_topology_t topology, hwloc_nodeset_t set, hwloc_membind_policy_t *policy) set 752 opal/mca/hwloc/hwloc201/hwloc/hwloc/bind.c hwloc_bitmap_copy(set, hwloc_topology_get_complete_nodeset(topology)); set 757 opal/mca/hwloc/hwloc201/hwloc/hwloc/bind.c static int dontset_thisproc_membind(hwloc_topology_t topology __hwloc_attribute_unused, hwloc_const_bitmap_t set __hwloc_attribute_unused, hwloc_membind_policy_t policy __hwloc_attribute_unused, int flags __hwloc_attribute_unused) set 761 opal/mca/hwloc/hwloc201/hwloc/hwloc/bind.c static int dontget_thisproc_membind(hwloc_topology_t topology __hwloc_attribute_unused, hwloc_bitmap_t set, hwloc_membind_policy_t * policy, int flags __hwloc_attribute_unused) set 763 opal/mca/hwloc/hwloc201/hwloc/hwloc/bind.c return dontset_return_complete_nodeset(topology, set, policy); set 766 opal/mca/hwloc/hwloc201/hwloc/hwloc/bind.c static int dontset_thisthread_membind(hwloc_topology_t topology __hwloc_attribute_unused, hwloc_const_bitmap_t set __hwloc_attribute_unused, hwloc_membind_policy_t policy __hwloc_attribute_unused, int flags __hwloc_attribute_unused) set 770 opal/mca/hwloc/hwloc201/hwloc/hwloc/bind.c static int dontget_thisthread_membind(hwloc_topology_t topology __hwloc_attribute_unused, hwloc_bitmap_t set, hwloc_membind_policy_t * policy, int flags __hwloc_attribute_unused) set 772 opal/mca/hwloc/hwloc201/hwloc/hwloc/bind.c return dontset_return_complete_nodeset(topology, set, policy); set 775 opal/mca/hwloc/hwloc201/hwloc/hwloc/bind.c static int dontset_proc_membind(hwloc_topology_t topology __hwloc_attribute_unused, hwloc_pid_t pid __hwloc_attribute_unused, hwloc_const_bitmap_t set __hwloc_attribute_unused, hwloc_membind_policy_t policy __hwloc_attribute_unused, int flags __hwloc_attribute_unused) set 779 opal/mca/hwloc/hwloc201/hwloc/hwloc/bind.c static int dontget_proc_membind(hwloc_topology_t topology __hwloc_attribute_unused, hwloc_pid_t pid __hwloc_attribute_unused, hwloc_bitmap_t set, hwloc_membind_policy_t * policy, int flags __hwloc_attribute_unused) set 781 opal/mca/hwloc/hwloc201/hwloc/hwloc/bind.c return dontset_return_complete_nodeset(topology, set, policy); set 784 opal/mca/hwloc/hwloc201/hwloc/hwloc/bind.c static int dontset_area_membind(hwloc_topology_t topology __hwloc_attribute_unused, const void *addr __hwloc_attribute_unused, size_t size __hwloc_attribute_unused, hwloc_const_bitmap_t set __hwloc_attribute_unused, hwloc_membind_policy_t policy __hwloc_attribute_unused, int flags __hwloc_attribute_unused) set 788 opal/mca/hwloc/hwloc201/hwloc/hwloc/bind.c static int dontget_area_membind(hwloc_topology_t topology __hwloc_attribute_unused, const void *addr __hwloc_attribute_unused, size_t size __hwloc_attribute_unused, hwloc_bitmap_t set, hwloc_membind_policy_t * policy, int flags __hwloc_attribute_unused) set 790 opal/mca/hwloc/hwloc201/hwloc/hwloc/bind.c return dontset_return_complete_nodeset(topology, set, policy); set 792 opal/mca/hwloc/hwloc201/hwloc/hwloc/bind.c static int dontget_area_memlocation(hwloc_topology_t topology __hwloc_attribute_unused, const void *addr __hwloc_attribute_unused, size_t size __hwloc_attribute_unused, hwloc_bitmap_t set, int flags __hwloc_attribute_unused) set 795 opal/mca/hwloc/hwloc201/hwloc/hwloc/bind.c return dontset_return_complete_nodeset(topology, set, &policy); set 798 opal/mca/hwloc/hwloc201/hwloc/hwloc/bind.c static void * dontalloc_membind(hwloc_topology_t topology __hwloc_attribute_unused, size_t size __hwloc_attribute_unused, hwloc_const_bitmap_t set __hwloc_attribute_unused, hwloc_membind_policy_t policy __hwloc_attribute_unused, int flags __hwloc_attribute_unused) set 58 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c #define HWLOC__BITMAP_CHECK(set) do { \ set 59 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c assert((set)->magic == HWLOC_BITMAP_MAGIC); \ set 60 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c assert((set)->ulongs_count >= 1); \ set 61 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c assert((set)->ulongs_allocated >= (set)->ulongs_count); \ set 64 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c #define HWLOC__BITMAP_CHECK(set) set 73 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c #define HWLOC_SUBBITMAP_READULONG(set,x) ((x) < (set)->ulongs_count ? (set)->ulongs[x] : (set)->infinite ? HWLOC_SUBBITMAP_FULL : HWLOC_SUBBITMAP_ZERO) set 86 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c struct hwloc_bitmap_s * set; set 88 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c set = malloc(sizeof(struct hwloc_bitmap_s)); set 89 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c if (!set) set 92 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c set->ulongs_count = 1; set 93 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c set->ulongs_allocated = HWLOC_BITMAP_PREALLOC_ULONGS; set 94 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c set->ulongs = malloc(HWLOC_BITMAP_PREALLOC_ULONGS * sizeof(unsigned long)); set 95 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c if (!set->ulongs) { set 96 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c free(set); set 100 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c set->ulongs[0] = HWLOC_SUBBITMAP_ZERO; set 101 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c set->infinite = 0; set 103 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c set->magic = HWLOC_BITMAP_MAGIC; set 105 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c return set; set 110 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c struct hwloc_bitmap_s * set = hwloc_bitmap_alloc(); set 111 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c if (set) { set 112 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c set->infinite = 1; set 113 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c set->ulongs[0] = HWLOC_SUBBITMAP_FULL; set 115 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c return set; set 118 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c void hwloc_bitmap_free(struct hwloc_bitmap_s * set) set 120 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c if (!set) set 123 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c HWLOC__BITMAP_CHECK(set); set 125 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c set->magic = 0; set 128 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c free(set->ulongs); set 129 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c free(set); set 135 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c hwloc_bitmap_enlarge_by_ulongs(struct hwloc_bitmap_s * set, unsigned needed_count) __hwloc_attribute_warn_unused_result; set 137 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c hwloc_bitmap_enlarge_by_ulongs(struct hwloc_bitmap_s * set, unsigned needed_count) set 140 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c if (tmp > set->ulongs_allocated) { set 142 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c tmpulongs = realloc(set->ulongs, tmp * sizeof(unsigned long)); set 145 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c set->ulongs = tmpulongs; set 146 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c set->ulongs_allocated = tmp; set 155 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c hwloc_bitmap_realloc_by_ulongs(struct hwloc_bitmap_s * set, unsigned needed_count) __hwloc_attribute_warn_unused_result; set 157 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c hwloc_bitmap_realloc_by_ulongs(struct hwloc_bitmap_s * set, unsigned needed_count) set 161 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c HWLOC__BITMAP_CHECK(set); set 163 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c if (needed_count <= set->ulongs_count) set 167 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c if (hwloc_bitmap_enlarge_by_ulongs(set, needed_count) < 0) set 171 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c for(i=set->ulongs_count; i<needed_count; i++) set 172 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c set->ulongs[i] = set->infinite ? HWLOC_SUBBITMAP_FULL : HWLOC_SUBBITMAP_ZERO; set 173 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c set->ulongs_count = needed_count; set 178 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c #define hwloc_bitmap_realloc_by_cpu_index(set, cpu) hwloc_bitmap_realloc_by_ulongs(set, ((cpu)/HWLOC_BITS_PER_LONG)+1) set 184 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c hwloc_bitmap_reset_by_ulongs(struct hwloc_bitmap_s * set, unsigned needed_count) __hwloc_attribute_warn_unused_result; set 186 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c hwloc_bitmap_reset_by_ulongs(struct hwloc_bitmap_s * set, unsigned needed_count) set 188 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c if (hwloc_bitmap_enlarge_by_ulongs(set, needed_count)) set 190 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c set->ulongs_count = needed_count; set 197 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c #define hwloc_bitmap_reset_by_cpu_index(set, cpu) hwloc_bitmap_reset_by_ulongs(set, ((cpu)/HWLOC_BITS_PER_LONG)+1) set 251 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c int hwloc_bitmap_snprintf(char * __hwloc_restrict buf, size_t buflen, const struct hwloc_bitmap_s * __hwloc_restrict set) set 266 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c HWLOC__BITMAP_CHECK(set); set 272 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c if (set->infinite) { set 284 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c i=(int) set->ulongs_count-1; set 286 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c if (set->infinite) { set 288 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c while (i>=0 && set->ulongs[i] == HWLOC_SUBBITMAP_FULL) set 292 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c while (i>=0 && set->ulongs[i] == HWLOC_SUBBITMAP_ZERO) set 299 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c accum = set->ulongs[i--]; set 346 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c int hwloc_bitmap_asprintf(char ** strp, const struct hwloc_bitmap_s * __hwloc_restrict set) set 351 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c HWLOC__BITMAP_CHECK(set); set 353 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c len = hwloc_bitmap_snprintf(NULL, 0, set); set 358 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c return hwloc_bitmap_snprintf(buf, len+1, set); set 361 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c int hwloc_bitmap_sscanf(struct hwloc_bitmap_s *set, const char * __hwloc_restrict string) set 378 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c hwloc_bitmap_fill(set); set 386 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c if (hwloc_bitmap_reset_by_ulongs(set, (count + HWLOC_BITMAP_STRING_PER_LONG - 1) / HWLOC_BITMAP_STRING_PER_LONG) < 0) set 388 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c set->infinite = 0; set 400 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c set->ulongs[count / HWLOC_BITMAP_STRING_PER_LONG] = accum; set 413 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c set->infinite = infinite; /* set at the end, to avoid spurious realloc with filled new ulongs */ set 419 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c hwloc_bitmap_zero(set); set 423 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c int hwloc_bitmap_list_snprintf(char * __hwloc_restrict buf, size_t buflen, const struct hwloc_bitmap_s * __hwloc_restrict set) set 431 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c HWLOC__BITMAP_CHECK(set); set 440 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c begin = hwloc_bitmap_next(set, prev); set 443 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c end = hwloc_bitmap_next_unset(set, begin); set 472 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c int hwloc_bitmap_list_asprintf(char ** strp, const struct hwloc_bitmap_s * __hwloc_restrict set) set 477 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c HWLOC__BITMAP_CHECK(set); set 479 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c len = hwloc_bitmap_list_snprintf(NULL, 0, set); set 484 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c return hwloc_bitmap_list_snprintf(buf, len+1, set); set 487 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c int hwloc_bitmap_list_sscanf(struct hwloc_bitmap_s *set, const char * __hwloc_restrict string) set 493 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c hwloc_bitmap_zero(set); set 508 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c hwloc_bitmap_set_range(set, begin, val); set 515 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c hwloc_bitmap_set_range(set, val, -1); set 524 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c hwloc_bitmap_set(set, val); set 536 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c hwloc_bitmap_zero(set); set 540 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c int hwloc_bitmap_taskset_snprintf(char * __hwloc_restrict buf, size_t buflen, const struct hwloc_bitmap_s * __hwloc_restrict set) set 548 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c HWLOC__BITMAP_CHECK(set); set 554 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c if (set->infinite) { set 566 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c i=set->ulongs_count-1; set 568 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c if (set->infinite) { set 570 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c while (i>=0 && set->ulongs[i] == HWLOC_SUBBITMAP_FULL) set 574 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c while (i>=1 && set->ulongs[i] == HWLOC_SUBBITMAP_ZERO) set 579 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c unsigned long val = set->ulongs[i--]; set 613 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c int hwloc_bitmap_taskset_asprintf(char ** strp, const struct hwloc_bitmap_s * __hwloc_restrict set) set 618 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c HWLOC__BITMAP_CHECK(set); set 620 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c len = hwloc_bitmap_taskset_snprintf(NULL, 0, set); set 625 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c return hwloc_bitmap_taskset_snprintf(buf, len+1, set); set 628 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c int hwloc_bitmap_taskset_sscanf(struct hwloc_bitmap_s *set, const char * __hwloc_restrict string) set 641 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c hwloc_bitmap_fill(set); set 650 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c hwloc_bitmap_zero(set); set 659 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c if (hwloc_bitmap_reset_by_ulongs(set, count) < 0) set 661 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c set->infinite = 0; set 679 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c set->ulongs[count-1] = val; set 686 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c set->infinite = infinite; /* set at the end, to avoid spurious realloc with filled new ulongs */ set 692 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c hwloc_bitmap_zero(set); set 696 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c static void hwloc_bitmap__zero(struct hwloc_bitmap_s *set) set 699 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c for(i=0; i<set->ulongs_count; i++) set 700 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c set->ulongs[i] = HWLOC_SUBBITMAP_ZERO; set 701 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c set->infinite = 0; set 704 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c void hwloc_bitmap_zero(struct hwloc_bitmap_s * set) set 706 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c HWLOC__BITMAP_CHECK(set); set 709 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c if (hwloc_bitmap_reset_by_ulongs(set, 1) < 0) { set 714 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c hwloc_bitmap__zero(set); set 717 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c static void hwloc_bitmap__fill(struct hwloc_bitmap_s * set) set 720 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c for(i=0; i<set->ulongs_count; i++) set 721 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c set->ulongs[i] = HWLOC_SUBBITMAP_FULL; set 722 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c set->infinite = 1; set 725 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c void hwloc_bitmap_fill(struct hwloc_bitmap_s * set) set 727 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c HWLOC__BITMAP_CHECK(set); set 730 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c if (hwloc_bitmap_reset_by_ulongs(set, 1) < 0) { set 735 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c hwloc_bitmap__fill(set); set 738 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c int hwloc_bitmap_from_ulong(struct hwloc_bitmap_s *set, unsigned long mask) set 740 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c HWLOC__BITMAP_CHECK(set); set 743 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c if (hwloc_bitmap_reset_by_ulongs(set, 1) < 0) { set 748 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c set->ulongs[0] = mask; /* there's always at least one ulong allocated */ set 749 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c set->infinite = 0; set 753 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c int hwloc_bitmap_from_ith_ulong(struct hwloc_bitmap_s *set, unsigned i, unsigned long mask) set 757 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c HWLOC__BITMAP_CHECK(set); set 759 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c if (hwloc_bitmap_reset_by_ulongs(set, i+1) < 0) set 762 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c set->ulongs[i] = mask; set 764 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c set->ulongs[j] = HWLOC_SUBBITMAP_ZERO; set 765 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c set->infinite = 0; set 769 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c unsigned long hwloc_bitmap_to_ulong(const struct hwloc_bitmap_s *set) set 771 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c HWLOC__BITMAP_CHECK(set); set 773 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c return set->ulongs[0]; /* there's always at least one ulong allocated */ set 776 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c unsigned long hwloc_bitmap_to_ith_ulong(const struct hwloc_bitmap_s *set, unsigned i) set 778 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c HWLOC__BITMAP_CHECK(set); set 780 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c return HWLOC_SUBBITMAP_READULONG(set, i); set 783 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c int hwloc_bitmap_only(struct hwloc_bitmap_s * set, unsigned cpu) set 787 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c HWLOC__BITMAP_CHECK(set); set 789 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c if (hwloc_bitmap_reset_by_cpu_index(set, cpu) < 0) set 792 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c hwloc_bitmap__zero(set); set 793 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c set->ulongs[index_] |= HWLOC_SUBBITMAP_CPU(cpu); set 797 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c int hwloc_bitmap_allbut(struct hwloc_bitmap_s * set, unsigned cpu) set 801 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c HWLOC__BITMAP_CHECK(set); set 803 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c if (hwloc_bitmap_reset_by_cpu_index(set, cpu) < 0) set 806 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c hwloc_bitmap__fill(set); set 807 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c set->ulongs[index_] &= ~HWLOC_SUBBITMAP_CPU(cpu); set 811 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c int hwloc_bitmap_set(struct hwloc_bitmap_s * set, unsigned cpu) set 815 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c HWLOC__BITMAP_CHECK(set); set 818 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c if (set->infinite && cpu >= set->ulongs_count * HWLOC_BITS_PER_LONG) set 821 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c if (hwloc_bitmap_realloc_by_cpu_index(set, cpu) < 0) set 824 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c set->ulongs[index_] |= HWLOC_SUBBITMAP_CPU(cpu); set 828 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c int hwloc_bitmap_set_range(struct hwloc_bitmap_s * set, unsigned begincpu, int _endcpu) set 834 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c HWLOC__BITMAP_CHECK(set); set 838 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c if (set->infinite && begincpu >= set->ulongs_count * HWLOC_BITS_PER_LONG) set 846 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c if (hwloc_bitmap_realloc_by_cpu_index(set, begincpu) < 0) set 851 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c set->ulongs[beginset] |= HWLOC_SUBBITMAP_ULBIT_FROM(HWLOC_SUBBITMAP_CPU_ULBIT(begincpu)); set 853 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c for(i=beginset+1; i<set->ulongs_count; i++) set 854 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c set->ulongs[i] = HWLOC_SUBBITMAP_FULL; set 856 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c set->infinite = 1; set 861 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c if (set->infinite && endcpu >= set->ulongs_count * HWLOC_BITS_PER_LONG) set 862 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c endcpu = set->ulongs_count * HWLOC_BITS_PER_LONG - 1; set 864 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c if (hwloc_bitmap_realloc_by_cpu_index(set, endcpu) < 0) set 871 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c set->ulongs[beginset] |= HWLOC_SUBBITMAP_ULBIT_FROMTO(HWLOC_SUBBITMAP_CPU_ULBIT(begincpu), HWLOC_SUBBITMAP_CPU_ULBIT(endcpu)); set 873 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c set->ulongs[beginset] |= HWLOC_SUBBITMAP_ULBIT_FROM(HWLOC_SUBBITMAP_CPU_ULBIT(begincpu)); set 874 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c set->ulongs[endset] |= HWLOC_SUBBITMAP_ULBIT_TO(HWLOC_SUBBITMAP_CPU_ULBIT(endcpu)); set 878 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c set->ulongs[i] = HWLOC_SUBBITMAP_FULL; set 884 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c int hwloc_bitmap_set_ith_ulong(struct hwloc_bitmap_s *set, unsigned i, unsigned long mask) set 886 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c HWLOC__BITMAP_CHECK(set); set 888 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c if (hwloc_bitmap_realloc_by_ulongs(set, i+1) < 0) set 891 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c set->ulongs[i] = mask; set 895 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c int hwloc_bitmap_clr(struct hwloc_bitmap_s * set, unsigned cpu) set 899 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c HWLOC__BITMAP_CHECK(set); set 902 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c if (!set->infinite && cpu >= set->ulongs_count * HWLOC_BITS_PER_LONG) set 905 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c if (hwloc_bitmap_realloc_by_cpu_index(set, cpu) < 0) set 908 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c set->ulongs[index_] &= ~HWLOC_SUBBITMAP_CPU(cpu); set 912 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c int hwloc_bitmap_clr_range(struct hwloc_bitmap_s * set, unsigned begincpu, int _endcpu) set 918 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c HWLOC__BITMAP_CHECK(set); set 923 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c if (!set->infinite && begincpu >= set->ulongs_count * HWLOC_BITS_PER_LONG) set 931 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c if (hwloc_bitmap_realloc_by_cpu_index(set, begincpu) < 0) set 936 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c set->ulongs[beginset] &= ~HWLOC_SUBBITMAP_ULBIT_FROM(HWLOC_SUBBITMAP_CPU_ULBIT(begincpu)); set 938 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c for(i=beginset+1; i<set->ulongs_count; i++) set 939 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c set->ulongs[i] = HWLOC_SUBBITMAP_ZERO; set 941 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c set->infinite = 0; set 946 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c if (!set->infinite && endcpu >= set->ulongs_count * HWLOC_BITS_PER_LONG) set 947 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c endcpu = set->ulongs_count * HWLOC_BITS_PER_LONG - 1; set 949 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c if (hwloc_bitmap_realloc_by_cpu_index(set, endcpu) < 0) set 956 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c set->ulongs[beginset] &= ~HWLOC_SUBBITMAP_ULBIT_FROMTO(HWLOC_SUBBITMAP_CPU_ULBIT(begincpu), HWLOC_SUBBITMAP_CPU_ULBIT(endcpu)); set 958 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c set->ulongs[beginset] &= ~HWLOC_SUBBITMAP_ULBIT_FROM(HWLOC_SUBBITMAP_CPU_ULBIT(begincpu)); set 959 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c set->ulongs[endset] &= ~HWLOC_SUBBITMAP_ULBIT_TO(HWLOC_SUBBITMAP_CPU_ULBIT(endcpu)); set 963 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c set->ulongs[i] = HWLOC_SUBBITMAP_ZERO; set 969 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c int hwloc_bitmap_isset(const struct hwloc_bitmap_s * set, unsigned cpu) set 973 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c HWLOC__BITMAP_CHECK(set); set 975 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c return (HWLOC_SUBBITMAP_READULONG(set, index_) & HWLOC_SUBBITMAP_CPU(cpu)) != 0; set 978 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c int hwloc_bitmap_iszero(const struct hwloc_bitmap_s *set) set 982 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c HWLOC__BITMAP_CHECK(set); set 984 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c if (set->infinite) set 986 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c for(i=0; i<set->ulongs_count; i++) set 987 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c if (set->ulongs[i] != HWLOC_SUBBITMAP_ZERO) set 992 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c int hwloc_bitmap_isfull(const struct hwloc_bitmap_s *set) set 996 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c HWLOC__BITMAP_CHECK(set); set 998 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c if (!set->infinite) set 1000 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c for(i=0; i<set->ulongs_count; i++) set 1001 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c if (set->ulongs[i] != HWLOC_SUBBITMAP_FULL) set 1261 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c int hwloc_bitmap_not (struct hwloc_bitmap_s *res, const struct hwloc_bitmap_s *set) set 1263 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c unsigned count = set->ulongs_count; set 1267 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c HWLOC__BITMAP_CHECK(set); set 1273 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c res->ulongs[i] = ~set->ulongs[i]; set 1275 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c res->infinite = !set->infinite; set 1279 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c int hwloc_bitmap_first(const struct hwloc_bitmap_s * set) set 1283 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c HWLOC__BITMAP_CHECK(set); set 1285 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c for(i=0; i<set->ulongs_count; i++) { set 1287 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c unsigned long w = set->ulongs[i]; set 1292 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c if (set->infinite) set 1293 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c return set->ulongs_count * HWLOC_BITS_PER_LONG; set 1298 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c int hwloc_bitmap_first_unset(const struct hwloc_bitmap_s * set) set 1302 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c HWLOC__BITMAP_CHECK(set); set 1304 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c for(i=0; i<set->ulongs_count; i++) { set 1306 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c unsigned long w = ~set->ulongs[i]; set 1311 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c if (!set->infinite) set 1312 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c return set->ulongs_count * HWLOC_BITS_PER_LONG; set 1317 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c int hwloc_bitmap_last(const struct hwloc_bitmap_s * set) set 1321 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c HWLOC__BITMAP_CHECK(set); set 1323 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c if (set->infinite) set 1326 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c for(i=(int)set->ulongs_count-1; i>=0; i--) { set 1328 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c unsigned long w = set->ulongs[i]; set 1336 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c int hwloc_bitmap_last_unset(const struct hwloc_bitmap_s * set) set 1340 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c HWLOC__BITMAP_CHECK(set); set 1342 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c if (!set->infinite) set 1345 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c for(i=(int)set->ulongs_count-1; i>=0; i--) { set 1347 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c unsigned long w = ~set->ulongs[i]; set 1355 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c int hwloc_bitmap_next(const struct hwloc_bitmap_s * set, int prev_cpu) set 1359 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c HWLOC__BITMAP_CHECK(set); set 1361 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c if (i >= set->ulongs_count) { set 1362 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c if (set->infinite) set 1368 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c for(; i<set->ulongs_count; i++) { set 1370 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c unsigned long w = set->ulongs[i]; set 1381 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c if (set->infinite) set 1382 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c return set->ulongs_count * HWLOC_BITS_PER_LONG; set 1387 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c int hwloc_bitmap_next_unset(const struct hwloc_bitmap_s * set, int prev_cpu) set 1391 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c HWLOC__BITMAP_CHECK(set); set 1393 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c if (i >= set->ulongs_count) { set 1394 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c if (!set->infinite) set 1400 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c for(; i<set->ulongs_count; i++) { set 1402 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c unsigned long w = ~set->ulongs[i]; set 1413 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c if (!set->infinite) set 1414 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c return set->ulongs_count * HWLOC_BITS_PER_LONG; set 1419 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c int hwloc_bitmap_singlify(struct hwloc_bitmap_s * set) set 1424 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c HWLOC__BITMAP_CHECK(set); set 1426 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c for(i=0; i<set->ulongs_count; i++) { set 1428 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c set->ulongs[i] = HWLOC_SUBBITMAP_ZERO; set 1432 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c unsigned long w = set->ulongs[i]; set 1435 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c set->ulongs[i] = HWLOC_SUBBITMAP_CPU(_ffs-1); set 1441 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c if (set->infinite) { set 1443 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c set->infinite = 0; set 1446 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c unsigned first = set->ulongs_count * HWLOC_BITS_PER_LONG; set 1447 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c set->infinite = 0; /* do not let realloc fill the newly allocated sets */ set 1448 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c return hwloc_bitmap_set(set, first); set 1548 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c int hwloc_bitmap_weight(const struct hwloc_bitmap_s * set) set 1553 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c HWLOC__BITMAP_CHECK(set); set 1555 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c if (set->infinite) set 1558 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c for(i=0; i<set->ulongs_count; i++) set 1559 opal/mca/hwloc/hwloc201/hwloc/hwloc/bitmap.c weight += hwloc_weight_long(set->ulongs[i]); set 33 opal/mca/hwloc/hwloc201/hwloc/hwloc/pci-common.c hwloc_bitmap_t set; set 51 opal/mca/hwloc/hwloc201/hwloc/hwloc/pci-common.c set = hwloc_bitmap_alloc(); set 52 opal/mca/hwloc/hwloc201/hwloc/hwloc/pci-common.c hwloc_bitmap_sscanf(set, tmp); set 72 opal/mca/hwloc/hwloc201/hwloc/hwloc/pci-common.c topology->pci_forced_locality[nr].cpuset = set; set 77 opal/mca/hwloc/hwloc201/hwloc/hwloc/pci-common.c hwloc_bitmap_free(set); set 49 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-bgq.c hwloc_bitmap_t set; set 63 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-bgq.c set = hwloc_bitmap_alloc(); set 64 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-bgq.c hwloc_bitmap_set_range(set, 0, HWLOC_BGQ_CORES*4-1); set 65 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-bgq.c obj->cpuset = set; set 66 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-bgq.c set = hwloc_bitmap_alloc(); set 67 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-bgq.c hwloc_bitmap_set(set, 0); set 68 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-bgq.c obj->nodeset = set; set 74 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-bgq.c set = hwloc_bitmap_alloc(); set 75 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-bgq.c hwloc_bitmap_set_range(set, 0, HWLOC_BGQ_CORES*4-1); set 80 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-bgq.c obj->cpuset = hwloc_bitmap_dup(set); set 92 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-bgq.c obj->cpuset = set; set 96 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-bgq.c hwloc_bitmap_free(set); set 100 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-bgq.c set = hwloc_bitmap_alloc(); set 101 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-bgq.c hwloc_bitmap_set_range(set, i*4, i*4+3); set 106 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-bgq.c obj->cpuset = hwloc_bitmap_dup(set); set 117 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-bgq.c obj->cpuset = hwloc_bitmap_dup(set); set 130 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-bgq.c obj->cpuset = set; set 133 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-bgq.c hwloc_bitmap_free(set); set 18 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-hardwired.c hwloc_bitmap_t set; set 21 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-hardwired.c set = hwloc_bitmap_alloc(); set 22 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-hardwired.c hwloc_bitmap_set(set, i); set 26 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-hardwired.c obj->cpuset = hwloc_bitmap_dup(set); set 36 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-hardwired.c obj->cpuset = hwloc_bitmap_dup(set); set 46 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-hardwired.c obj->cpuset = set; set 49 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-hardwired.c hwloc_bitmap_free(set); set 52 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-hardwired.c set = hwloc_bitmap_alloc(); set 53 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-hardwired.c hwloc_bitmap_set_range(set, 0, 7); set 57 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-hardwired.c obj->cpuset = hwloc_bitmap_dup(set); set 67 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-hardwired.c obj->cpuset = set; set 72 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-hardwired.c hwloc_bitmap_free(set); set 87 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-hardwired.c hwloc_bitmap_t set; set 90 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-hardwired.c set = hwloc_bitmap_alloc(); set 91 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-hardwired.c hwloc_bitmap_set(set, i); set 95 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-hardwired.c obj->cpuset = hwloc_bitmap_dup(set); set 105 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-hardwired.c obj->cpuset = hwloc_bitmap_dup(set); set 115 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-hardwired.c obj->cpuset = set; set 118 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-hardwired.c hwloc_bitmap_free(set); set 121 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-hardwired.c set = hwloc_bitmap_alloc(); set 122 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-hardwired.c hwloc_bitmap_set_range(set, 0, 15); set 126 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-hardwired.c obj->cpuset = hwloc_bitmap_dup(set); set 136 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-hardwired.c obj->cpuset = set; set 141 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-hardwired.c hwloc_bitmap_free(set); set 156 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-hardwired.c hwloc_bitmap_t set; set 159 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-hardwired.c set = hwloc_bitmap_alloc(); set 160 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-hardwired.c hwloc_bitmap_set(set, i); set 164 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-hardwired.c obj->cpuset = hwloc_bitmap_dup(set); set 174 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-hardwired.c obj->cpuset = hwloc_bitmap_dup(set); set 184 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-hardwired.c obj->cpuset = set; set 187 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-hardwired.c hwloc_bitmap_free(set); set 601 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-linux.c hwloc__read_fd_as_cpumask(int fd, hwloc_bitmap_t set) set 640 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-linux.c hwloc_bitmap_zero(set); set 676 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-linux.c hwloc_bitmap_set_ith_ulong(set, i, maps[nr_maps-1-i]); set 683 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-linux.c hwloc_bitmap_set_ith_ulong(set, i, mask); set 699 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-linux.c hwloc__read_path_as_cpumask(const char *maskpath, hwloc_bitmap_t set, int fsroot_fd) set 705 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-linux.c err = hwloc__read_fd_as_cpumask(fd, set); set 713 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-linux.c hwloc_bitmap_t set; set 715 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-linux.c set = hwloc_bitmap_alloc(); set 716 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-linux.c if (!set) set 718 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-linux.c err = hwloc__read_path_as_cpumask(maskpath, set, fsroot_fd); set 720 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-linux.c hwloc_bitmap_free(set); set 723 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-linux.c return set; set 727 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-linux.c hwloc_linux_read_path_as_cpumask(const char *maskpath, hwloc_bitmap_t set) set 733 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-linux.c err = hwloc__read_fd_as_cpumask(fd, set); set 740 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-linux.c hwloc__read_fd_as_cpulist(int fd, hwloc_bitmap_t set) set 770 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-linux.c hwloc_bitmap_clr_range(set, prevlast+1, nextfirst-1); set 779 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-linux.c hwloc_bitmap_clr_range(set, prevlast+1, -1); set 887 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-linux.c cpu_set_t *set = CPU_ALLOC(nr_cpus); set 889 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-linux.c int err = sched_getaffinity(0, setsize, set); /* always works, unless setsize is too small */ set 890 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-linux.c CPU_FREE(set); set 1425 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-linux.c hwloc_linux_get_tid_last_cpu_location(hwloc_topology_t topology __hwloc_attribute_unused, pid_t tid, hwloc_bitmap_t set) set 1490 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-linux.c hwloc_bitmap_only(set, i); set 871 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-synthetic.c hwloc_bitmap_t set) set 884 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-synthetic.c child->cpuset = hwloc_bitmap_dup(set); set 893 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-synthetic.c hwloc_synthetic_insert_attached(topology, data, attached->next, set); set 914 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-synthetic.c hwloc_bitmap_t set; set 922 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-synthetic.c set = hwloc_bitmap_alloc(); set 924 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-synthetic.c hwloc_bitmap_set(set, os_index); set 927 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-synthetic.c hwloc__look_synthetic(topology, data, level + 1, set); set 930 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-synthetic.c hwloc_bitmap_or(parent_cpuset, parent_cpuset, set); set 934 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-synthetic.c obj->cpuset = hwloc_bitmap_dup(set); set 946 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-synthetic.c hwloc_synthetic_insert_attached(topology, data, curlevel->attached, set); set 948 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-synthetic.c hwloc_bitmap_free(set); set 280 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-windows.c static void hwloc_bitmap_from_ULONG_PTR(hwloc_bitmap_t set, ULONG_PTR mask) set 283 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-windows.c hwloc_bitmap_from_ulong(set, mask & 0xffffffff); set 284 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-windows.c hwloc_bitmap_set_ith_ulong(set, 1, mask >> 32); set 286 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-windows.c hwloc_bitmap_from_ulong(set, mask); set 290 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-windows.c static void hwloc_bitmap_from_ith_ULONG_PTR(hwloc_bitmap_t set, unsigned i, ULONG_PTR mask) set 293 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-windows.c hwloc_bitmap_from_ith_ulong(set, 2*i, mask & 0xffffffff); set 294 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-windows.c hwloc_bitmap_set_ith_ulong(set, 2*i+1, mask >> 32); set 296 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-windows.c hwloc_bitmap_from_ith_ulong(set, i, mask); set 300 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-windows.c static void hwloc_bitmap_set_ith_ULONG_PTR(hwloc_bitmap_t set, unsigned i, ULONG_PTR mask) set 303 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-windows.c hwloc_bitmap_set_ith_ulong(set, 2*i, mask & 0xffffffff); set 304 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-windows.c hwloc_bitmap_set_ith_ulong(set, 2*i+1, mask >> 32); set 306 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-windows.c hwloc_bitmap_set_ith_ulong(set, i, mask); set 310 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-windows.c static ULONG_PTR hwloc_bitmap_to_ULONG_PTR(hwloc_const_bitmap_t set) set 313 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-windows.c ULONG_PTR up = hwloc_bitmap_to_ith_ulong(set, 1); set 315 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-windows.c up |= hwloc_bitmap_to_ulong(set); set 318 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-windows.c return hwloc_bitmap_to_ulong(set); set 322 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-windows.c static ULONG_PTR hwloc_bitmap_to_ith_ULONG_PTR(hwloc_const_bitmap_t set, unsigned i) set 325 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-windows.c ULONG_PTR up = hwloc_bitmap_to_ith_ulong(set, 2*i+1); set 327 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-windows.c up |= hwloc_bitmap_to_ith_ulong(set, 2*i); set 330 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-windows.c return hwloc_bitmap_to_ith_ulong(set, i); set 337 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-windows.c static int hwloc_bitmap_to_single_ULONG_PTR(hwloc_const_bitmap_t set, unsigned *index, ULONG_PTR *mask) set 340 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-windows.c if (hwloc_bitmap_weight(set) == -1) set 342 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-windows.c first_ulp = hwloc_bitmap_first(set) / (sizeof(ULONG_PTR)*8); set 343 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-windows.c last_ulp = hwloc_bitmap_last(set) / (sizeof(ULONG_PTR)*8); set 346 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-windows.c *mask = hwloc_bitmap_to_ith_ULONG_PTR(set, first_ulp); set 368 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-windows.c hwloc_win_get_thisthread_last_cpu_location(hwloc_topology_t topology __hwloc_attribute_unused, hwloc_cpuset_t set, int flags __hwloc_attribute_unused) set 375 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-windows.c hwloc_bitmap_from_ith_ULONG_PTR(set, num.Group, ((ULONG_PTR)1) << num.Number); set 379 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-windows.c hwloc_bitmap_from_ith_ULONG_PTR(set, 0, ((ULONG_PTR)1) << GetCurrentProcessorNumberProc()); set 469 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-windows.c hwloc_win_get_thread_cpubind(hwloc_topology_t topology __hwloc_attribute_unused, hwloc_thread_t thread, hwloc_cpuset_t set, int flags __hwloc_attribute_unused) set 477 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-windows.c hwloc_bitmap_from_ith_ULONG_PTR(set, aff.Group, aff.Mask); set 482 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-windows.c hwloc_win_get_thisthread_cpubind(hwloc_topology_t topology __hwloc_attribute_unused, hwloc_cpuset_t set, int flags __hwloc_attribute_unused) set 484 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-windows.c return hwloc_win_get_thread_cpubind(topology, GetCurrentThread(), set, flags); set 945 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-windows.c hwloc_bitmap_t set; set 947 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-windows.c set = hwloc_bitmap_alloc(); set 952 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-windows.c hwloc_bitmap_set_ith_ULONG_PTR(set, id, mask); set 957 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-windows.c hwloc_debug_2args_bitmap("group %u %d bitmap %s\n", id, procInfo->Group.GroupInfo[id].ActiveProcessorCount, set); set 962 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-windows.c hwloc_bitmap_or(groups_pu_set, groups_pu_set, set); set 966 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-windows.c obj->cpuset = set; set 970 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-windows.c hwloc_bitmap_free(set); set 761 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-x86.c hwloc_bitmap_t set = hwloc_bitmap_alloc(); set 762 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-x86.c hwloc_bitmap_set(set, i); set 763 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-x86.c package = hwloc_get_next_obj_covering_cpuset_by_type(topology, set, HWLOC_OBJ_PACKAGE, NULL); set 764 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-x86.c hwloc_bitmap_free(set); set 1036 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-x86.c int (*get_cpubind)(hwloc_topology_t topology, hwloc_cpuset_t set, int flags), set 1037 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-x86.c int (*set_cpubind)(hwloc_topology_t topology, hwloc_const_cpuset_t set, int flags)) set 1043 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-x86.c hwloc_bitmap_t set = NULL; set 1052 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-x86.c set = hwloc_bitmap_alloc(); set 1062 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-x86.c hwloc_bitmap_only(set, i); set 1064 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-x86.c if (set_cpubind(topology, set, HWLOC_CPUBIND_STRICT)) { set 1079 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-x86.c hwloc_bitmap_free(set); set 1136 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-x86.c hwloc_cpuset_t set __hwloc_attribute_unused, set 1142 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-x86.c hwloc_const_cpuset_t set __hwloc_attribute_unused, set 1165 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-x86.c int (*get_cpubind)(hwloc_topology_t topology, hwloc_cpuset_t set, int flags) = NULL; set 1166 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-x86.c int (*set_cpubind)(hwloc_topology_t topology, hwloc_const_cpuset_t set, int flags) = NULL; set 1363 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-x86.c hwloc_x86_check_cpuiddump_input(const char *src_cpuiddump_path, hwloc_bitmap_t set) set 1398 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-x86.c hwloc_bitmap_set(set, idx); set 1406 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-x86.c if (hwloc_bitmap_iszero(set)) { set 1410 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-x86.c } else if (hwloc_bitmap_last(set) != hwloc_bitmap_weight(set) - 1) { set 1466 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-x86.c hwloc_bitmap_t set = hwloc_bitmap_alloc(); set 1467 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-x86.c if (!hwloc_x86_check_cpuiddump_input(src_cpuiddump_path, set)) { set 1470 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-x86.c assert(!hwloc_bitmap_iszero(set)); /* enforced by hwloc_x86_check_cpuiddump_input() */ set 1471 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-x86.c data->nbprocs = hwloc_bitmap_weight(set); set 1475 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology-x86.c hwloc_bitmap_free(set); set 1805 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology.c hwloc_get_highest_obj_covering_complete_cpuset (hwloc_topology_t topology, hwloc_const_cpuset_t set) set 1810 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology.c if (hwloc_bitmap_isequal(set, current->complete_cpuset)) set 1817 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology.c if (hwloc_bitmap_isequal(set, child->complete_cpuset)) set 1820 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology.c if (!hwloc_bitmap_iszero(child->complete_cpuset) && hwloc_bitmap_isincluded(set, child->complete_cpuset)) set 3957 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology.c hwloc_bitmap_t set; set 3959 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology.c set = hwloc_bitmap_alloc(); set 3961 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology.c assert(!hwloc_bitmap_intersects(set, child->cpuset)); set 3962 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology.c hwloc_bitmap_or(set, set, child->cpuset); set 3964 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology.c assert(hwloc_bitmap_isequal(set, obj->cpuset)); set 3965 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology.c hwloc_bitmap_free(set); set 4187 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology.c hwloc_bitmap_t set = hwloc_bitmap_dup(parentset); /* don't touch parentset, we don't want to propagate the first child contribution to other children */ set 4188 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology.c hwloc__check_nodesets(topology, child, set); set 4190 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology.c hwloc_bitmap_andnot(set, set, parentset); set 4192 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology.c assert(!hwloc_bitmap_intersects(childset, set)); set 4193 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology.c hwloc_bitmap_or(childset, childset, set); set 4194 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology.c hwloc_bitmap_free(set); set 4281 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology.c hwloc_bitmap_t gp_indexes, set; set 4382 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology.c set = hwloc_bitmap_alloc(); set 4383 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology.c hwloc__check_nodesets(topology, obj, set); set 4384 opal/mca/hwloc/hwloc201/hwloc/hwloc/topology.c hwloc_bitmap_free(set); set 178 opal/mca/hwloc/hwloc201/hwloc/hwloc/traversal.c hwloc__get_largest_objs_inside_cpuset (struct hwloc_obj *current, hwloc_const_bitmap_t set, set 188 opal/mca/hwloc/hwloc201/hwloc/hwloc/traversal.c if (hwloc_bitmap_isequal(current->cpuset, set)) { set 200 opal/mca/hwloc/hwloc201/hwloc/hwloc/traversal.c if (!hwloc_bitmap_intersects(set,current->children[i]->cpuset)) set 203 opal/mca/hwloc/hwloc201/hwloc/hwloc/traversal.c subset = hwloc_bitmap_dup(set); set 218 opal/mca/hwloc/hwloc201/hwloc/hwloc/traversal.c hwloc_get_largest_objs_inside_cpuset (struct hwloc_topology *topology, hwloc_const_bitmap_t set, set 223 opal/mca/hwloc/hwloc201/hwloc/hwloc/traversal.c if (!hwloc_bitmap_isincluded(set, current->cpuset)) set 229 opal/mca/hwloc/hwloc201/hwloc/hwloc/traversal.c return hwloc__get_largest_objs_inside_cpuset (current, set, &objs, &max); set 1147 opal/mca/hwloc/hwloc201/hwloc/include/hwloc.h HWLOC_DECLSPEC int hwloc_set_cpubind(hwloc_topology_t topology, hwloc_const_cpuset_t set, int flags); set 1154 opal/mca/hwloc/hwloc201/hwloc/include/hwloc.h HWLOC_DECLSPEC int hwloc_get_cpubind(hwloc_topology_t topology, hwloc_cpuset_t set, int flags); set 1167 opal/mca/hwloc/hwloc201/hwloc/include/hwloc.h HWLOC_DECLSPEC int hwloc_set_proc_cpubind(hwloc_topology_t topology, hwloc_pid_t pid, hwloc_const_cpuset_t set, int flags); set 1180 opal/mca/hwloc/hwloc201/hwloc/include/hwloc.h HWLOC_DECLSPEC int hwloc_get_proc_cpubind(hwloc_topology_t topology, hwloc_pid_t pid, hwloc_cpuset_t set, int flags); set 1190 opal/mca/hwloc/hwloc201/hwloc/include/hwloc.h HWLOC_DECLSPEC int hwloc_set_thread_cpubind(hwloc_topology_t topology, hwloc_thread_t thread, hwloc_const_cpuset_t set, int flags); set 1201 opal/mca/hwloc/hwloc201/hwloc/include/hwloc.h HWLOC_DECLSPEC int hwloc_get_thread_cpubind(hwloc_topology_t topology, hwloc_thread_t thread, hwloc_cpuset_t set, int flags); set 1217 opal/mca/hwloc/hwloc201/hwloc/include/hwloc.h HWLOC_DECLSPEC int hwloc_get_last_cpu_location(hwloc_topology_t topology, hwloc_cpuset_t set, int flags); set 1235 opal/mca/hwloc/hwloc201/hwloc/include/hwloc.h HWLOC_DECLSPEC int hwloc_get_proc_last_cpu_location(hwloc_topology_t topology, hwloc_pid_t pid, hwloc_cpuset_t set, int flags); set 1445 opal/mca/hwloc/hwloc201/hwloc/include/hwloc.h HWLOC_DECLSPEC int hwloc_set_membind(hwloc_topology_t topology, hwloc_const_bitmap_t set, hwloc_membind_policy_t policy, int flags); set 1491 opal/mca/hwloc/hwloc201/hwloc/include/hwloc.h HWLOC_DECLSPEC int hwloc_get_membind(hwloc_topology_t topology, hwloc_bitmap_t set, hwloc_membind_policy_t * policy, int flags); set 1505 opal/mca/hwloc/hwloc201/hwloc/include/hwloc.h HWLOC_DECLSPEC int hwloc_set_proc_membind(hwloc_topology_t topology, hwloc_pid_t pid, hwloc_const_bitmap_t set, hwloc_membind_policy_t policy, int flags); set 1546 opal/mca/hwloc/hwloc201/hwloc/include/hwloc.h HWLOC_DECLSPEC int hwloc_get_proc_membind(hwloc_topology_t topology, hwloc_pid_t pid, hwloc_bitmap_t set, hwloc_membind_policy_t * policy, int flags); set 1558 opal/mca/hwloc/hwloc201/hwloc/include/hwloc.h HWLOC_DECLSPEC int hwloc_set_area_membind(hwloc_topology_t topology, const void *addr, size_t len, hwloc_const_bitmap_t set, hwloc_membind_policy_t policy, int flags); set 1587 opal/mca/hwloc/hwloc201/hwloc/include/hwloc.h HWLOC_DECLSPEC int hwloc_get_area_membind(hwloc_topology_t topology, const void *addr, size_t len, hwloc_bitmap_t set, hwloc_membind_policy_t * policy, int flags); set 1608 opal/mca/hwloc/hwloc201/hwloc/include/hwloc.h HWLOC_DECLSPEC int hwloc_get_area_memlocation(hwloc_topology_t topology, const void *addr, size_t len, hwloc_bitmap_t set, int flags); set 1633 opal/mca/hwloc/hwloc201/hwloc/include/hwloc.h HWLOC_DECLSPEC void *hwloc_alloc_membind(hwloc_topology_t topology, size_t len, hwloc_const_bitmap_t set, hwloc_membind_policy_t policy, int flags) __hwloc_attribute_malloc; set 1645 opal/mca/hwloc/hwloc201/hwloc/include/hwloc.h hwloc_alloc_membind_policy(hwloc_topology_t topology, size_t len, hwloc_const_bitmap_t set, hwloc_membind_policy_t policy, int flags) __hwloc_attribute_malloc; set 93 opal/mca/hwloc/hwloc201/hwloc/include/hwloc/cuda.h CUdevice cudevice, hwloc_cpuset_t set) set 110 opal/mca/hwloc/hwloc201/hwloc/include/hwloc/cuda.h if (hwloc_linux_read_path_as_cpumask(path, set) < 0 set 111 opal/mca/hwloc/hwloc201/hwloc/include/hwloc/cuda.h || hwloc_bitmap_iszero(set)) set 112 opal/mca/hwloc/hwloc201/hwloc/include/hwloc/cuda.h hwloc_bitmap_copy(set, hwloc_topology_get_complete_cpuset(topology)); set 115 opal/mca/hwloc/hwloc201/hwloc/include/hwloc/cuda.h hwloc_bitmap_copy(set, hwloc_topology_get_complete_cpuset(topology)); set 90 opal/mca/hwloc/hwloc201/hwloc/include/hwloc/cudart.h int idx, hwloc_cpuset_t set) set 107 opal/mca/hwloc/hwloc201/hwloc/include/hwloc/cudart.h if (hwloc_linux_read_path_as_cpumask(path, set) < 0 set 108 opal/mca/hwloc/hwloc201/hwloc/include/hwloc/cudart.h || hwloc_bitmap_iszero(set)) set 109 opal/mca/hwloc/hwloc201/hwloc/include/hwloc/cudart.h hwloc_bitmap_copy(set, hwloc_topology_get_complete_cpuset(topology)); set 112 opal/mca/hwloc/hwloc201/hwloc/include/hwloc/cudart.h hwloc_bitmap_copy(set, hwloc_topology_get_complete_cpuset(topology)); set 55 opal/mca/hwloc/hwloc201/hwloc/include/hwloc/deprecated.h hwloc_bitmap_t set = hwloc_bitmap_alloc(); set 59 opal/mca/hwloc/hwloc201/hwloc/include/hwloc/deprecated.h hwloc_bitmap_zero(set); set 62 opal/mca/hwloc/hwloc201/hwloc/include/hwloc/deprecated.h hwloc_bitmap_or(set, set, objs[i]->cpuset); set 64 opal/mca/hwloc/hwloc201/hwloc/include/hwloc/deprecated.h res = hwloc_bitmap_snprintf(str, size, set); set 65 opal/mca/hwloc/hwloc201/hwloc/include/hwloc/deprecated.h hwloc_bitmap_free(set); set 42 opal/mca/hwloc/hwloc201/hwloc/include/hwloc/helper.h hwloc_get_first_largest_obj_inside_cpuset(hwloc_topology_t topology, hwloc_const_cpuset_t set) set 45 opal/mca/hwloc/hwloc201/hwloc/include/hwloc/helper.h if (!hwloc_bitmap_intersects(obj->cpuset, set)) set 47 opal/mca/hwloc/hwloc201/hwloc/include/hwloc/helper.h while (!hwloc_bitmap_isincluded(obj->cpuset, set)) { set 51 opal/mca/hwloc/hwloc201/hwloc/include/hwloc/helper.h if (hwloc_bitmap_intersects(child->cpuset, set)) set 69 opal/mca/hwloc/hwloc201/hwloc/include/hwloc/helper.h HWLOC_DECLSPEC int hwloc_get_largest_objs_inside_cpuset (hwloc_topology_t topology, hwloc_const_cpuset_t set, set 85 opal/mca/hwloc/hwloc201/hwloc/include/hwloc/helper.h hwloc_get_next_obj_inside_cpuset_by_depth (hwloc_topology_t topology, hwloc_const_cpuset_t set, set 91 opal/mca/hwloc/hwloc201/hwloc/include/hwloc/helper.h while (next && (hwloc_bitmap_iszero(next->cpuset) || !hwloc_bitmap_isincluded(next->cpuset, set))) set 109 opal/mca/hwloc/hwloc201/hwloc/include/hwloc/helper.h hwloc_get_next_obj_inside_cpuset_by_type (hwloc_topology_t topology, hwloc_const_cpuset_t set, set 115 opal/mca/hwloc/hwloc201/hwloc/include/hwloc/helper.h return hwloc_get_next_obj_inside_cpuset_by_depth(topology, set, depth, prev); set 127 opal/mca/hwloc/hwloc201/hwloc/include/hwloc/helper.h hwloc_get_obj_inside_cpuset_by_depth (hwloc_topology_t topology, hwloc_const_cpuset_t set, set 130 opal/mca/hwloc/hwloc201/hwloc/include/hwloc/helper.h hwloc_get_obj_inside_cpuset_by_depth (hwloc_topology_t topology, hwloc_const_cpuset_t set, set 138 opal/mca/hwloc/hwloc201/hwloc/include/hwloc/helper.h if (!hwloc_bitmap_iszero(obj->cpuset) && hwloc_bitmap_isincluded(obj->cpuset, set)) { set 161 opal/mca/hwloc/hwloc201/hwloc/include/hwloc/helper.h hwloc_get_obj_inside_cpuset_by_type (hwloc_topology_t topology, hwloc_const_cpuset_t set, set 164 opal/mca/hwloc/hwloc201/hwloc/include/hwloc/helper.h hwloc_get_obj_inside_cpuset_by_type (hwloc_topology_t topology, hwloc_const_cpuset_t set, set 170 opal/mca/hwloc/hwloc201/hwloc/include/hwloc/helper.h return hwloc_get_obj_inside_cpuset_by_depth(topology, set, depth, idx); set 182 opal/mca/hwloc/hwloc201/hwloc/include/hwloc/helper.h hwloc_get_nbobjs_inside_cpuset_by_depth (hwloc_topology_t topology, hwloc_const_cpuset_t set, set 185 opal/mca/hwloc/hwloc201/hwloc/include/hwloc/helper.h hwloc_get_nbobjs_inside_cpuset_by_depth (hwloc_topology_t topology, hwloc_const_cpuset_t set, set 193 opal/mca/hwloc/hwloc201/hwloc/include/hwloc/helper.h if (!hwloc_bitmap_iszero(obj->cpuset) && hwloc_bitmap_isincluded(obj->cpuset, set)) set 213 opal/mca/hwloc/hwloc201/hwloc/include/hwloc/helper.h hwloc_get_nbobjs_inside_cpuset_by_type (hwloc_topology_t topology, hwloc_const_cpuset_t set, set 216 opal/mca/hwloc/hwloc201/hwloc/include/hwloc/helper.h hwloc_get_nbobjs_inside_cpuset_by_type (hwloc_topology_t topology, hwloc_const_cpuset_t set, set 224 opal/mca/hwloc/hwloc201/hwloc/include/hwloc/helper.h return (int) hwloc_get_nbobjs_inside_cpuset_by_depth(topology, set, depth); set 241 opal/mca/hwloc/hwloc201/hwloc/include/hwloc/helper.h hwloc_get_obj_index_inside_cpuset (hwloc_topology_t topology __hwloc_attribute_unused, hwloc_const_cpuset_t set, set 244 opal/mca/hwloc/hwloc201/hwloc/include/hwloc/helper.h hwloc_get_obj_index_inside_cpuset (hwloc_topology_t topology __hwloc_attribute_unused, hwloc_const_cpuset_t set, set 248 opal/mca/hwloc/hwloc201/hwloc/include/hwloc/helper.h if (!hwloc_bitmap_isincluded(obj->cpuset, set)) set 252 opal/mca/hwloc/hwloc201/hwloc/include/hwloc/helper.h if (!hwloc_bitmap_iszero(obj->cpuset) && hwloc_bitmap_isincluded(obj->cpuset, set)) set 272 opal/mca/hwloc/hwloc201/hwloc/include/hwloc/helper.h hwloc_get_child_covering_cpuset (hwloc_topology_t topology __hwloc_attribute_unused, hwloc_const_cpuset_t set, set 275 opal/mca/hwloc/hwloc201/hwloc/include/hwloc/helper.h hwloc_get_child_covering_cpuset (hwloc_topology_t topology __hwloc_attribute_unused, hwloc_const_cpuset_t set, set 279 opal/mca/hwloc/hwloc201/hwloc/include/hwloc/helper.h if (hwloc_bitmap_iszero(set)) set 283 opal/mca/hwloc/hwloc201/hwloc/include/hwloc/helper.h if (child->cpuset && hwloc_bitmap_isincluded(set, child->cpuset)) set 295 opal/mca/hwloc/hwloc201/hwloc/include/hwloc/helper.h hwloc_get_obj_covering_cpuset (hwloc_topology_t topology, hwloc_const_cpuset_t set) __hwloc_attribute_pure; set 297 opal/mca/hwloc/hwloc201/hwloc/include/hwloc/helper.h hwloc_get_obj_covering_cpuset (hwloc_topology_t topology, hwloc_const_cpuset_t set) set 300 opal/mca/hwloc/hwloc201/hwloc/include/hwloc/helper.h if (hwloc_bitmap_iszero(set) || !hwloc_bitmap_isincluded(set, current->cpuset)) set 303 opal/mca/hwloc/hwloc201/hwloc/include/hwloc/helper.h hwloc_obj_t child = hwloc_get_child_covering_cpuset(topology, set, current); set 321 opal/mca/hwloc/hwloc201/hwloc/include/hwloc/helper.h hwloc_get_next_obj_covering_cpuset_by_depth(hwloc_topology_t topology, hwloc_const_cpuset_t set, set 327 opal/mca/hwloc/hwloc201/hwloc/include/hwloc/helper.h while (next && !hwloc_bitmap_intersects(set, next->cpuset)) set 348 opal/mca/hwloc/hwloc201/hwloc/include/hwloc/helper.h hwloc_get_next_obj_covering_cpuset_by_type(hwloc_topology_t topology, hwloc_const_cpuset_t set, set 354 opal/mca/hwloc/hwloc201/hwloc/include/hwloc/helper.h return hwloc_get_next_obj_covering_cpuset_by_depth(topology, set, depth, prev); set 610 opal/mca/hwloc/hwloc201/hwloc/include/hwloc/helper.h hwloc_get_cache_covering_cpuset (hwloc_topology_t topology, hwloc_const_cpuset_t set) __hwloc_attribute_pure; set 612 opal/mca/hwloc/hwloc201/hwloc/include/hwloc/helper.h hwloc_get_cache_covering_cpuset (hwloc_topology_t topology, hwloc_const_cpuset_t set) set 614 opal/mca/hwloc/hwloc201/hwloc/include/hwloc/helper.h hwloc_obj_t current = hwloc_get_obj_covering_cpuset(topology, set); set 817 opal/mca/hwloc/hwloc201/hwloc/include/hwloc/helper.h hwloc_cpuset_t *set, set 824 opal/mca/hwloc/hwloc201/hwloc/include/hwloc/helper.h hwloc_cpuset_t *cpusetp = set; set 123 opal/mca/hwloc/hwloc201/hwloc/include/hwloc/inlines.h hwloc_alloc_membind_policy(hwloc_topology_t topology, size_t len, hwloc_const_cpuset_t set, hwloc_membind_policy_t policy, int flags) set 125 opal/mca/hwloc/hwloc201/hwloc/include/hwloc/inlines.h void *p = hwloc_alloc_membind(topology, len, set, policy, flags); set 129 opal/mca/hwloc/hwloc201/hwloc/include/hwloc/inlines.h if (hwloc_set_membind(topology, set, policy, flags) < 0) set 60 opal/mca/hwloc/hwloc201/hwloc/include/hwloc/intel-mic.h hwloc_cpuset_t set) set 83 opal/mca/hwloc/hwloc201/hwloc/include/hwloc/intel-mic.h if (hwloc_linux_read_path_as_cpumask(path, set) < 0 set 84 opal/mca/hwloc/hwloc201/hwloc/include/hwloc/intel-mic.h || hwloc_bitmap_iszero(set)) set 85 opal/mca/hwloc/hwloc201/hwloc/include/hwloc/intel-mic.h hwloc_bitmap_copy(set, hwloc_topology_get_complete_cpuset(topology)); set 93 opal/mca/hwloc/hwloc201/hwloc/include/hwloc/intel-mic.h hwloc_bitmap_copy(set, hwloc_topology_get_complete_cpuset(topology)); set 43 opal/mca/hwloc/hwloc201/hwloc/include/hwloc/linux.h HWLOC_DECLSPEC int hwloc_linux_set_tid_cpubind(hwloc_topology_t topology, pid_t tid, hwloc_const_cpuset_t set); set 53 opal/mca/hwloc/hwloc201/hwloc/include/hwloc/linux.h HWLOC_DECLSPEC int hwloc_linux_get_tid_cpubind(hwloc_topology_t topology, pid_t tid, hwloc_cpuset_t set); set 60 opal/mca/hwloc/hwloc201/hwloc/include/hwloc/linux.h HWLOC_DECLSPEC int hwloc_linux_get_tid_last_cpu_location(hwloc_topology_t topology, pid_t tid, hwloc_bitmap_t set); set 69 opal/mca/hwloc/hwloc201/hwloc/include/hwloc/linux.h HWLOC_DECLSPEC int hwloc_linux_read_path_as_cpumask(const char *path, hwloc_bitmap_t set); set 57 opal/mca/hwloc/hwloc201/hwloc/include/hwloc/nvml.h nvmlDevice_t device, hwloc_cpuset_t set) set 78 opal/mca/hwloc/hwloc201/hwloc/include/hwloc/nvml.h if (hwloc_linux_read_path_as_cpumask(path, set) < 0 set 79 opal/mca/hwloc/hwloc201/hwloc/include/hwloc/nvml.h || hwloc_bitmap_iszero(set)) set 80 opal/mca/hwloc/hwloc201/hwloc/include/hwloc/nvml.h hwloc_bitmap_copy(set, hwloc_topology_get_complete_cpuset(topology)); set 83 opal/mca/hwloc/hwloc201/hwloc/include/hwloc/nvml.h hwloc_bitmap_copy(set, hwloc_topology_get_complete_cpuset(topology)); set 71 opal/mca/hwloc/hwloc201/hwloc/include/hwloc/opencl.h hwloc_cpuset_t set) set 87 opal/mca/hwloc/hwloc201/hwloc/include/hwloc/opencl.h hwloc_bitmap_copy(set, hwloc_topology_get_complete_cpuset(topology)); set 91 opal/mca/hwloc/hwloc201/hwloc/include/hwloc/opencl.h hwloc_bitmap_copy(set, hwloc_topology_get_complete_cpuset(topology)); set 97 opal/mca/hwloc/hwloc201/hwloc/include/hwloc/opencl.h if (hwloc_linux_read_path_as_cpumask(path, set) < 0 set 98 opal/mca/hwloc/hwloc201/hwloc/include/hwloc/opencl.h || hwloc_bitmap_iszero(set)) set 99 opal/mca/hwloc/hwloc201/hwloc/include/hwloc/opencl.h hwloc_bitmap_copy(set, hwloc_topology_get_complete_cpuset(topology)); set 102 opal/mca/hwloc/hwloc201/hwloc/include/hwloc/opencl.h hwloc_bitmap_copy(set, hwloc_topology_get_complete_cpuset(topology)); set 63 opal/mca/hwloc/hwloc201/hwloc/include/hwloc/openfabrics-verbs.h struct ibv_device *ibdev, hwloc_cpuset_t set) set 78 opal/mca/hwloc/hwloc201/hwloc/include/hwloc/openfabrics-verbs.h if (hwloc_linux_read_path_as_cpumask(path, set) < 0 set 79 opal/mca/hwloc/hwloc201/hwloc/include/hwloc/openfabrics-verbs.h || hwloc_bitmap_iszero(set)) set 80 opal/mca/hwloc/hwloc201/hwloc/include/hwloc/openfabrics-verbs.h hwloc_bitmap_copy(set, hwloc_topology_get_complete_cpuset(topology)); set 83 opal/mca/hwloc/hwloc201/hwloc/include/hwloc/openfabrics-verbs.h hwloc_bitmap_copy(set, hwloc_topology_get_complete_cpuset(topology)); set 89 opal/mca/hwloc/hwloc201/hwloc/include/private/private.h int (*set_thisproc_cpubind)(hwloc_topology_t topology, hwloc_const_cpuset_t set, int flags); set 90 opal/mca/hwloc/hwloc201/hwloc/include/private/private.h int (*get_thisproc_cpubind)(hwloc_topology_t topology, hwloc_cpuset_t set, int flags); set 91 opal/mca/hwloc/hwloc201/hwloc/include/private/private.h int (*set_thisthread_cpubind)(hwloc_topology_t topology, hwloc_const_cpuset_t set, int flags); set 92 opal/mca/hwloc/hwloc201/hwloc/include/private/private.h int (*get_thisthread_cpubind)(hwloc_topology_t topology, hwloc_cpuset_t set, int flags); set 93 opal/mca/hwloc/hwloc201/hwloc/include/private/private.h int (*set_proc_cpubind)(hwloc_topology_t topology, hwloc_pid_t pid, hwloc_const_cpuset_t set, int flags); set 94 opal/mca/hwloc/hwloc201/hwloc/include/private/private.h int (*get_proc_cpubind)(hwloc_topology_t topology, hwloc_pid_t pid, hwloc_cpuset_t set, int flags); set 96 opal/mca/hwloc/hwloc201/hwloc/include/private/private.h int (*set_thread_cpubind)(hwloc_topology_t topology, hwloc_thread_t tid, hwloc_const_cpuset_t set, int flags); set 97 opal/mca/hwloc/hwloc201/hwloc/include/private/private.h int (*get_thread_cpubind)(hwloc_topology_t topology, hwloc_thread_t tid, hwloc_cpuset_t set, int flags); set 100 opal/mca/hwloc/hwloc201/hwloc/include/private/private.h int (*get_thisproc_last_cpu_location)(hwloc_topology_t topology, hwloc_cpuset_t set, int flags); set 101 opal/mca/hwloc/hwloc201/hwloc/include/private/private.h int (*get_thisthread_last_cpu_location)(hwloc_topology_t topology, hwloc_cpuset_t set, int flags); set 102 opal/mca/hwloc/hwloc201/hwloc/include/private/private.h int (*get_proc_last_cpu_location)(hwloc_topology_t topology, hwloc_pid_t pid, hwloc_cpuset_t set, int flags); set 994 opal/mca/pmix/pmix4x/pmix/src/mca/base/pmix_mca_base_var.c int pmix_mca_base_var_set_flag (int vari, pmix_mca_base_var_flag_t flag, bool set) set 1004 opal/mca/pmix/pmix4x/pmix/src/mca/base/pmix_mca_base_var.c var->mbv_flags = (var->mbv_flags & ~flag) | (set ? flag : 0); set 640 opal/mca/pmix/pmix4x/pmix/src/mca/base/pmix_mca_base_var.h bool set); set 411 opal/mca/pmix/pmix4x/pmix/src/mca/base/pmix_mca_base_var_group.c int pmix_mca_base_var_group_set_var_flag (const int group_index, int flags, bool set) set 428 opal/mca/pmix/pmix4x/pmix/src/mca/base/pmix_mca_base_var_group.c (void) pmix_mca_base_var_set_flag (vars[i], flags, set); set 155 opal/mca/pmix/pmix4x/pmix/src/mca/base/pmix_mca_base_var_group.h bool set); set 368 orte/mca/odls/alps/odls_alps_module.c orte_rtc.set(cd->jdata, cd->child, &cd->env, write_fd); set 378 orte/mca/odls/default/odls_default_module.c orte_rtc.set(cd->jdata, cd->child, &cd->env, write_fd); set 39 orte/mca/rtc/base/rtc_base_stubs.c if (NULL != active->module->set) { set 41 orte/mca/rtc/base/rtc_base_stubs.c active->module->set(jdata, proc, environ_copy, error_fd); set 56 orte/mca/rtc/hwloc/rtc_hwloc.c static void set(orte_job_t *jdata, set 65 orte/mca/rtc/hwloc/rtc_hwloc.c .set = set set 81 orte/mca/rtc/rtc.h orte_rtc_base_module_set_fn_t set; set 89 orte/mca/rtc/rtc.h orte_rtc_base_module_set_fn_t set; set 308 orte/test/system/threads.c hwloc_cpuset_t set; set 329 orte/test/system/threads.c set = hwloc_bitmap_alloc(); set 330 orte/test/system/threads.c hwloc_get_cpubind(topo, set, HWLOC_CPUBIND_THREAD); set 331 orte/test/system/threads.c hwloc_bitmap_opal_asprintf(&buffer, set); set 334 orte/test/system/threads.c hwloc_bitmap_free(set); set 131 test/event/event-test.c opal_event.set(opal_event_base, &evfifo, (int)socket, OPAL_EV_READ, fifo_read, &evfifo); set 133 test/event/event-test.c opal_event.set(opal_event_base, &evfifo, socket, OPAL_EV_READ, fifo_read, &evfifo); set 57 test/event/signal-test.c opal_event.set(opal_event_base, &signal_term, SIGUSR1, OPAL_EV_SIGNAL|OPAL_EV_PERSIST, signal_cb, set 59 test/event/signal-test.c opal_event.set(opal_event_base, &signal_int, SIGUSR2, OPAL_EV_SIGNAL|OPAL_EV_PERSIST, signal_cb,