... | ... | @@ -16,7 +16,7 @@ where *script.sh* is the job script. |
|
|
## Job script examples
|
|
|
|
|
|
Slurm job scripts contains two parts:
|
|
|
1. Slurm directives: starting with **#SBATCH**, they specify Slurm options.
|
|
|
1. Slurm directives: starting with `#SBATCH`, they specify Slurm options.
|
|
|
1. Unix directives: commands for your job execution, such as loading modules, launching an executable program, etc.
|
|
|
|
|
|
Here are some self-explanatory job script examples for several softwares/applications on Pyrene:
|
... | ... | @@ -28,14 +28,12 @@ Here are some self-explanatory job script examples for several softwares/applica |
|
|
* Molpro job.
|
|
|
* R job.
|
|
|
|
|
|
## Usage of the /scratch space in jobs
|
|
|
The /scratch space is only accessible in batch jobs using the $SCRATCHDIR variable.
|
|
|
## Usage of the scratch space in jobs
|
|
|
The `/scratch` space is only accessible in batch jobs using the `$SCRATCHDIR` variable.
|
|
|
|
|
|
A temporary directory named $SCRATCHDIR is automatically created in /scratch when a batch job begins. Each job is granted a specific $SCRATCHDIR directory where it can read and write its execution temporary files.
|
|
|
by
|
|
|
il est créé automatiquement lorsqu'un travail batch démarre : il est donc unique à chaque travail;
|
|
|
il est détruit automatiquement à la fin de ce travail : il faut donc recopier explicitement les fichiers importants sur un autre espace disque permanent (le WORKDIR par exemple) avant la fin du travail.
|
|
|
A temporary directory named `$SCRATCHDIR` is automatically created in `/scratch` when a batch job begins. Each job is granted a specific $SCRATCHDIR directory where it can read and write its execution temporary files.
|
|
|
|
|
|
The `$SCRATCHDIR` is automatically destroyed at the end of the job: **do not forget to save the `$SCRATCHDIR` important files in your home directory before the job ends**.
|
|
|
|
|
|
## Partitions and limits
|
|
|
|
... | ... | |