How to find from where a job is submitted in SLURM?

后端 未结 3 1713
余生分开走
余生分开走 2021-02-01 09:40

I submitted several jobs via SLURM to our school\'s HPC cluster. Because the shell scripts all have the same name, so the job names appear exactly the same. It looks like

<
相关标签:
3条回答
  • 2021-02-01 10:07

    The latest version of Slurm now offers that information through squeue with :

    squeue --format "%Z"
    

    that displays, according to the man page,

    %Z    The job’s working directory.
    
    0 讨论(0)
  • 2021-02-01 10:07

    In order to list the work directory of past jobs that are no longer accessible via squeue or scontrol, you can use sacct:

    sacct -S 2020-08-10 -u myUserName --format "jobid,jobname%20,workdir%70"
    

    Lists job id, job name and work directory of all jobs of user myUserName since August 10th, 2020.

    0 讨论(0)
  • 2021-02-01 10:09

    You can use the scontrol command to see the job details. $ scontrol show job <jobid>

    For example, for a running job on our SLURM cluster:

    $ scontrol show job 1665191
        JobId=1665191 Name=tasktest
        ...
        Shared=OK Contiguous=0 Licenses=(null) Network=(null)
        Command=/lustre/work/.../slurm_test/task.submit
        WorkDir=/lustre/work/.../slurm_test
    

    You are looking for the last line, WorkDir.

    0 讨论(0)
提交回复
热议问题