Depure um aplicativo openMPI usando lldb

Escrever código paralelo é uma boa fonte para todos os tipos de bugs.

Aqui está uma maneira simples de depurar aqueles que usam lldb. Ele cria uma janela de terminal
para cada processo paralelo no qual você tem um lldb em execução. Sim, criar muitos deles realmente dá a sensação de estar na matriz.

# Start lldb with a lldb configuration attached.
/home/wehner/chroot/bin/mpirun -np 3 --prefix ~/chroot xterm -e lldb-3.4 -s lldb-debug.txt

O lldb-debug.txt real contém o ponto de interrupção e outras instruções.

# The lldb connection contains:
file
/home/wehner/path-to/executable

# Ensure that lldb knows where the source files are
settings
set target.source-map /home/wehner/path-to /home/wehner/diplomarbeit/home/wehner/path-to/executable

file
/home/wehner/path-to/executable

b foo
.cpp:463
process launch
/home/wehner/path-to/executable additional-par

Finalmente, uma pequena lista de links úteis para lldb