You might also need to specify a **reservation** by adding the flag ``--reservation=<name-of-reservation>``.
For the 2022 PDC Summer School the reservation name is ``summer-<date>``, where ``date`` is to be provided in the format ``YYYY-MM-DD``, e.g. ``summer-2022-08-16``.
For the 2022 PDC Summer School the reservation name is ``summer-<date>``, where ``date`` is to be provided in the format ``YYYY-MM-DD``, e.g. ``summer-2022-08-16``.
An environment variable specifying the number of threads should also be set:
An environment variable specifying the number of threads should also be set:
```
```
export OMP_NUM_THREADS=16
export OMP_NUM_THREADS=$SLURM_CPUS_PER_TASK
```
```
Then the ``srun`` command is used to launch an OpenMP application:
Then the ``srun`` command is used to launch an OpenMP application: