... | ... | @@ -346,7 +346,8 @@ Handy reference: |
|
|
Hello world from process 000 out of 001, processor name res-hpc-lo01.researchlumc.nl
|
|
|
```
|
|
|
|
|
|
Here you can see that we ran the program only on 1 core of the cpu.
|
|
|
Here you can see that we ran the program only on 1 core of the cpu. (which is the same as running: mpirun -np 1 ./hello) (np = number of processes to launch)
|
|
|
|
|
|
To make use of the MPI capabilitues of the program, we have to run the program with the "mpirun" which comes with the loaded module mpi/openmpi/4.0.2/gcc-8.2.1
|
|
|
|
|
|
- mpirun ./hello
|
... | ... | @@ -369,7 +370,7 @@ Hello world from process 008 out of 016, processor name res-hpc-lo01.researchlum |
|
|
Hello world from process 009 out of 016, processor name res-hpc-lo01.researchlumc.nl
|
|
|
Hello world from process 014 out of 016, processor name res-hpc-lo01.researchlumc.nl
|
|
|
```
|
|
|
Now the program is using all the cores of the local machine.
|
|
|
Now the program is using all the cores of the local machine. (which is the same as: mpirun -np 16 ./hello)
|
|
|
|
|
|
## Workload manager: Slurm
|
|
|
|
... | ... | |