-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmake.sh
More file actions
25 lines (25 loc) · 858 Bytes
/
make.sh
File metadata and controls
25 lines (25 loc) · 858 Bytes
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
#!/bin/bash
size=$cols
if [ $FUNCTIONAL_MODE -eq 0 ];
then
sh scripts/report.sh
./scripts/plot.sh
elif [ $FUNCTIONAL_MODE -eq 1 ]
then
echo "Performing Row-Wise Matrix-Vector Multiplication with OpenMP and MPI\n"
export OMP_NUM_THREADS=$proc
./rowStripe_openmp $rows $cols $size
mpirun -np $proc ./mvm_rs_mpi $rows $cols $size
elif [ $FUNCTIONAL_MODE -eq 2 ]
then
echo "Performing Column-Wise Matrix-Vector Multiplication with OpenMP and MPI\n"
export OMP_NUM_THREADS=$proc
./columnStripe_openmp $rows $cols $size
mpirun -np $proc ./mvm_cs_mpi $rows $cols $size
elif [ $FUNCTIONAL_MODE -eq 3 ]
then
echo "Performing Chckerboard Matrix-Vector Multiplication with OpenMP and MPI\n"
export OMP_NUM_THREADS=$proc
./checkerboard_openmp $rows $cols $size $OMP_NUM_THREADS
mpirun -np $proc ./mvm_checkerboard $rows $cols $size
fi