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

updated README.md

parent 32409713
No related branches found
No related tags found
No related merge requests found
...@@ -29,8 +29,7 @@ To use the Dardel compute nodes you have to use the resource manager as describe ...@@ -29,8 +29,7 @@ To use the Dardel compute nodes you have to use the resource manager as describe
The following shell commands show a simple example on how to compile an MPI program using the GNU compilers: The following shell commands show a simple example on how to compile an MPI program using the GNU compilers:
``` ```
ml PDC ml PDC/21.11
ml cpe/21.11
ml PrgEnv-gnu ml PrgEnv-gnu
cc my_prog.c cc my_prog.c
CC my_prog.cpp CC my_prog.cpp
...@@ -42,7 +41,7 @@ ftn my_prog.f90 ...@@ -42,7 +41,7 @@ ftn my_prog.f90
First it is necessary to book a node for interactive use: First it is necessary to book a node for interactive use:
``` ```
salloc -p shared --nodes=1 --cpus-per-task=32 -t 0:30:00 -A edu22.summer --reservation=<name-of-reservation> salloc -p shared --nodes=1 --ntasks=16 -t 0:30:00 -A edu22.summer --reservation=<name-of-reservation>
``` ```
You might also need to specify a **reservation** by adding the flag `--reservation=<name-of-reservation>`. You might also need to specify a **reservation** by adding the flag `--reservation=<name-of-reservation>`.
...@@ -51,10 +50,10 @@ For the 2022 PDC Summer School the reservation name is ``summer-<date>``, where ...@@ -51,10 +50,10 @@ For the 2022 PDC Summer School the reservation name is ``summer-<date>``, where
Then the mpirun command is used to launch an MPI application: Then the mpirun command is used to launch an MPI application:
``` ```
mpirun -n 128 ./example.x srun -n 16 ./example.x
``` ```
In this example we will start 128 MPI tasks (there are 128 cores per node on all Dardel compute nodes). In this example we will start 16 MPI tasks.
## MPI Exercises ## MPI Exercises
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment