|
45 | 45 | #include "orte/runtime/orte_globals.h" |
46 | 46 | #include "orte/runtime/orte_wait.h" |
47 | 47 | #include "orte/mca/errmgr/errmgr.h" |
48 | | -#include "orte/mca/rmaps/rmaps_types.h" |
| 48 | +#include "orte/mca/rmaps/base/base.h" |
49 | 49 |
|
50 | 50 | #include "pmix_server_internal.h" |
51 | 51 | #include "pmix_server.h" |
@@ -264,6 +264,29 @@ int orte_pmix_server_register_nspace(orte_job_t *jdata, bool force) |
264 | 264 | opal_list_append(info, &kv->super); |
265 | 265 | } |
266 | 266 |
|
| 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 | + |
267 | 290 | /* register any local clients */ |
268 | 291 | vpid = ORTE_VPID_MAX; |
269 | 292 | micro = NULL; |
|
0 commit comments