From 37d6b1867fd49d6351fdfd6dd934481ab22a0ae9 Mon Sep 17 00:00:00 2001 From: test2 Date: Tue, 10 Mar 2020 16:32:45 +0200 Subject: [PATCH] examples 18 --- swarmlab/run | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/swarmlab/run b/swarmlab/run index ec7fffa..32465ea 100644 --- a/swarmlab/run +++ b/swarmlab/run @@ -1,10 +1,9 @@ #!/bin/bash -mpicc -o /project/mpi_hello_world ../examples/mpi_hello_world.c +sudo -u mpi mpicc -o /project/mpi_hello_world ../examples/mpi_hello_world.c sudo -u mpi scp /project/mpi_hello_world mpi@10.0.8.10:/project/mpi_hello_world sudo -u mpi scp /project/mpi_hello_world mpi@10.0.8.11:/project/mpi_hello_world cd /project -#sudo -u mpi mpirun -n 10 -f /project/hosts /project/mpi_hello_world 2>&1 | tee /project/output.log -sudo -u mpi mpirun -n 10 -f /project/hosts /project/mpi_hello_world -#cat /project/output.log +sudo -u mpi mpirun -n 10 -f /project/hosts /project/mpi_hello_world 2>&1 | tee /tmp/output.log +cat /tmp/output.log