Skip to content

Commit 0ba0282

Browse files
author
Ralph Castain
committed
Add requested key and job-level info
1 parent 0a29f5c commit 0ba0282

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

opal/mca/pmix/pmix_types.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ BEGIN_C_DECLS
9595
/* size info */
9696
#define OPAL_PMIX_UNIV_SIZE "pmix.univ.size" // (uint32_t) #procs in this nspace
9797
#define OPAL_PMIX_JOB_SIZE "pmix.job.size" // (uint32_t) #procs in this job
98+
#define OPAL_PMIX_JOB_NUM_APPS "pmix.job.napps" // (uint32_t) #apps in this job
9899
#define OPAL_PMIX_APP_SIZE "pmix.app.size" // (uint32_t) #procs in this app
99100
#define OPAL_PMIX_LOCAL_SIZE "pmix.local.size" // (uint32_t) #procs in this job on this node
100101
#define OPAL_PMIX_NODE_SIZE "pmix.node.size" // (uint32_t) #procs across all jobs on this node

orte/orted/pmix/pmix_server_register_fns.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,13 @@ int orte_pmix_server_register_nspace(orte_job_t *jdata)
279279
kv->data.uint32 = jdata->num_procs;
280280
opal_list_append(info, &kv->super);
281281

282+
/* number of apps in this job */
283+
kv = OBJ_NEW(opal_value_t);
284+
kv->key = strdup(OPAL_PMIX_JOB_NUM_APPS);
285+
kv->type = OPAL_UINT32;
286+
kv->data.uint32 = jdata->num_apps;
287+
opal_list_append(info, &kv->super);
288+
282289
/* local size */
283290
kv = OBJ_NEW(opal_value_t);
284291
kv->key = strdup(OPAL_PMIX_LOCAL_SIZE);

0 commit comments

Comments
 (0)