Skip to content

Commit 9324193

Browse files
author
Ralph Castain
authored
Merge pull request #4066 from rhc54/topic/patterns
Provide the mapping, ranking, binding patterns
2 parents 6dfb48d + edccb25 commit 9324193

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

orte/orted/pmix/pmix_server_register_fns.c

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
#include "orte/runtime/orte_globals.h"
4646
#include "orte/runtime/orte_wait.h"
4747
#include "orte/mca/errmgr/errmgr.h"
48-
#include "orte/mca/rmaps/rmaps_types.h"
48+
#include "orte/mca/rmaps/base/base.h"
4949

5050
#include "pmix_server_internal.h"
5151
#include "pmix_server.h"
@@ -264,6 +264,29 @@ int orte_pmix_server_register_nspace(orte_job_t *jdata, bool force)
264264
opal_list_append(info, &kv->super);
265265
}
266266

267+
/* pass the mapping policy used for this job */
268+
kv = OBJ_NEW(opal_value_t);
269+
kv->key = strdup(OPAL_PMIX_MAPBY);
270+
kv->type = OPAL_STRING;
271+
kv->data.string = strdup(orte_rmaps_base_print_mapping(jdata->map->mapping));
272+
opal_list_append(info, &kv->super);
273+
274+
/* pass the ranking policy used for this job */
275+
kv = OBJ_NEW(opal_value_t);
276+
kv->key = strdup(OPAL_PMIX_RANKBY);
277+
kv->type = OPAL_STRING;
278+
kv->data.string = strdup(orte_rmaps_base_print_ranking(jdata->map->ranking));
279+
opal_list_append(info, &kv->super);
280+
281+
/* pass the binding policy used for this job */
282+
kv = OBJ_NEW(opal_value_t);
283+
kv->key = strdup(OPAL_PMIX_BINDTO);
284+
kv->type = OPAL_STRING;
285+
kv->data.string = strdup(opal_hwloc_base_print_binding(jdata->map->binding));
286+
opal_list_append(info, &kv->super);
287+
288+
289+
267290
/* register any local clients */
268291
vpid = ORTE_VPID_MAX;
269292
micro = NULL;

0 commit comments

Comments
 (0)