MacMPI is a tool (inspired by and based on tmux-mpi) that can be used to launch MPI applications, opening a new terminal window with one tab per MPI rank, attaching each tab to the corresponding rank. MacMPI integrates with the iTerm2 terminal on macOS.
This allows for debugging MPI applications by launching lldb or gdb with MacMPI.
- Install iTerm by downloading it from the website.
- Enable Python API in iTerm from Preferences/General/Magic.
- Install dtach with
brew install dtach
- Install the dependencies with
pip install -r requirements.txt
- Run MacMPI with
python macmpi.py <np> <command>
, where<np>
is the number of ranks, and<command>
is the command to be run (analogous tompirun -np <np> <command>
)