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
|
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:
|