Start DDT from a job script
The usual way of debugging a program with Linaro DDT in a queue/batch environment is with Reverse Connect where it connects back from inside the queue to the user interface (see Reverse Connect). You can also debug a program in a queue/batch environment by configuring Linaro DDT to submit the program to the queue for you (see Start a job in a queue). This procedure describes another way - how to start Linaro DDT from a job script that is submitted to the queue/batch environment.
Procedure
- Configure Linaro DDT with the correct MPI implementation. 
- Disable queue submission in the Linaro DDT options. 
- Create a job script that starts Linaro DDT using a command such as: - ddt --start MPIEXEC -n NPROCS PROGRAM [ARGUMENTS] - Or the following: - ddt --start --no-queue --once --np=NPROCS -- PROGRAM [ARGUMENTS] - In these examples - MPIEXECis the MPI launch command,- NPROCSis the number of processes to start,- PROGRAMis the program to run, and- ARGUMENTSare the arguments to the program. The- --onceargument tells DDT to exit when the session ends.
- Submit the job script to the queue.