Inicio

Tabla de Contenidos

  1. SLURM Environment Variables

SLURM Environment Variables

Slurm setea varias variables de entorno al momento de ejecutar un bash script. Esta variables se establecen de acuerdo a la configuración general del gestor de colas.

Independiente de lo anterior, estás pueden ser seteadas o utilizadas para mejorar o conocer la forma en como podremos ejecutar nuestro script en nuestros clusters de computo.

A continuación el listado con una pequeña descripción:

SLURM_ARRAY_TASK_COUNT

Total number of tasks in a job array

SLURM_ARRAY_TASK_ID

Job array ID (index) number

SLURM_ARRAY_TASK_MAX

Job array's maximum ID (index) number

SLURM_ARRAY_TASK_MIN

Job array's minimum ID (index) number

SLURM_ARRAY_TASK_STEP

Job array's index step size

SLURM_ARRAY_JOB_ID

Job array's master job ID number

SLURM_CLUSTER_NAME

Name of the cluster on which the job is executing

SLURM_CPUS_ON_NODE

Number of CPUS on the allocated node

SLURM_CPUS_PER_TASK

Number of cpus requested per task. Only set if the --cpus-per-task option is specified.

SLURM_JOB_ACCOUNT

Account name associated of the job allocation

SLURM_JOBID
SLURM_JOB_ID

The ID of the job allocation

SLURM_JOB_CPUS_PER_NODE

Count of processors available to the job on this node.

SLURM_JOB_DEPENDENCY

Set to value of the --dependency option

SLURM_JOB_NAME

Name of the job

SLURM_NODELIST
SLURM_JOB_NODELIST

List of nodes allocated to the job

SLURM_NNODES
SLURM_JOB_NUM_NODES

Total number of different nodes in the job's resource allocation

SLURM_MEM_PER_NODE

Same as --mem

SLURM_MEM_PER_CPU

Same as --mem-per-cpu

SLURM_NTASKS SLURM_NPROCS

Same as -n, --ntasks

SLURM_NTASKS_PER_NODE

Number of tasks requested per node. Only set if the --ntasks-per-node option is specified.

SLURM_NTASKS_PER_SOCKET

Number of tasks requested per socket. Only set if the --ntasks-per-socket option is specified.

SLURM_SUBMIT_DIR

The directory from which sbatch was invoked

SLURM_SUBMIT_HOST

The hostname of the computer from which sbatch was invoked

SLURM_TASK_PID

The process ID of the task being started

SLURMD_NODENAME

Name of the node running the job script

variables-entorno-slurm (última edición 2019-06-28 14:55:40 efectuada por FabioDuran)