Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
slurm [2020/05/19 03:09] mickey |
slurm [2020/09/17 13:19] (current) admin [Trabajando con SLURM] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== SLURM ====== | + | ====== SLURM 19.04 ====== |
Conceptos básicos | Conceptos básicos | ||
Line 21: | Line 21: | ||
**Simple usage for soroban** | **Simple usage for soroban** | ||
- | 0. Note. | + | 0. Note. |
- | '-p intel' (equivalent long option: '--partition=intel') is required for soroban. | + | '-p intel' (equivalent long option: '–partition=intel') is required for soroban. |
+ | |||
+ | 1. Save below as text file (e.g. my_first_slurm.sh). | ||
- | 1. Save below as text file (e.g. my_first_slurm.sh). | ||
<code> | <code> | ||
#!/bin/bash | #!/bin/bash | ||
Line 37: | Line 38: | ||
</code> | </code> | ||
- | 2. Submit it as SLURM job. | + | 2. Submit it as SLURM job. |
- | sbatch <filename> (e.g. sbatch my_first_slurm.sh) | + | sbatch (e.g. sbatch my_first_slurm.sh) |
- | 3. Check progress. | + | 3. Check progress. |
squeue | squeue | ||
Line 49: | Line 50: | ||
#!/bin/bash | #!/bin/bash | ||
#SBATCH --job-name=example # Nombre para el trabajo a ejecutar en el cluster | #SBATCH --job-name=example # Nombre para el trabajo a ejecutar en el cluster | ||
- | #SBATCH --partition=troquil | + | #SBATCH --partition=intel |
- | #SBATCH -n 32 # Debe de ser un número múltiplo de 16 | + | #SBATCH -n 32 # Debe de ser un número múltiplo de 16, número de procesos |
- | #SBATCH --ntasks-per-node=16 # máximo por blade | + | #SBATCH --ntasks-per-node=16 # máximo por nodo |
#SBATCH --output=example_%j.out | #SBATCH --output=example_%j.out | ||
#SBATCH --error=example_%j.err | #SBATCH --error=example_%j.err | ||
- | #SBATCH --mail-user=username@ufrontera.cl | + | #SBATCH --mail-user=username@ufrontera.cl #correo para notificacion |
#SBATCH --mail-type=ALL | #SBATCH --mail-type=ALL | ||