Skip to content
Snippets Groups Projects
Commit d0487f49 authored by Xin Li's avatar Xin Li
Browse files

aprun -> srun

parent a8c3a798
No related branches found
No related tags found
No related merge requests found
......@@ -32,15 +32,15 @@ First it is necessary to book a node for interactive use:
salloc -A <allocation-name> -N 1 -t 1:0:0
```
Then the aprun command is used to launch an MPI application:
Then the srun command is used to launch an MPI application:
```
aprun -n 32 ./example.x
srun -n 32 ./example.x
```
In this example we will start 32 MPI tasks (there are 32 cores per node on the Beskow nodes).
If you do not use aprun and try to start your program on the login node then you will get an error similar to
If you do not use srun and try to start your program on the login node then you will get an error similar to
```
Fatal error in MPI_Init: Other MPI error, error stack:
......
......@@ -56,13 +56,15 @@ Use `mpi_wtime` to compute latency and bandwidth with the bandwidth and latency
For this exercise, it is nice to compare running on the same node e.g.
```
aprun -n 2 ./mpi_latency.x
salloc -N 1 --ntasks-per-node=2 -A <project> -t 00:05:00
srun -n 2 ./mpi_latency.x
```
with running on separate nodes
```
aprun -N 1 -n 2 ./mpi_latency.x
salloc -N 2 --ntasks-per-node=1 -A <project> -t 00:05:00
srun -n 2 ./mpi_latency.x
```
Similarly for the bandwidth.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment