-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun_auto
executable file
·42 lines (31 loc) · 1.16 KB
/
run_auto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/bin/bash
MATRIXLIMIT=100
NUMBEROFHOSTSi=4
UNOPTIMIZED_PATH=clusterNoSIMD.txt
OPEN_MP_PATH=clusterOMP.txt
MPI_PATH=clusterMPI.txt
VECTORIZED_PATH=clusterVecSIMD.txt
GRAPH_OUTPUT=out.png
echo "Compiling project..."
make
echo "Finished compiling successfully"
echo ""
echo "All algorithms will be running with $NUMBEROFHOSTS as the number of hosts being used (paramter -n for mpiexec)"
echo ""
echo "Running ./mmult_omp_timing without SIMD and parallelization with $MATRIXLIMIT as the parameter"
echo "This will create the output $UNOPTIMIZED_PATH and $OPEN_MP_PATH"
mpiexec -f ~/hosts -n 4 ./mmult_omp_timing $MATRIXLIMIT
echo ""
echo "Running ./test_mmult with SIMD and Vectorization with 100 as the parameter"
echo "This will create the output $VECTORIZED_PATH"
mpiexec -f ~/hosts -n 4 ./test_mmult 100
echo ""
echo "Running ./mmult_mpi_omp with $MATRIXLIMIT as the parameter"
echo "This will create the output $MPI_PATH "
mpiexec -f ~/hosts -n 4 ./mmult_mpi_omp $MATRIXLIMIT
echo ""
echo "All output data has been generated, proceeding to graph the datapoints"
gnuplot graph.gnu
echo ""
echo "Automation complete! The resulting graph has been created as $GRAPH_OUTPUT"
echo ""