Update Multi threaded jobs authored by Alain O' Miniussi's avatar Alain O' Miniussi
...@@ -13,12 +13,12 @@ This OpenMP example will automatically read the **OMP_NUM_THREADS** environment ...@@ -13,12 +13,12 @@ This OpenMP example will automatically read the **OMP_NUM_THREADS** environment
We will use the [multithread.slurm](https://gitlab.oca.eu/DSI/HPC/blob/master/SLURM/multithread/multithread.slurm) script to dispatch our job. Slurm option will be provided on the command line for flexibility, but would typically be specified in the script through the `#SBATCH <option>` directive. We will use the [multithread.slurm](https://gitlab.oca.eu/DSI/HPC/blob/master/SLURM/multithread/multithread.slurm) script to dispatch our job. Slurm option will be provided on the command line for flexibility, but would typically be specified in the script through the `#SBATCH <option>` directive.
Also, the script mention the `fdr` partition, which is specific to `licallo` and might have to be replaced with a local partition. Also, the script mention the `seq` partition, which is specific to `licallo` and might have to be replaced with a local partition.
### Examples ### Examples
* Running 1 task with only 1 core: * Running 1 task with only 1 core:
``` ```
$ sbatch --partition fdr --cpus-per-task=1 ./multithread.slurm $ sbatch --partition seq --cpus-per-task=1 ./multithread.slurm
Submitted batch job 15292873 Submitted batch job 15292873
$ more slurm-15292873.out $ more slurm-15292873.out
SLURM_CPUS_PER_TASK 1 SLURM_CPUS_PER_TASK 1
...@@ -28,7 +28,7 @@ $ ...@@ -28,7 +28,7 @@ $
``` ```
* Running one task with 10 cores * Running one task with 10 cores
``` ```
$sbatch --partition fdr --cpus-per-task=10 ./multithread.slurm $sbatch --partition seq --cpus-per-task=10 ./multithread.slurm
Submitted batch job 15292876 Submitted batch job 15292876
$more slurm-1529287 $more slurm-1529287
slurm-15292873.out slurm-15292876.out slurm-15292873.out slurm-15292876.out
...@@ -40,7 +40,7 @@ $ ...@@ -40,7 +40,7 @@ $
``` ```
* If no node is available with the requested number of cores: * If no node is available with the requested number of cores:
``` ```
$ sbatch --partition fdr --cpus-per-task=50 ./multithread.slurm $ sbatch --partition seq --cpus-per-task=50 ./multithread.slurm
sbatch: error: CPU count per node can not be satisfied sbatch: error: CPU count per node can not be satisfied
sbatch: error: Batch job submission failed: Requested node configuration is not available sbatch: error: Batch job submission failed: Requested node configuration is not available
$ $
... ...
......