A job refers to a specific resource allocation by slum, the specifics are definied by the users and what runs in the job also. Running a job can be in one line if simple enough, for example requesting interactive session on a compute node with 8GB RAM, 1 core on 1 node for 30minutes can be done like so,
salloc --nodes=1 --ntasks-per-node=1 --mem=8G --time=00:30:00 -p short
In other use cases, it is better to define a slurm batch script, below is a script prototype.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | |
to submit the job to slurm use the command below, let's assume the sbatch script file is called, my_job.sbatch
sbtach my_job.sbatch
Obviously, the above script will not work if run. It is a simple template to highlight the different parts of a batch script.
The bioinformatics software are not directly installed on the machines but in a separate environment where they can be shared accross all machines. To use them users have to first load them, this is true for interactive or non-interactive jobs.
Use the command module for any software/tools operations.
module list
module avail
module avail <<keyword>>
#OR
module spider <<keyword>>
module load <<MODULENAME/VERSION>>
module unload [module_name/version]
module switch
module purge