diff --git a/README.md b/README.md index bac482fe20624ba12a83f8c2df30e232a1e53b77..8dc7cfef31577b5ae374ad3e20b66c966ea65029 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,8 @@ To use the Tegner compute nodes you have to submit [SLURM batch jobs](https://ww The following shell commands show a simple example on how to compile an MPI program using Fortran, C or C++: ``` -module load openmpi +module load gcc/8.2.0 +module load openmpi/4.0-gcc-8.2 mpif90 my_prog.f90 mpicc my_prog.c mpicxx my_prog.cc @@ -52,10 +53,10 @@ salloc -A <allocation-name> -N 1 -t 1:0:0 You might also need to specify a reservation by adding the flag `--reservation=<name-of-reservation>`. -Then the srun command is used to launch an MPI application: +Then the mpirun command is used to launch an MPI application: ``` -srun -n 24 ./example.x +mpirun -n 24 ./example.x ``` In this example we will start 24 MPI tasks (there are 24 cores per node on the Tegner Thin nodes).