Sun MPI 4.0 User's Guide: With CRE

Running on the Same Node(s) as a Another Specified Job

Use the -j option to specify that the program you want to execute should run on the same node or nodes as a particular job ID (jid). For example, to run a.out on the same node(s) as a job whose job ID is 85, issue the command

% mprun -j 85 a.out

If -j follows the -np or -R option on the command line, it overrides those options. If -np, together with -W or -S, follows -j on the command line, -j determines which nodes to run on, while the other options determine the number of processes to map onto these nodes.

You can use the mpps command to find out the job ID of any job.