User Tools

Site Tools


getting_started

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
getting_started [2024/03/15 21:47] – created admingetting_started [2024/03/15 21:52] (current) admin
Line 6: Line 6:
 To view the available partitions, the sinfo command is available: To view the available partitions, the sinfo command is available:
  
-<code>+<code bash>
 $ sinfo  $ sinfo 
 PARTITION AVAIL  TIMELIMIT  NODES  STATE NODELIST PARTITION AVAIL  TIMELIMIT  NODES  STATE NODELIST
Line 16: Line 16:
 We can view the list of currently submitted jobs using the squeue command:  We can view the list of currently submitted jobs using the squeue command: 
  
-<code>+<code bash>
  squeue   squeue 
              JOBID PARTITION     NAME     USER ST       TIME  NODES NODELIST(REASON)              JOBID PARTITION     NAME     USER ST       TIME  NODES NODELIST(REASON)
Line 26: Line 26:
 ===== Submitting jobs ===== ===== Submitting jobs =====
 The sbatch command is available for job submission: The sbatch command is available for job submission:
-<code>+<code bash>
 $ sbatch job.mpi $ sbatch job.mpi
 </code> </code>
 where the job.mpi would look similar to this, where the job.mpi would look similar to this,
-<code>+<code bash job.mpi>
 #!/bin/bash #!/bin/bash
  
Line 56: Line 56:
 ===== Listing Your Accounting Projects ===== ===== Listing Your Accounting Projects =====
 Every user is required to be in a project before they can run jobs, to see your project, please run this command:  Every user is required to be in a project before they can run jobs, to see your project, please run this command: 
-<code>+<code bash>
 $  sacctmgr show user $USER format=User,DefaultAccount  $  sacctmgr show user $USER format=User,DefaultAccount 
       User       Def Acct        User       Def Acct 
Line 67: Line 67:
 ===== Interactive Jobs With Slurm ===== ===== Interactive Jobs With Slurm =====
 Its possible that batch jobs are not fit for a particular task, and for that reason, Slurm also provides a means to get an interactive terminal session on the compute node. This can be used for example to do code compilation.  This is the command to get an interactive job session:  Its possible that batch jobs are not fit for a particular task, and for that reason, Slurm also provides a means to get an interactive terminal session on the compute node. This can be used for example to do code compilation.  This is the command to get an interactive job session: 
-<code>+<code bash>
 $ srun -A physics  --nodes=1 --ntasks-per-node=16  --time=02:00:00 --partition=normal   --pty bash -i  $ srun -A physics  --nodes=1 --ntasks-per-node=16  --time=02:00:00 --partition=normal   --pty bash -i 
 </code> </code>
getting_started.1710528472.txt.gz · Last modified: 2024/03/15 21:47 by admin