
respectively. These subsections are not full solutions for integrating MPICH with the HP XC System Software.
Figure 11-1 MPICH Wrapper Script
#!/bin/csh
srun csh
ssh $hostname /opt/mpich/bin/mpirun options...
The wrapper script is based on the following assumptions:
•Each node in the HP XC system contains two CPUs.
•The current working directory is available on all nodes on which an MPICH job might run.
•You provide the mpirun options that are appropriate to your requirements.
•The executable file is named a.out.
•The wrapper script has the appropriate permissions.
You need to modify the wrapper script accordingly if these assumptions are not true.
11.7.1 Using MPICH with SLURM Allocation
The
% srun | 1 | ||
% | ./wrapper | 2 | |
% | exit |
| 3 |
NOTE: This method assumes that the communication among nodes is performed using ssh and that passwords are not required.
1The srun
IMPORTANT: Be sure that the number of nodes and processors in the srun command correspond to the numbers specified in the wrapper script.
2This command line executes the wrapper script to start the job on the allocated nodes.
3After the MPICH job specified by the wrapper completes, the exit command terminates the shell and releases the allocated nodes.
11.7.2Using MPICH with LSF Allocation
The
%bsub
The bsub command launches the wrapper script.
IMPORTANT: Be sure that the number of nodes and processors in the bsub command corresponds to the number specified by the appropriate options in the wrapper script.
NOTE: This method assumes that the communication among nodes is performed using ssh and that passwords are not required.
114 Advanced Topics