--enable-debug --enable-shared --enable-debuginfo --enable-sharedlib=gcc
If I change the default optimization level (-O2) by configuring with
--enable-fast=O1
as well, the hang doesn't occur. Another data point is that the hang does not occur with PGI 19.5 with either optimization levels.
I have been testing with the cpi.c code in the examples folder built with just
mpicc cpi.c
mpiexec -n 3 ./a.out
Here is a the backtrace from one of the processes that is hanging
(gdb) bt
#0 MPID_nem_mpich_blocking_recv ()
at /tmp/mpich-3.3.2/build/../src/mpid/ch3/channels/nemesis/include/mpid_nem_inline.h:1038
#1 MPIDI_CH3I_Progress () at ../src/mpid/ch3/channels/nemesis/src/ch3_progress.c:506
#2 0x00000000004fc88d in MPIDI_CH3U_VC_WaitForClose ()
at ../src/mpid/ch3/src/ch3u_handle_connection.c:383
#3 0x0000000000442364 in MPID_Finalize () at ../src/mpid/ch3/src/mpid_finalize.c:110
#4 0x0000000000408621 in PMPI_Finalize () at ../src/mpi/init/finalize.c:260
#5 0x00000000004023e5 in main () at cpi.c:59
Is there a potential fix to be made to MPICH to prevent processes hanging when MPICH is compiled with the default optimization level?
Thanks,
Kent