Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Bio-IT Workshops
embl_hpc
Commits
13b5a602
Commit
13b5a602
authored
Oct 22, 2020
by
Mike Smith
Browse files
Add commands for session
parent
4610ef89
Changes
2
Hide whitespace changes
Inline
Side-by-side
swc/exercises/commands.md
0 → 100644
View file @
13b5a602
## Identifying our computer
```
hostname
```
## Our first SLURM job
```
srun hostname
```
## Exploring our example program
```
./hpc_example.py -t 10 -l 100
```
## Running example program on on the cluster
```
srun ./hpc_example.py -t 10 -l 100
```
## Submitting a job to the background
```
sbatch ./hpc_example.py -t 60 -l 100
```
## Viewing running jobs
```
squeue
squeue --Format="JobID:6,UserName:15,State:10,Reason:10,TimeUsed:6,NodeList"
```
Redirecting output
```
sbatch --output=output.txt ./hpc_example.py -t 20 -l 100
```
## Creating a larger list
```
sbatch --output=output.txt ./hpc_example.py -t 30 -l 50000000
```
## Examing default limits
```
scontrol show partition
```
## Requesting Additional Resources
```
sbatch --mem=500 --output=output.txt ./hpc_example.py -t 30 -l 50000000
```
## reserving a LARGE amount of memory
```
sbatch --mem=8000 --output=output.txt ./hpc_example.py -t 30 -l 50000000
```
## Interactive jobs
```
srun --pty bash
```
## Limits apply to interactive jobs too
```
srun --mem=250 --pty bash
./hpc_example.py -t 30 -l 50000000
```
## Job dependencies
```
jid=$(sbatch --parsable batch_job.sh)
sbatch --dependency=afterok:$jid batch_job.sh
```
swc/hpc_slides.pdf
View file @
13b5a602
No preview for this file type
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment