GDB调试器在MPI中 [英] GDB debugger in MPI
问题描述
我只是不知道使用GDB运行多个进程的命令。以下行不通。
r -np 64 ./a.out -gdb
对不起,这看起来很简单。但是我没有找到有关使用gdb从MPI进行MPI调试的有用文档。 正如 OpenMPI文档,您可以通过 xterm
通过 mpirun $ c $
mpirun -np $ mpiexec
然后启动程序: 64 xterm -e gdb ./a.out
这将打开64个窗口,每个窗口包含 gdb
会话。因为在每个终端中输入 run
会非常麻烦,所以你可以尝试
mpirun -np 64 xterm -e gdb ./a.out -ex run
然而,我强烈建议减少过程的数量,比如四个。
I just do not know the command to run multiple processes using GDB. The following does not work.
r -np 64 ./a.out -gdb
Sorry this may seem quite simple. But I did not find much useful document about debugging in MPI using gdb from the Internet.
As stated in the OpenMPI documentation, you can start xterm
through mpirun
/mpiexec
which then starts your program:
mpirun -np 64 xterm -e gdb ./a.out
This will open 64 windows, each containing a gdb
session. As it will be quite cumbersome to enter run
in each terminal, you could try
mpirun -np 64 xterm -e gdb ./a.out -ex run
However, I strongly recommend to reduce the number of processes used to, say, four.
这篇关于GDB调试器在MPI中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!