【问题标题】:Is there an output log/directory for sbatch error messages?是否有 sbatch 错误消息的输出日志/目录?
【发布时间】:2020-01-14 00:14:23
【问题描述】:

我正在运行一个 sbatch 脚本,它已成功提交。

sbatch sbatch_script.sh

Submitted batch job 309376

但是当我运行squeue -u <my_username> 并且没有生成输出时它没有显示。

有没有办法检查出了什么问题?例如,我可以检查一些环境变量设置/输出日志吗?

【问题讨论】:

    标签: cluster-computing job-scheduling slurm scientific-computing


    【解决方案1】:

    sbatch 输出被写入节点上的slurm_{job_id}.out。相反,您可以手动将输出文件指定到本地目录(只需执行myfile.out)。然后,该文件将出现在本地目录中,并包含标准错误和输出流。

    我的批处理文件:

    #!/bin/bash
    #SBATCH --gres=gpu:1
    #SBATCH --mem=12G
    #SBATCH -p gpu
    #SBATCH -c 8
    #SBATCH -n 1
    #SBATCH -o myfile.out
    source ~/anaconda3/bin/activate acl2020
    python  main.py --various args 
    
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-08-18
      • 1970-01-01
      • 1970-01-01
      • 2019-01-20
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多