Use gdb to debug MPI in multiple screen windows
问题 If I have an MPI program that I want to debug with gdb while being able to see all of the separate processes' outputs, I can use: mpirun -n <NP> xterm -hold -e gdb -ex run --args ./program [arg1] [arg2] [...] which is well and good when I have a GUI to play with. But that is not always the case. Is there a similar set up I can use with screen such that each process gets its own window? This would be useful for debugging in a remote environment since it would allow me to flip between outputs