Skip to content

Commit 7767882

Browse files
author
Ralph Castain
committed
Per user request, add some missing data and definitions:
OPAL_PMIX_UNIV_RANK - synonym for OPAL_PMIX_GLOBAL_RANK OPAL_PMIX_APP_SIZE - #ranks in the application of this proc
1 parent 1911d74 commit 7767882

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

opal/mca/pmix/pmix_types.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ BEGIN_C_DECLS
4848
#define OPAL_PMIX_APPNUM "pmix.appnum" // (uint32_t) app number within the job
4949
#define OPAL_PMIX_RANK "pmix.rank" // (uint32_t) process rank within the job
5050
#define OPAL_PMIX_GLOBAL_RANK "pmix.grank" // (uint32_t) rank spanning across all jobs in this session
51+
#define OPAL_PMIX_UNIV_RANK "pmix.grank" // (uint32_t) synonym for global_rank
5152
#define OPAL_PMIX_APP_RANK "pmix.apprank" // (uint32_t) rank within this app
5253
#define OPAL_PMIX_NPROC_OFFSET "pmix.offset" // (uint32_t) starting global rank of this job
5354
#define OPAL_PMIX_LOCAL_RANK "pmix.lrank" // (uint16_t) rank on this node within this job
@@ -78,6 +79,7 @@ BEGIN_C_DECLS
7879
/* size info */
7980
#define OPAL_PMIX_UNIV_SIZE "pmix.univ.size" // (uint32_t) #procs in this nspace
8081
#define OPAL_PMIX_JOB_SIZE "pmix.job.size" // (uint32_t) #procs in this job
82+
#define OPAL_PMIX_APP_SIZE "pmix.app.size" // (uint32_t) #procs in this app
8183
#define OPAL_PMIX_LOCAL_SIZE "pmix.local.size" // (uint32_t) #procs in this job on this node
8284
#define OPAL_PMIX_NODE_SIZE "pmix.node.size" // (uint32_t) #procs across all jobs on this node
8385
#define OPAL_PMIX_MAX_PROCS "pmix.max.size" // (uint32_t) max #procs for this job

orte/orted/pmix/pmix_server_register_fns.c

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* All rights reserved.
1414
* Copyright (c) 2009 Cisco Systems, Inc. All rights reserved.
1515
* Copyright (c) 2011 Oak Ridge National Labs. All rights reserved.
16-
* Copyright (c) 2013-2015 Intel, Inc. All rights reserved.
16+
* Copyright (c) 2013-2016 Intel, Inc. All rights reserved.
1717
* Copyright (c) 2014 Mellanox Technologies, Inc.
1818
* All rights reserved.
1919
* Copyright (c) 2014 Research Organization for Information Science
@@ -359,7 +359,7 @@ int orte_pmix_server_register_nspace(orte_job_t *jdata)
359359
kv->data.uint32 = app->first_rank;
360360
opal_list_append(pmap, &kv->super);
361361

362-
/* global rank */
362+
/* global/univ rank */
363363
kv = OBJ_NEW(opal_value_t);
364364
kv->key = strdup(OPAL_PMIX_GLOBAL_RANK);
365365
kv->type = OPAL_UINT32;
@@ -373,6 +373,13 @@ int orte_pmix_server_register_nspace(orte_job_t *jdata)
373373
kv->data.uint32 = pptr->app_rank;
374374
opal_list_append(pmap, &kv->super);
375375

376+
/* app size */
377+
kv = OBJ_NEW(opal_value_t);
378+
kv->key = strdup(OPAL_PMIX_APP_SIZE);
379+
kv->type = OPAL_UINT32;
380+
kv->data.uint32 = app->num_procs;
381+
opal_list_append(info, &kv->super);
382+
376383
/* local rank */
377384
kv = OBJ_NEW(opal_value_t);
378385
kv->key = strdup(OPAL_PMIX_LOCAL_RANK);

0 commit comments

Comments
 (0)