Commit 966b83e5 authored by Dietz, Colin's avatar Dietz, Colin
Browse files

Update challenges/slurm/README.md

parent c680deef
......@@ -5,11 +5,11 @@
Slurm is a job scheduler and resource management program with the combined functionality of Moab and Torque. Queues, accounts, reservations, limits, preemption, job priority, and many other facets of scheduling systems in Moab and Torque are nearly identical in Slurm.
There are a few key differences to be aware of between Moab/Torque and Slurm:
- Terminology
- This is largely the same with a few key differences
- Moab Queues are referred to as Partitions in Slurm
- PBS parameters in Moab job scripts are analogus to SBATCH parameters in Slurm
- Moab Queues are referred to as Partitions in Slurm
- PBS parameters in Moab job scripts are analogus to SBATCH parameters in Slurm
</br>
- Scheduler Policy
- Resources that are not requested are not allocated
......@@ -18,6 +18,7 @@ There are a few key differences to be aware of between Moab/Torque and Slurm:
- No default values are set for these resources
- "Burst" job submission is simplified in Slurm
- One central burst queues is used, and user account and qos no longer need to be specified in your job script
</br>
- Commands
- Functions from multiple Moab/Torque commands are typically combined in Slurm commands
......@@ -26,6 +27,7 @@ There are a few key differences to be aware of between Moab/Torque and Slurm:
- `qstat/showq -> squeue`
- `checknode/showbf -> sinfo`
- `checkjob/mschedctl -> scontrol`
</br>
- Command Examples
- Here are a few examples of equivalent commands betwene the two schedulers
......@@ -34,6 +36,7 @@ There are a few key differences to be aware of between Moab/Torque and Slurm:
- `checkjob <job_id> -> scontrol show job <job_id>`
- `showbf -f gpu -> sinfo -p gpu`
- `qsub -I -A cades-birthright -w group_list=birthright -q gpu -> srun -A birthright -p gpu --pty /bin/bash`
</br>
## Slurm Challenge 1
......@@ -160,7 +163,7 @@ mpirun pw.x -in "../data/${input_files[$PBS_ARRAYID]}"
```
/lustre/or-hydra/cades-birthright/<user_id>/cades-spring-training-master/slurm/example3/
```
** This directory contains ex3_job_script.pbs, an example PBS job script for running Quantum Espresso with a job array
* This directory contains ex3_job_script.pbs, an example PBS job script for running Quantum Espresso with a job array
3. Make a copy of the example script and name it ex3_job_script.sbatch
4. Using the previous slide, as well as the solution to Slurm Challenge 2, update the ex3_job_script.sbatch job script from PBS to SBATCH
5. After converting the job script, try to submit it using this command:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment