Newer
Older
# Lundgren examples
This repository contains a set of examples on how to queuing jobs on Lundgren with Slurm.
Each example is located in a separate folder with different topics and detailed description of relevant parts.
The best way to use the examples is to try them. Download the repository by cloning it to your harddrive. If you are on Lundgren you can clone it to a suitable folder under your home folder. If you are on your personal computer you can clone it into a suitable folder under the personal LiU-clound folder, _P:_ (_\\ad.liu.se\home\<LiU-ID>_)
All the examples will use the method of creating a job and submit it to the Slurm scheduler as a background process. Each example will use a bash file, _.sh_ as a base for instructing Slurm on the job steps to perform. Each job step uses the command ___srun___ to perform one or several tasks.
## Examples
This section describes the different examples briefly so you can find an example that fits your needs.
__Note:__ _Since our Slurm cluster only has one node there can be a queue for running the examples depending on the workload of Lundgren._
#### Example 1 - Single job step
This example creates a job with a single job step. This type of job is easy and fast to set up. There are two different batch files, one with a sequetial program and one with a parallel program.
Learn more about the [example](https://gitlab.liu.se/rasri17/lundgren-examples/-/tree/main/1_single_job_step).
#### Example 2 - Multiple job steps
This example creates a job with mulitple steps. This type of job is good to use if there is a need of pre- or post-processing.
Learn more about the [example](https://gitlab.liu.se/rasri17/lundgren-examples/-/tree/main/2_multiple_job_steps).
A job array is a method to queue multiple jobs with similar resource needs. Job arrays are suitable when the same type of computation is needed to be run multiple times with different input data. A job array can use mulitple job steps and they are performed in every job in the array.
Learn more about the [example](https://gitlab.liu.se/rasri17/lundgren-examples/-/tree/main/3_job_array).