Skip to content
Snippets Groups Projects
Commit f1911724 authored by Mike Smith's avatar Mike Smith
Browse files

changed to using sbatch

parent 9b3b3b7e
No related branches found
No related tags found
No related merge requests found
...@@ -34,19 +34,19 @@ srun ./hpc_example.py -t 10 -l 100 ...@@ -34,19 +34,19 @@ srun ./hpc_example.py -t 10 -l 100
## Running in the background ## Running in the background
``` ```
srun ./hpc_example.py -t 10 -l 100 & sbatch ./hpc_example.py -t 10 -l 100
``` ```
## Redirecting output ## Redirecting output
``` ```
srun --output=output.txt ./hpc_example.py -t 20 -l 100 & sbatch --output=output.txt ./hpc_example.py -t 20 -l 100
``` ```
## Creating a larger list ## Creating a larger list
``` ```
srun --output=output.txt ./hpc_example.py -t 30 -l 5000000 & sbatch --output=output.txt ./hpc_example.py -t 30 -l 5000000
``` ```
## Displaying details of our cluster queue ## Displaying details of our cluster queue
...@@ -58,9 +58,17 @@ scontrol show partition ...@@ -58,9 +58,17 @@ scontrol show partition
## Requesting more resources ## Requesting more resources
``` ```
srun --mem=250 \ sbatch --mem=250 \
--output=output.txt \ --output=output.txt \
./hpc_example.py -t 30 -l 5000000 & ./hpc_example.py -t 30 -l 5000000
```
## Requesting a lot more resources
```
sbatch --mem=8000 \
--output=output.txt \
./hpc_example.py -t 120 -l 5000000
``` ```
## Running interactive jobs ## Running interactive jobs
......
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment