【发布时间】: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 这样的许可调试器。这是我第一次遇到上述简单方法的问题。
【问题讨论】: