From 8092d7736bc8f6ea84900405f62739c5e1cb5d60 Mon Sep 17 00:00:00 2001 From: 13518104 Kevin Austin Stefano <13518104@std.stei.itb.ac.id> Date: Sat, 6 Mar 2021 20:50:10 +0700 Subject: [PATCH] repair script --- hostname | 5 +++++ openmpi-script.sh | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 hostname diff --git a/hostname b/hostname new file mode 100644 index 0000000..92d4a19 --- /dev/null +++ b/hostname @@ -0,0 +1,5 @@ +172.31.65.212 +172.31.79.254 +172.31.68.110 +172.31.79.57 +172.31.75.79s diff --git a/openmpi-script.sh b/openmpi-script.sh index a80c31a..7ddfef7 100755 --- a/openmpi-script.sh +++ b/openmpi-script.sh @@ -6,6 +6,6 @@ fi input=$1 filename=`basename $1` -cat $1 | ./src/MST_OpenMPI > output_mp/tmp -sed '$d' output_mp/tmp > output_mp/$filename -rm -f output_mp/tmp +cat $1 | mpirun --hostfile hostname -np 5 ./src/MST_OpenMPI < $input > output_mpi/tmp +sed '$d' output_mpi/tmp > output_mpi/$filename +rm -f output_mpi/tmp \ No newline at end of file -- GitLab