|
@ -73,13 +73,12 @@ This is a quickstart guide of howto use this *LabInstance to deploy MPI programs |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
--- |
|
|
--- |
|
|
**NOTE:** copy hello world to all clients |
|
|
**NOTE:** copy files to all clients |
|
|
|
|
|
|
|
|
```bash |
|
|
```bash |
|
|
# 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 |
|
|
scp /project/mpi_hello_world ubuntu@$line:/project/mpi_hello_world |
|
|
scp /project/file docker@$line:/some_dir/file |
|
|
done < /project/hosts |
|
|
done < /project/hosts |
|
|
``` |
|
|
``` |
|
|
--- |
|
|
--- |
|
|