ompi icon indicating copy to clipboard operation
ompi copied to clipboard

PMIx_Group_construct - handle error returns

Open hppritcha opened this issue 3 years ago • 4 comments
trafficstars

The error return code from PMIx_Group_construct was not being handled at all. This PR fixes this issue.

In cases where the process is running without a PMIx server, for instance in a singleton program which has not invoked MPI_Comm_spawn, and it uses MPI_Comm_create_from_group the following error hep message is emitted:


Your application has invoked an MPI function that is not supported in this environment.

MPI function: MPI_Comm_from_group/MPI_Intercomm_from_groups Reason: PMIx server unreachable


If a PMIx implementation is being used that does not support PMIx_Group_construct, the following help message is emitted if the code invokes MPI_Comm_create_from_group or MPI_Intercomm_create_from_groups:


Your application has invoked an MPI function that is not supported in this environment.

MPI function: MPI_Comm_from_group/MPI_Intercomm_from_groups Reason: PMIx server does not support PMIx Group operations


Related to #10736

Signed-off-by: Howard Pritchard [email protected]

hppritcha avatar Sep 14 '22 17:09 hppritcha

@hppritcha Could you please rebase this PR to latest main? That way, I can give it a try with mpi4py testsuite.

dalcinl avatar Sep 21 '22 15:09 dalcinl

@dalcinl done - i wanted to do a sanity build check first.

hppritcha avatar Sep 21 '22 17:09 hppritcha

@hppritcha FYI, all mpi4py tests passed. In the singleton case, the unsupported operation message is printed to stdout [link].

dalcinl avatar Sep 21 '22 20:09 dalcinl

cool. Thanks @dalcinl

hppritcha avatar Sep 21 '22 20:09 hppritcha

/azp run

hppritcha avatar Sep 22 '22 14:09 hppritcha

Azure Pipelines successfully started running 1 pipeline(s).

azure-pipelines[bot] avatar Sep 22 '22 14:09 azure-pipelines[bot]

/azp run

hppritcha avatar Sep 22 '22 22:09 hppritcha

Azure Pipelines successfully started running 1 pipeline(s).

azure-pipelines[bot] avatar Sep 22 '22 22:09 azure-pipelines[bot]