| LoadLeveler Exercise |
Make sure that you are logged into your assigned SP node with your assigned userid for this exercise. Ask the instructor if you have any questions.
The $WORKSHOP variable defines the root location for the workshop files, and may vary from workshop to workshop. Find out if this has already been setup for your workshop:
echo $WORKSHOP
If this environment variable is not set, check with the instructor for the correct location. Then, depending upon your shell, set $WORKSHOP:
| csh/tcsh | setenv WORKSHOP instructor/specified/path |
|---|---|
| bsh/ksh | export WORKSHOP=instructor/specified/path |
Make sure that you have a .rhosts file in your home directory. It should contain the name of every SP node which you may be using. If you have completed the POE exercises, this file may already be present. If not, use your favorite Unix editor to create it, or copy the example .rhosts file provided for the MHPCC SP training system:
cp $WORKSHOP/samples/rhosts ~/.rhosts
Make sure that the LoadLeveler commands are in your path. The following command should resolve the location of the llstatus command:
which llstatus
If the output from this command tells you it can't find llstatus,
then follow the instructions in the table below. Upon completing them,
the
| csh/tcsh | Add the following line to your ~/.cshrc file. Be sure
that your new path specification appears after all other path
specifications. Also make sure that your .login file does not reset the
path in conflict with the one shown below.
After you have finished editing the file, issue the following command so that the changes have immediate effect. source ~/.cshrc
|
|---|---|
| bsh/ksh | Add the following line to your ~/.profile file. Be
sure that your new path specification appears after all other path
specifications.
After you have finished editing the file, issue the following command so that the changes have immediate effect. . ~/.profile
|
mkdir ~/loadl
cd ~/loadl
The LoadLeveler exercise files include job command files, C and Fortran MPI source files and makefiles. Choose either the C or Fortran versions.
| C versions: | cp $WORKSHOP/loadleveler/samples/*.cmd ~/loadl cp $WORKSHOP/loadleveler/samples/*array*c ~/loadl cp $WORKSHOP/loadleveler/samples/*mpi_mm*c ~/loadl |
|---|---|
| Fortran versions: | cp $WORKSHOP/loadleveler/samples/*.cmd ~/loadl cp $WORKSHOP/loadleveler/samples/*array*f ~/loadl cp $WORKSHOP/loadleveler/samples/*mpi_mm*f ~/loadl |
Make sure they are writable by you:
chmod +w *
| C: | make -f make.mpi_array.c make -f make.mpi_mm.c |
|---|---|
| Fortran: | make -f make.mpi_array.f make -f make.mpi_mm.f |
llsubmit mpi_array.cmd
llsubmit mpi_mm.cmd
mpi_array.X.X.out - stdout and stderr from the mpi_array job mpi_array.hosts - list of hosts allocated for the mpi_array job mpi_mm.X.X.out - stdout and stderr from the mpi_mm job mpi_mm.hosts - list of hosts allocated for the mpi_mm job
| Note for MHPCC production system users: the job ordering of LoadLeveler, including xloadl, is incorrect due to the MHPCC's batch scheduler. Therefore, steps 2 and 3 below should only be done during workshops and ignored for MHPCC production users. |
This concludes the LoadLeveler exercises.