By default the Intel® Debugger requires the ability to open either a GUI or at least a dedictaed separate xterm window. This article describes how to launch a command line verion of MPI enabled IDB in a command line only terminal window.
This article applies to the Intel® Debugger for Linux* v11.0 and higher
The proposed command ine and testing of this approach was based on Intel® MPI Library 3.x, but newer versions should work as well.
The screen command needs to be available
Configuration Set Up :
The usage model this article applies to is as follows:
- network based Linux MPI cluster with application possibly running distributed over several nodes
- only available access to the cluster is via remote terminal login (puTTY, ssh, ...)
- no X window output redirection to the login machine is possible
- Please ensure to IDB_PARALLEL_SHELL set to enable multi-node debugging
- Edit mpiexec.py launch script in the bin directory of your Intel® MPI Library installation
- Launch debugger with "screen mpiexec -idb -n <node number> <debuggee executable>"
Python Script Changes :
1. In the line that defines dbg_cmd replace "xterm" with "screen" and remove "-e" in mpiexec.py. In addition remove the "&" at the end of the line.
E.g. replace the line
dbg_cmd = 'xterm -e ' + tv_exe + ' -pid ' + `os.getpid()` + ' -mpi2 -parallel /usr/bin/python &'
dbg_cmd = 'screen' + tv_exe + ' -pid ' + `os.getpid()` + ' -mpi2 -parallel /usr/bin/python'
2. Replace the line
with the following lines:
cpid = os.fork()
if (cpid == 0):