Skip to content

Commit

Permalink
sessions: fix pset_name handling
Browse files Browse the repository at this point in the history
Signed-off-by: tomhers <tom.herschberg@gmail.com>
  • Loading branch information
tomhers authored and hppritcha committed Jun 23, 2021
1 parent 1c1921f commit 262c9da
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ompi/instance/instance.c
Original file line number Diff line number Diff line change
Expand Up @@ -1203,6 +1203,10 @@ static int ompi_instance_get_pmix_pset_size (ompi_instance_t *instance, const ch

int ompi_group_from_pset (ompi_instance_t *instance, const char *pset_name, ompi_group_t **group_out)
{
if (group_out == MPI_GROUP_NULL) {
return OMPI_ERR_BAD_PARAM;
}

if (0 == strncmp (pset_name, "mpi://", 6)) {
pset_name += 6;
if (0 == strcmp (pset_name, "WORLD")) {
Expand All @@ -1211,6 +1215,10 @@ int ompi_group_from_pset (ompi_instance_t *instance, const char *pset_name, ompi
if (0 == strcmp (pset_name, "SELF")) {
return ompi_instance_group_self (instance, group_out);
}
}

if (0 == strncmp (pset_name, "mpix://", 7)) {
pset_name += 7;
if (0 == strcmp (pset_name, "SHARED")) {
return ompi_instance_group_shared (instance, group_out);
}
Expand Down

0 comments on commit 262c9da

Please sign in to comment.