1
1

Merge pull request #1897 from rhc54/topic/fixes

Cleanup the new naming requirements to ensure that info is correctly retrieved
Этот коммит содержится в:
rhc54 2016-07-21 11:05:09 -07:00 коммит произвёл GitHub
родитель 58e9caca73 71de03fc67
Коммит 941d4fdb8b
4 изменённых файлов: 11 добавлений и 8 удалений

0
opal/mca/pmix/pmix2x/pmix/src/client/pmix_client_get.c Исполняемый файл → Обычный файл
Просмотреть файл

0
opal/mca/pmix/pmix2x/pmix/src/server/pmix_server_get.c Исполняемый файл → Обычный файл
Просмотреть файл

Просмотреть файл

@ -203,7 +203,7 @@ static int rte_init(void)
/* get the number of local peers - required for wireup of /* get the number of local peers - required for wireup of
* shared memory BTL */ * shared memory BTL */
OPAL_MODEX_RECV_VALUE(ret, OPAL_PMIX_LOCAL_SIZE, OPAL_MODEX_RECV_VALUE(ret, OPAL_PMIX_LOCAL_SIZE,
ORTE_PROC_MY_NAME, &u32ptr, OPAL_UINT32); &name, &u32ptr, OPAL_UINT32);
if (OPAL_SUCCESS == ret) { if (OPAL_SUCCESS == ret) {
orte_process_info.num_local_peers = u32 - 1; // want number besides ourselves orte_process_info.num_local_peers = u32 - 1; // want number besides ourselves
} else { } else {
@ -234,7 +234,7 @@ static int rte_init(void)
/* retrieve our topology */ /* retrieve our topology */
val = NULL; val = NULL;
OPAL_MODEX_RECV_VALUE_OPTIONAL(ret, OPAL_PMIX_LOCAL_TOPO, OPAL_MODEX_RECV_VALUE_OPTIONAL(ret, OPAL_PMIX_LOCAL_TOPO,
ORTE_PROC_MY_NAME, &val, OPAL_STRING); &name, &val, OPAL_STRING);
if (OPAL_SUCCESS == ret && NULL != val) { if (OPAL_SUCCESS == ret && NULL != val) {
/* load the topology */ /* load the topology */
if (0 != hwloc_topology_init(&opal_hwloc_topology)) { if (0 != hwloc_topology_init(&opal_hwloc_topology)) {
@ -293,7 +293,7 @@ static int rte_init(void)
error = "topology export"; error = "topology export";
goto error; goto error;
} }
if (OPAL_SUCCESS != (ret = opal_pmix.store_local(ORTE_PROC_MY_NAME, kv))) { if (OPAL_SUCCESS != (ret = opal_pmix.store_local(&name, kv))) {
error = "topology store"; error = "topology store";
goto error; goto error;
} }
@ -310,12 +310,12 @@ static int rte_init(void)
} }
/* retrieve the local peers */ /* retrieve the local peers */
OPAL_MODEX_RECV_VALUE(ret, OPAL_PMIX_LOCAL_PEERS, OPAL_MODEX_RECV_VALUE(ret, OPAL_PMIX_LOCAL_PEERS,
ORTE_PROC_MY_NAME, &val, OPAL_STRING); &name, &val, OPAL_STRING);
if (OPAL_SUCCESS == ret && NULL != val) { if (OPAL_SUCCESS == ret && NULL != val) {
peers = opal_argv_split(val, ','); peers = opal_argv_split(val, ',');
free(val); free(val);
/* and their cpusets, if available */ /* and their cpusets, if available */
OPAL_MODEX_RECV_VALUE_OPTIONAL(ret, OPAL_PMIX_LOCAL_CPUSETS, ORTE_PROC_MY_NAME, &val, OPAL_STRING); OPAL_MODEX_RECV_VALUE_OPTIONAL(ret, OPAL_PMIX_LOCAL_CPUSETS, &name, &val, OPAL_STRING);
if (OPAL_SUCCESS == ret && NULL != val) { if (OPAL_SUCCESS == ret && NULL != val) {
cpusets = opal_argv_split(val, ':'); cpusets = opal_argv_split(val, ':');
free(val); free(val);

Просмотреть файл

@ -90,6 +90,7 @@ static int rte_init(void)
char *val; char *val;
int u32, *u32ptr; int u32, *u32ptr;
uint16_t u16, *u16ptr; uint16_t u16, *u16ptr;
orte_process_name_t name;
/* run the prolog */ /* run the prolog */
if (ORTE_SUCCESS != (rc = orte_ess_base_std_prolog())) { if (ORTE_SUCCESS != (rc = orte_ess_base_std_prolog())) {
@ -198,6 +199,8 @@ static int rte_init(void)
* so carry it forward here */ * so carry it forward here */
ORTE_PROC_MY_NAME->jobid = OPAL_PROC_MY_NAME.jobid; ORTE_PROC_MY_NAME->jobid = OPAL_PROC_MY_NAME.jobid;
ORTE_PROC_MY_NAME->vpid = OPAL_PROC_MY_NAME.vpid; ORTE_PROC_MY_NAME->vpid = OPAL_PROC_MY_NAME.vpid;
name.jobid = OPAL_PROC_MY_NAME.jobid;
name.vpid = ORTE_VPID_WILDCARD;
/* get our local rank from PMI */ /* get our local rank from PMI */
OPAL_MODEX_RECV_VALUE(ret, OPAL_PMIX_LOCAL_RANK, OPAL_MODEX_RECV_VALUE(ret, OPAL_PMIX_LOCAL_RANK,
@ -219,7 +222,7 @@ static int rte_init(void)
/* get max procs */ /* get max procs */
OPAL_MODEX_RECV_VALUE(ret, OPAL_PMIX_MAX_PROCS, OPAL_MODEX_RECV_VALUE(ret, OPAL_PMIX_MAX_PROCS,
ORTE_PROC_MY_NAME, &u32ptr, OPAL_UINT32); &name, &u32ptr, OPAL_UINT32);
if (OPAL_SUCCESS != ret) { if (OPAL_SUCCESS != ret) {
error = "getting max procs"; error = "getting max procs";
goto error; goto error;
@ -274,7 +277,7 @@ static int rte_init(void)
/* retrieve our topology */ /* retrieve our topology */
OPAL_MODEX_RECV_VALUE(ret, OPAL_PMIX_LOCAL_TOPO, OPAL_MODEX_RECV_VALUE(ret, OPAL_PMIX_LOCAL_TOPO,
ORTE_PROC_MY_NAME, &val, OPAL_STRING); &name, &val, OPAL_STRING);
if (OPAL_SUCCESS == ret && NULL != val) { if (OPAL_SUCCESS == ret && NULL != val) {
/* load the topology */ /* load the topology */
if (0 != hwloc_topology_init(&opal_hwloc_topology)) { if (0 != hwloc_topology_init(&opal_hwloc_topology)) {