Finished running jobs: added bash to comments

This commit is contained in:
caubet_m 2019-06-19 16:43:24 +02:00
parent 8af191ca9c
commit ee4c5b016e

View File

@ -26,7 +26,7 @@ we fill up first mixed nodes and we ensure that free full resources are availabl
Exclusivity of a node can be setup by specific the ``--exclusive`` option as follows:
```
```bash
#SBATCH --exclusive
```
@ -40,7 +40,7 @@ you submit the batch script:
If you want to the default names it can be done with the options ``--output`` and ``--error``. In example:
```
```bash
#SBATCH --output=logs/myJob.%N.%j.out # Generate an output file per hostname and jobid
#SBATCH --error=logs/myJob.%N.%j.err # Generate an errori file per hostname and jobid
```
@ -52,7 +52,7 @@ Use **man sbatch** (``man sbatch | grep -A36 '^filename pattern'``) for getting
Merlin6 contains 3 partitions for general purpose. These are ``general``, ``daily`` and ``hourly``. If no partition is defined,
``general`` will be the default. Partition can be defined with the ``--partition`` option as follows:
```
```bash
#SBATCH --partition=<general|daily|hourly> # name of slurm partition to submit. 'general' is the 'default'.
```
@ -67,7 +67,7 @@ to run on CPU-based nodes. All users registered in Merlin6 are automatically inc
The following options are mandatory settings that **must be included** in your batch scripts:
```
```bash
#SBATCH --constraint=mc # Always set it to 'mc' for CPU jobs.
```
@ -78,7 +78,7 @@ There are some settings that are not mandatory but would be needed or useful to
* ``--time``: mostly used when you need to specify longer runs in the ``general`` partition, also useful for specifying
shorter times. This may affect scheduling priorities.
```
```bash
#SBATCH --time=<D-HH:MM:SS> # Time job needs to run
```
@ -86,7 +86,7 @@ shorter times. This may affect scheduling priorities.
The following template should be used by any user submitting jobs to CPU nodes:
```
```bash
#!/bin/sh
#SBATCH --partition=<general|daily|hourly> # Specify 'general' or 'daily' or 'hourly'
#SBATCH --time=<D-HH:MM:SS> # Recommended, and strictly recommended when using 'general' partition.
@ -116,7 +116,7 @@ are automatically registered to the ``merlin6-gpu`` account. Other users should
The following options are mandatory settings that **must be included** in your batch scripts:
```
```bash
#SBATCH --constraint=gpu # Always set it to 'gpu' for GPU jobs.
#SBATCH --gres=gpu # Always set at least this option when using GPUs
```
@ -130,7 +130,7 @@ This would be according to the following rules:
In example:
```
```bash
#SBATCH --gres=gpu:GTX1080:8 # Use 8 x GTX1080 GPUs
```
@ -138,7 +138,7 @@ In example:
The following template should be used by any user submitting jobs to GPU nodes:
```
```bash
#!/bin/sh
#SBATCH --partition=<general|daily|hourly> # Specify 'general' or 'daily' or 'hourly'
#SBATCH --time=<D-HH:MM:SS> # Recommended, and strictly recommended when using 'general' partition.