When local size is 1, comm_world->node_comm does not exist and the
Allgather result in segfaults.
This fixes the segfaults when setting MPIR_CVAR_CH4_SHM_POSIX_TOPO_ENABLE=1 and node local size is 1.o
Also, some cleanups while we are at it.
[skip warnings]
Author Checklist
[x] Provide Description
Particularly focus on why, not what. Reference background, issues, test failures, xfail entries, etc.
[x] Commits Follow Good Practice
Commits are self-contained and do not do two things at once.
Commit message is of the form: module: short description
Commit message explains what's in the commit.
[x] Passes All Tests
Whitespace checker. Warnings test. Additional tests via comments.
[x] Contribution Agreement
For non-Argonne authors, check contribution agreement.
If necessary, request an explicit comment from your companies PR approval manager.
Pull Request Description
When local size is 1, comm_world->node_comm does not exist and the Allgather result in segfaults.
This fixes the segfaults when setting
MPIR_CVAR_CH4_SHM_POSIX_TOPO_ENABLE=1
and node local size is 1.o[skip warnings]
Author Checklist
module: short description
Commit message explains what's in the commit.