In each of the other terminal windows, set your default directory to be the same as the location of the application executable. Use the
ps command in one of the windows to find out which processes are running your application:
linuxprompt> ps –ef | grep 'whoami' | grep my_app
There will be several processes. The oldest is the one you started in step 4 – it has run the MPI launcher and is now waiting for the others to terminate. Do not debug it.
The others will look like this:
<your-user-name> 25653 25650 98 15:06 ? 00:00:49 my_app
<your-user-name> 25654 25651 97 15:06 ? 00:00:48 my_app
<your-user-name> 25655 25649 98 15:06 ? 00:00:49 my_app
The first number is the PID of the process (for example,
25653 in the first line). In the steps below, the PIDs of these N processes are referred to as
P1,
P2, and so on. When you type the commands, replace the text
<P1> with the actual value of the PID for process 1, and so on.