massive-website-banner

Running Multi-threading Jobs

Multi-threading is a type of execution model that allows multiple threads to exist within the context of a process. Simply speaking, a Slurm multi-threading job is a singler process, multi-core job. Many application can drop to this category: OpenMP program, Matlab program with (Parallel Computing Toolbox) enabled etc.

Sample Slurm Multi-threading job skeleton:

#!/bin/bash
#SBATCH --job-name=MyJob
#SBATCH --account=monash001
... ...
#SBATCH --ntasks=1
#SBATCH --cpus-per-task=8
... ...
./<program>

This script tells Slurm it is a multi-threading job. It only has only 1 process, where for such process it needs 8 cpu cores to handle.

On MASSIVE, the sample slurm submission scripts have been prepared and can be found here:

/usr/local/training/samples/slurm/

 

 

Copyright © 2016 MASSIVE. All Rights Reserved.