Mudanças

Ir para navegação Ir para pesquisar

Slurm - Veredas

2 176 bytes adicionados, 15h56min de 14 de junho de 2019
sem sumário de edição
Quaisquer variáveis de ambiente que você define com o comando '''sbatch''' serão passadas para o seu ''job''. Por esse motivo, se o seu programa precisar que determinadas variáveis de ambiente , é melhor colocá-las no ''script'' do seu ''job''. Isso também facilita a reprodução dos resultados do ''job'' posteriormente, caso você necessite.
A tabela abaixo, contém informações sobre algumas das variáveis de ambiente de entrada e saída mais comuns quando se usa o comando '''sbatch''' no ''script shell''. Para informações adicionais, veja a página man do '''sbatch''' ou acesse a documentação online no site oficial do Slurm [https://slurm.schedmd.com/sbatch.html https://slurm.schedmd.com/sbatch.html].
 
{|class="wikitable" width=40% border=1 cellpadding=35px
!|Variáveis de ambiente
!|Definição
|-
|'''SLURM_JOB_ID (and SLURM_JOBID for backwards compatibility)'''
|The ID of the job allocation
|-
|'''SLURM_JOB_NAME'''
|Name of the job
|-
|'''SLURM_JOB_NODELIST (and SLURM_NODELIST for backwards compatibility)'''
|List of nodes allocated to the job
|-
|'''SLURM_JOB_NUM_NODES (and SLURM_NNODES for backwards compatibility)'''
|Total number of different nodes in the job's resource allocation
|-
|'''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_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_MEM_PER_NODE'''
|Same as '''--mem'''
|-
|'''SLURM_MEM_PER_CPU'''
|Same as '''--mem-per-cpu'''
|-
|'''SLURM_NTASKS (and SLURM_NPROCS for backwards compatibility)'''
|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
|}
 
 
<br/>
== Comparação entre o SLURM e o PBS Pro ==
Segue alguns comandos essenciais do SLURM e seus equivalentes no PBS Pro.

Menu de navegação