-
Notifications
You must be signed in to change notification settings - Fork 0
/
run_all.sh
executable file
·51 lines (42 loc) · 2.17 KB
/
run_all.sh
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
42
43
44
45
46
47
48
49
50
51
#!/bin/bash
OUTPUT_FILE="output.csv"
MAX_REPS=1000
N_MIN=8
N_MAX=400
N_STEP=8
DOT_PRODUCT_SP="F"
DOT_PRODUCT_DP="T"
MATMUL_SP="F"
MATMUL_DP="T"
export OMP_NUM_THREADS=1
export MKL_NUM_THREADS=1
rm -v $OUTPUT_FILE
#rm -rf build/
#cmake --preset=debug
#cmake --build build
#./bin/benchmark --output_file $OUTPUT_FILE --max_reps $MAX_REPS --n_min $N_MIN --n_max $N_MAX --n_step $N_STEP --dot_product_sp $DOT_PRODUCT_SP --dot_product_dp $DOT_PRODUCT_DP --matmul_sp $MATMUL_SP --matmul_dp $MATMUL_DP
rm -rf build/
cmake --preset=gfortran-openblas
cmake --build build
./bin/benchmark --output_file $OUTPUT_FILE --max_reps $MAX_REPS --n_min $N_MIN --n_max $N_MAX --n_step $N_STEP --dot_product_sp $DOT_PRODUCT_SP --dot_product_dp $DOT_PRODUCT_DP --matmul_sp $MATMUL_SP --matmul_dp $MATMUL_DP
rm -rf build/
cmake --preset=ifort-openblas
cmake --build build
./bin/benchmark --output_file $OUTPUT_FILE --max_reps $MAX_REPS --n_min $N_MIN --n_max $N_MAX --n_step $N_STEP --dot_product_sp $DOT_PRODUCT_SP --dot_product_dp $DOT_PRODUCT_DP --matmul_sp $MATMUL_SP --matmul_dp $MATMUL_DP
rm -rf build/
cmake --preset=ifx-openblas
cmake --build build
./bin/benchmark --output_file $OUTPUT_FILE --max_reps $MAX_REPS --n_min $N_MIN --n_max $N_MAX --n_step $N_STEP --dot_product_sp $DOT_PRODUCT_SP --dot_product_dp $DOT_PRODUCT_DP --matmul_sp $MATMUL_SP --matmul_dp $MATMUL_DP
rm -rf build/
cmake --preset=flang-openblas
cmake --build build
./bin/benchmark --output_file $OUTPUT_FILE --max_reps $MAX_REPS --n_min $N_MIN --n_max $N_MAX --n_step $N_STEP --dot_product_sp $DOT_PRODUCT_SP --dot_product_dp $DOT_PRODUCT_DP --matmul_sp $MATMUL_SP --matmul_dp $MATMUL_DP
#rm -rf build/
#cmake --preset=ifort-mkl
#cmake --build build
#./bin/benchmark --output_file $OUTPUT_FILE --max_reps $MAX_REPS --n_min $N_MIN --n_max $N_MAX --n_step $N_STEP --dot_product_sp $DOT_PRODUCT_SP --dot_product_dp $DOT_PRODUCT_DP --matmul_sp $MATMUL_SP --matmul_dp $MATMUL_DP
#
#rm -rf build/
#cmake --preset=ifx-mkl
#cmake --build build
#./bin/benchmark --output_file $OUTPUT_FILE --max_reps $MAX_REPS --n_min $N_MIN --n_max $N_MAX --n_step $N_STEP --dot_product_sp $DOT_PRODUCT_SP --dot_product_dp $DOT_PRODUCT_DP --matmul_sp $MATMUL_SP --matmul_dp $MATMUL_DP