you might need to set a few extra environment variables:
- MPICH_DBG_LEVEL to VERBOSE
- MPICH_DBG_CLASS to ALL
For example:
mpiexec -n 2 -env MPICH_DBG_OUTPUT VERBOSE \
-env MPICH_DBG_CLASS ALL \
-env MPICH_DBG_FILENAME "dbg-%w-%d.log" ./examples/cpi
The wiki has some more information about the other things you can do with the MPICH debugging facility: