Skip to content

Commit

Permalink
slurm_intro.md {code-block} console
Browse files Browse the repository at this point in the history
  • Loading branch information
bclaremar authored Aug 24, 2023
1 parent 04a5ebb commit 2ad94c7
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions docs/slurm_intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@

``````{challenge} Try interactive
```bash=
``` {code-block} console
interactive -A naiss2023-22-793 -p core -n 1 -t 10:00
```
- Which node are you on?
Expand Down Expand Up @@ -124,21 +125,25 @@ echo Hello world!
- Put it into a file named “jobtemplate.sh”
- Make the file executable (chmod)
- Submit the job:
```
``` {code-block} console
$ sbatch jobtemplate.sh
```
- Note the job id!
- Check the queue:
```
``` {code-block} console
$ squeue -u <username>
$ jobinfo -u <username>
```
- When it’s done (rather fast), look for the output file (slurm-<jobid>.out):
```
``` {code-block} console
$ ls -lrt slurm-*
```
- Check the output file to see if it ran correctly
```
``` {code-block} console
$ cat <filename>
```
``````
Expand Down

0 comments on commit 2ad94c7

Please sign in to comment.