Main Keywords for Job Scripts

The method of resource allocation needs to be specified for a desired job by using the appropriate keywords in the job script. The main keywords are presented as follows; users can create a job script file using these keywords.

  • job-name ( -J, --job-name ) Specifies the job name. If the job name is not specified, the name of the script file is adopted as the job name.

  • time ( -t, --time ) Indicates the expected job duration; it is recommended to set this slightly longer than the actual expected job duration. If the wall time limit for the partition is exceeded, the job is not submitted. If the job is not completed within the specified time, the SLURM scheduler forcibly terminates the job.

  • partition ( -p, --partition ) Specifies the SLURM partition for the job execution. The partition name can be checked with the sinfo command.

  • nodes ( -N, --nodes ) Specifies the number of nodes to allocate for the job.

  • ntasks ( -n, --ntasks ) Specifies the number of processes to allocate for the job.

  • tasks-per-node ( --tasks-per-node ) Specifies the number of processes to allocate per node.

  • input ( -i, --input ) Specifies the standard input.

  • cpus-per-task ( -c, --cpus-per-task ) Specifies the number of CPUs required for each job task.

  • output ( -o, --output ) Specifies the standard output.

    • %x: The name specified for "job name" is adopted as the file name.

    • %j: The "job ID" assigned when submitting a job is used as the file name.

    • %a: The "job array ID" (index) number is adopted as the file name.

    • %u: The "user ID" is used as the file name.

  • error ( -e, --error ) Specifies the standard error.

    • %x: The name specified for the "job name" is used as the file name.

    • %j: The "job ID" assigned when submitting a job is used as the file name.

    • %a: The "job array ID" (index) number is used as the file name.

    • %u: The "user ID" is used as the file name.

  • dependency ( -d, --dependency ) Sets the job dependency. The job starts after the specified job is completed.

※ Detailed manual: Refer to http://slurm.schedmd.com/

2023년 3월 27일에 마지막으로 업데이트되었습니다.

Last updated