Skip to content

Conversation

karasevb
Copy link
Member

Example:

int main(void) {
    int rc = 0;
    shmem_init();
    if (0 == shmem_my_pe())
        rc = 1;
    shmem_finalize();
    return rc;
}

If the user wants to return non-zero status, this leads to
ompi_mpi_finalize() won't be called and the program terminates
abnormally.

…alue.

Example:
int main(void) {
    int rc = 0;
    shmem_init();
    if (0 == shmem_my_pe())
        rc = 1;
    shmem_finalize();
    return rc;
}

If the user wants to return not-zero status, this leads to
`ompi_mpi_finalize()` won't be called and the program terminates
abnormally.

Signed-off-by: Boris Karasev <karasev.b@gmail.com>
@awlauria awlauria requested a review from janjust August 25, 2021 21:38
@yosefe yosefe merged commit d56ef3f into open-mpi:master Aug 26, 2021
@yosefe
Copy link
Contributor

yosefe commented Aug 26, 2021

@karasevb pls port to 5.x and 4.1.x

@janjust
Copy link
Contributor

janjust commented Aug 26, 2021

@yosefe @karasevb should we cherry-pick this into v4.0 also?

@karasevb
Copy link
Member Author

@yosefe @karasevb should we cherry-pick this into v4.0 also?

Done

@awlauria

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants