Let's explore how to use the Slurm Batch System to the ATOS HPCF or ECS.
Access the default login node of the ATOS HPCF or ECS.
Create a directory for this tutorial so all the exercises and outputs are contained inside:
mkdir ~/batch_tutorial cd ~/batch_tutorial |
Create and submit a job called simplest.sh
with just default settings that runs the command hostname
. Can you find the output and inspect it? Where did your job run?
Using your favourite editor, create a file called
You can submit it with:
The job should be run shortly. When finished, a new file called
You can then see that the script has run on a different node than the one you are on. If you repeat the operation, you may get your job to run on a different node every time, whichever happens to be free at the time. |
Configure your simplest.sh
job to direct the output to simplest-<jobid>.out
, the error to simplest-<jobid>.err
both in the same directory, and the job name to just "simplest". Note you will need to use a special placeholder for the -<jobid>
.
Using your favourite editor, open the
You can submit it again with:
After a few moments, you should see the new files appear in your directory (job id will be different than the one displayed here):
You can check that the job name was also changed in the end of job report:
|
Create a new job script sleepy.sh
with the following contents and submit it. Then check :
#!/bin/bash sleep 120 |
Using your favourite editor, open the
You can submit it again with:
After a few moments, you should see the new files appear in your directory (job id will be different than the one displayed here):
You can check that the job name was also changed in the end of job report:
|