|
@ -86,7 +86,7 @@ The host file that contains addresses of connected workers can be created with: |
|
|
# scp hello wrold to all clients. sudo -u mpi for auto scp connect. see /home/mpi/.ssh |
|
|
# scp hello wrold to all clients. sudo -u mpi for auto scp connect. see /home/mpi/.ssh |
|
|
while read -r line; |
|
|
while read -r line; |
|
|
do |
|
|
do |
|
|
sudo -u mpi scp /home/ubuntu/mpi_hello_world ubuntu@$line:/home/ubuntu/mpi_hello_world |
|
|
scp /home/ubuntu/mpi_hello_world ubuntu@$line:/home/ubuntu/mpi_hello_world |
|
|
done < /home/ubuntu/hosts |
|
|
done < /home/ubuntu/hosts |
|
|
``` |
|
|
``` |
|
|
--- |
|
|
--- |
|
|