|
@ -70,11 +70,11 @@ The host file that contains addresses of connected workers can be created with: |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- Compile |
|
|
#### Compile |
|
|
|
|
|
|
|
|
> mpicc -o /home/ubuntu/mpi_hello_world examples/mpi_hello_world.c |
|
|
> mpicc -o /home/ubuntu/mpi_hello_world examples/mpi_hello_world.c |
|
|
|
|
|
|
|
|
- run the MPI hello world program |
|
|
#### run the MPI hello world program |
|
|
|
|
|
|
|
|
> sudo -u mpi mpirun -n 10 -f /home/ubuntu/hosts /home/ubuntu/mpi_hello_world |
|
|
> sudo -u mpi mpirun -n 10 -f /home/ubuntu/hosts /home/ubuntu/mpi_hello_world |
|
|
|
|
|
|
|
|