Skip to content

Commit 3e2ece0

Browse files
committed
filled out section on my_slurm_accounts
1 parent e1429dd commit 3e2ece0

1 file changed

Lines changed: 22 additions & 1 deletion

File tree

docs/hpc/06_tools_and_software/08_utils.mdx

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,28 @@ find $HOME -xdev | cut -d "/" -f 1-4 | sort | uniq -c | sort -nr | head -n 5
2929
:::
3030
## my_slurm_accounts
3131

32-
my_slurm_accounts returns a list of slurm accounts associated with your HPC account. For more information about slurm accounts please see [Slurm Accounts](../01_getting_started/03_Slurm_Accounts/01_intro_slurm_accounts.mdx)
32+
my_slurm_accounts returns a list of slurm accounts associated with your HPC account:
33+
```bash
34+
[NetID@torch-login-b-1 ~]$ my_slurm_accounts
35+
Account Descr
36+
-------------------------------- ------------------------------------------------------------
37+
torch_pr_XXX_XXXXX project description
38+
```
39+
Use the appropriate entry in the Account column for the job you are submitting.<br />
40+
You will need to specify the account on the command line like:
41+
```bash
42+
srun --account=torch_pr_XXX_XXXXX --pty bash
43+
sbatch -c4 -t2:00:00 --mem=4G --account=torch_pr_XXX_XXXXX my_script.sh
44+
```
45+
or in your sbatch file you'll need to add a line like:
46+
```
47+
#SBATCH --account=torch_pr_XXX_XXXXX
48+
```
49+
You'll need to modify the above to use your actual account.
50+
51+
Please see [Slurm: Command reference](http://localhost:3000/docs/hpc/submitting_jobs/slurm_main_commands/) for details.
52+
53+
For more information about slurm accounts please see [Slurm Accounts](../01_getting_started/03_Slurm_Accounts/01_intro_slurm_accounts.mdx).
3354

3455
## nvidia-smi
3556
nvidia-smi (NVIDIA System Management Interface) is a command-line utility, based on the NVIDIA Management Library (NVML), used to monitor and manage NVIDIA GPU devices

0 commit comments

Comments
 (0)