1
1

Merge pull request #351 from hppritcha/topic/alps_odls_spawn_bug

odls/alps: check if PMI gni rdma creds already set
Этот коммит содержится в:
Howard Pritchard 2015-01-19 11:48:24 -07:00
родитель da83b084f5 fd807aee69
Коммит 06d3b57c07

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

@ -53,6 +53,17 @@ int orte_odls_alps_get_rdma_creds(void)
alpsAppGni_t *rdmacred_buf;
char *ptr;
char env_buffer[1024];
static int already_got_creds = 0;
/*
* If we already put the GNI RDMA credentials into orte_launch_environ,
* no need to do anything.
* TODO: kind of ugly, need to implement an opal_getenv
*/
if (1 == already_got_creds) {
return ORTE_SUCCESS;
}
/*
* get the Cray HSN RDMA credentials here and stuff them in to the
@ -234,6 +245,7 @@ int orte_odls_alps_get_rdma_creds(void)
}
fn_exit:
if (ORTE_SUCCESS == ret) already_got_creds = 1;
return ret;
}