diff --git a/hostname b/hostname new file mode 100644 index 0000000000000000000000000000000000000000..92d4a1958953b6e45f81deeb148867766838186b --- /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 a80c31ae53c7e7ca583696f5f0cadcd7651c2be7..7ddfef74ad80d6f7f469143f6a1ea44a231b15ab 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