【问题标题】:xterm's are being closed while debugging an MPI application调试 MPI 应用程序时正在关闭 xterm
【发布时间】:2017-08-17 20:58:37
【问题描述】:

我在使用 lldb 调试 MPI 应用程序时遇到问题。本质上,我通过

将它附加到每个进程
mpirun_lldb() {
mpirun --mca orte_base_help_aggregate 0 --mca mpi_abort_print_stack 1 -np $1 xterm -hold -e lldb -f $2 -- "${@:3}"
}

但在某些时候MPI_Abort 发生并且所有xterm 窗口都立即关闭,我什至无法读取堆栈,更不用说调试和检查变量了:

MPI_ABORT was invoked on rank 2 in communicator MPI_COMM_WORLD
with errorcode 255.

NOTE: invoking MPI_ABORT causes Open MPI to kill all MPI processes.
You may or may not see output from other processes, depending on
exactly when Open MPI kills them.

我尝试将-hold 用于xterm,但这无济于事。

附言我无权访问像 TotalView 这样的许可调试器。这是我第一次遇到上述简单方法的问题。

【问题讨论】:

    标签: debugging mpi lldb xterm


    【解决方案1】:

    抱歉打扰了,添加断点b MPI_Abort 解决了这个问题。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-01-13
      • 2015-01-23
      • 2017-04-09
      • 2014-11-29
      • 1970-01-01
      • 1970-01-01
      • 2012-02-04
      • 1970-01-01
      相关资源
      最近更新 更多