... | @@ -641,6 +641,35 @@ Hello world from process 028 out of 032, processor name res-hpc-exe014.researchl |
... | @@ -641,6 +641,35 @@ Hello world from process 028 out of 032, processor name res-hpc-exe014.researchl |
|
Hello world from process 009 out of 032, processor name res-hpc-exe013.researchlumc.nl
|
|
Hello world from process 009 out of 032, processor name res-hpc-exe013.researchlumc.nl
|
|
salloc: Relinquishing job allocation 270
|
|
salloc: Relinquishing job allocation 270
|
|
```
|
|
```
|
|
|
|
- srun
|
|
|
|
With the **srun** command you can also open an interactive session or you can run a program through the scheduler.
|
|
|
|
Interactive:
|
|
|
|
```
|
|
|
|
[user@res-hpc-lo01 ~]$ srun --pty bash
|
|
|
|
[user@res-hpc-exe013 ~]$ exit
|
|
|
|
exit
|
|
|
|
```
|
|
|
|
Running a program:
|
|
|
|
```
|
|
|
|
[user@res-hpc-lo01 ~]$ cat hello.sh
|
|
|
|
#!/bin/bash
|
|
|
|
#
|
|
|
|
|
|
|
|
echo "Hello from $(hostname)"
|
|
|
|
echo "It is currently $(date)"
|
|
|
|
echo ""
|
|
|
|
echo "SLURM_JOB_NAME: $SLURM_JOB_NAME"
|
|
|
|
echo "SLURM_JOBID: " $SLURM_JOBID
|
|
|
|
|
|
|
|
[user@res-hpc-lo01 ~]$ chmod +x hello.sh
|
|
|
|
|
|
|
|
[user@res-hpc-lo01 ~]$ srun -N1 hello.sh
|
|
|
|
Hello from res-hpc-exe013.researchlumc.nl
|
|
|
|
It is currently Thu Jan 23 12:35:18 CET 2020
|
|
|
|
|
|
|
|
SLURM_JOB_NAME: hello.sh
|
|
|
|
SLURM_JOBID: 282
|
|
|
|
```
|
|
|
|
|
|
### Submitting jobs
|
|
### Submitting jobs
|
|
|
|
|
... | | ... | |