1

次の構成で slurm ジョブを実行するとします。

   #!/bin/bash

    #SBATCH --nodes=1                                # set the number of nodes
    #SBATCH --ntasks=1                               # Run a single task    
    #SBATCH --cpus-per-task=4                       # Number of CPU cores per task
    #SBATCH --time=26:59:00                          # set max wallclock time 
    #SBATCH --mem=16000M                             # set memory limit per node

    #SBATCH --job-name=myjobname                 # set name of job
    #SBATCH --mail-type=ALL                          # mail alert at start, end and abortion of execution
    #SBATCH --mail-user=sb@sw.com              # send mail to this address
    #SBATCH --output=/path/to/output/%x-%j.out  # set output path

    echo ' mem: ' $SLURM_MEM 
    echo '\n nodes: ' $SLURM_NODES
    echo '\n ntasks: ' $SLURM_NTASKS
    echo '\n cpus: ' $SLURM_CPUS_PER_TASK
    echo '\n time: ' $SLURM_TIME

「時間、メモリ、タスク数」などのこのジョブの構成を保存したいので、ジョブが終了した後、ジョブがどの構成で実行されたかがわかります。

したがって、これらの変数を出力ファイルに出力することにしましたが、出力には時間とメモリはありません。

\n nodes:
\n ntasks:  1
\n cpus:  1
\n time:

誰かがより良い方法を知っていますか? または時間と記憶を参照する方法は?

4

1 に答える 1