|
Lines 447-457
static int _task_cgroup_cpuset_dist_cyclic(
Link Here
|
| 447 |
uint32_t obj_idxs[3], cps, tpc, i, j, sock_loop, ntskip, npdist; |
447 |
uint32_t obj_idxs[3], cps, tpc, i, j, sock_loop, ntskip, npdist; |
| 448 |
bool core_cyclic, core_fcyclic, sock_fcyclic; |
448 |
bool core_cyclic, core_fcyclic, sock_fcyclic; |
| 449 |
bool hwloc_success = true; |
449 |
bool hwloc_success = true; |
| 450 |
hwloc_obj_type_t socket_type = HWLOC_OBJ_SOCKET; |
450 |
hwloc_obj_type_t socket_type = slurmd_parameter_as_socket(); |
| 451 |
#if HWLOC_API_VERSION >= 0x00020000 |
|
|
| 452 |
if (xstrcasestr(slurm_conf.slurmd_params, "l3cache_as_socket")) |
| 453 |
socket_type = HWLOC_OBJ_L3CACHE; |
| 454 |
#endif |
| 455 |
|
451 |
|
| 456 |
/* |
452 |
/* |
| 457 |
* We can't trust the slurmd_conf_t *conf here as we need actual |
453 |
* We can't trust the slurmd_conf_t *conf here as we need actual |
|
Lines 703-713
static int _task_cgroup_cpuset_dist_block(
Link Here
|
| 703 |
uint32_t core_idx; |
699 |
uint32_t core_idx; |
| 704 |
bool core_fcyclic, core_block; |
700 |
bool core_fcyclic, core_block; |
| 705 |
|
701 |
|
| 706 |
hwloc_obj_type_t socket_type = HWLOC_OBJ_SOCKET; |
702 |
hwloc_obj_type_t socket_type = slurmd_parameter_as_socket(); |
| 707 |
#if HWLOC_API_VERSION >= 0x00020000 |
|
|
| 708 |
if (xstrcasestr(slurm_conf.slurmd_params, "l3cache_as_socket")) |
| 709 |
socket_type = HWLOC_OBJ_L3CACHE; |
| 710 |
#endif |
| 711 |
|
703 |
|
| 712 |
nsockets = (uint32_t) hwloc_get_nbobjs_by_type(topology, |
704 |
nsockets = (uint32_t) hwloc_get_nbobjs_by_type(topology, |
| 713 |
socket_type); |
705 |
socket_type); |
|
Lines 1022-1032
extern int task_cgroup_cpuset_set_task_affinity(stepd_step_rec_t *job,
Link Here
|
| 1022 |
uint32_t jnpus; |
1014 |
uint32_t jnpus; |
| 1023 |
int spec_threads = 0; |
1015 |
int spec_threads = 0; |
| 1024 |
|
1016 |
|
| 1025 |
hwloc_obj_type_t socket_type = HWLOC_OBJ_SOCKET; |
1017 |
hwloc_obj_type_t socket_type = slurmd_parameter_as_socket(); |
| 1026 |
#if HWLOC_API_VERSION >= 0x00020000 |
|
|
| 1027 |
if (xstrcasestr(slurm_conf.slurmd_params, "l3cache_as_socket")) |
| 1028 |
socket_type = HWLOC_OBJ_L3CACHE; |
| 1029 |
#endif |
| 1030 |
|
1018 |
|
| 1031 |
/* Allocate and initialize hwloc objects */ |
1019 |
/* Allocate and initialize hwloc objects */ |
| 1032 |
hwloc_topology_init(&topology); |
1020 |
hwloc_topology_init(&topology); |