pmodels / mpich

Official MPICH Repository
http://www.mpich.org
Other
541 stars 280 forks source link

ch4/posix: fix post_init when local_size is 1 #7145

Closed hzhou closed 1 week ago

hzhou commented 1 week ago

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

hzhou commented 1 week ago

test:mpich/custom netmod: ch4:ofi env: MPIR_CVAR_CH4_SHM_POSIX_TOPO_ENABLE=1 ✔️