Updated user documentation
This commit is contained in:
parent
4620baf3ff
commit
34a79b5569
@ -103,9 +103,8 @@ srun $MYEXEC # where $MYEXEC is a path to your binary file
|
|||||||
|
|
||||||
In this example, we want to run a Hybrid Job using MPI and OpenMP using hyperthreading. In this job, we want to run 4 MPI
|
In this example, we want to run a Hybrid Job using MPI and OpenMP using hyperthreading. In this job, we want to run 4 MPI
|
||||||
tasks by using 8 CPUs per task. Each task in our example requires 128GB of memory. Then we specify 16000MB per CPU
|
tasks by using 8 CPUs per task. Each task in our example requires 128GB of memory. Then we specify 16000MB per CPU
|
||||||
(8 x 16000MB = 128000MB). Notice that since hyperthreading is enabled, Slurm will use 4 cores per task (2 threads per core).
|
(8 x 16000MB = 128000MB). Notice that since hyperthreading is enabled, Slurm will use 4 cores per task (with hyperthreading
|
||||||
Also, always consider that **`'--mem-per-cpu' x '--cpus-per-task'`** can **never** exceed the maximum amount of memory per node
|
2 threads -a.k.a. Slurm CPUs- fit into a core).
|
||||||
(352000MB).
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
#!/bin/bash -l
|
#!/bin/bash -l
|
||||||
@ -126,13 +125,15 @@ module load $MODULE_NAME # where $MODULE_NAME is a software in PModules
|
|||||||
srun $MYEXEC # where $MYEXEC is a path to your binary file
|
srun $MYEXEC # where $MYEXEC is a path to your binary file
|
||||||
```
|
```
|
||||||
|
|
||||||
|
{{site.data.alerts.tip}} Also, always consider that **`'--mem-per-cpu' x '--cpus-per-task'`** can **never** exceed the maximum amount of memory per node (352000MB).
|
||||||
|
{{site.data.alerts.end}}
|
||||||
|
|
||||||
### Example 4: Non-hyperthreaded Hybrid MPI/OpenMP job
|
### Example 4: Non-hyperthreaded Hybrid MPI/OpenMP job
|
||||||
|
|
||||||
In this example, we want to run a Hybrid Job using MPI and OpenMP without hyperthreading. In this job, we want to run 4 MPI
|
In this example, we want to run a Hybrid Job using MPI and OpenMP without hyperthreading. In this job, we want to run 4 MPI
|
||||||
tasks by using 8 CPUs per task. Each task in our example requires 128GB of memory. Then we specify 16000MB per CPU
|
tasks by using 8 CPUs per task. Each task in our example requires 128GB of memory. Then we specify 16000MB per CPU
|
||||||
(8 x 16000MB = 128000MB). Notice that since hyperthreading is disabled, Slurm will use 8 cores per task (1 thread per core).
|
(8 x 16000MB = 128000MB). Notice that since hyperthreading is disabled, Slurm will use 8 cores per task (disabling hyperthreading
|
||||||
Also, always consider that **`'--mem-per-cpu' x '--cpus-per-task'`** can **never** exceed the maximum amount of memory per node
|
we force the use of only 1 thread -a.k.a. 1 CPU- per core).
|
||||||
(352000MB).
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
#!/bin/bash -l
|
#!/bin/bash -l
|
||||||
@ -153,6 +154,9 @@ module load $MODULE_NAME # where $MODULE_NAME is a software in PModules
|
|||||||
srun $MYEXEC # where $MYEXEC is a path to your binary file
|
srun $MYEXEC # where $MYEXEC is a path to your binary file
|
||||||
```
|
```
|
||||||
|
|
||||||
|
{{site.data.alerts.tip}} Also, always consider that **`'--mem-per-cpu' x '--cpus-per-task'`** can **never** exceed the maximum amount of memory per node (352000MB).
|
||||||
|
{{site.data.alerts.end}}
|
||||||
|
|
||||||
## Advanced examples
|
## Advanced examples
|
||||||
|
|
||||||
### Array Jobs: launching a large number of related jobs
|
### Array Jobs: launching a large number of related jobs
|
||||||
|
Loading…
x
Reference in New Issue
Block a user