This example shows how to run a MPI program on cluster.
- OpenMPI
Open a terminal and type:
sh run.sh
A typical output should look like this one.
[javier@c5n00 05-hello-MPI-cluster]$ sh run.sh
Hello from process 1 of 8
Hello from process 6 of 8
Hello from process 0 of 8
Hello from process 3 of 8
Hello from process 5 of 8
Hello from process 7 of 8
Hello from process 2 of 8
Hello from process 4 of 8
[javier@c5n00 05-hello-MPI-cluster]$