-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathevaluate_throughput.sh
More file actions
executable file
·55 lines (45 loc) · 1.5 KB
/
evaluate_throughput.sh
File metadata and controls
executable file
·55 lines (45 loc) · 1.5 KB
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
52
53
54
55
#!/bin/bash
DP_HLS_ROOT="/home/ubuntu/DP-HLS"
CONFIGS_ROOT="${DP_HLS_ROOT}/compile_configs"
# The four kernels that has GPU baselines are:
# global_affine
# local_affine
# banding_local_affine_scored
# protein_local_affine
# Create a list of folders names for the kernels, in the sequence they are numbered in the paper
KERNEL_FOLDERS=(
"global_linear"
"global_affine"
"local_linear"
"local_affine"
"global_two_piece_affine"
"overlap_suffix_prefix"
"semiglobal_short_long"
"profile_alignment"
"global_dtw"
"viterbi"
"banding_global_linear"
"banding_local_affine_scored"
"banding_global_two_piece_affine"
"sdtw"
"protein_local_affine"
"protein_local_affine_notb"
)
total_start_time=$(date +%s)
for kernel_folder in "${KERNEL_FOLDERS[@]}"
do
echo -e "\033[32mProcessing kernel: $kernel_folder\033[0m"
KERNEL_CONFIG_DIR="${CONFIGS_ROOT}/${kernel_folder}"
start_time=$(date +%s)
cd "${KERNEL_CONFIG_DIR}"
./cosim.sh "${DP_HLS_ROOT}"
cd "${DP_HLS_ROOT}"
end_time=$(date +%s)
duration=$((end_time - start_time))
echo -e "\033[34mDuration for $kernel_folder: ${duration} seconds\033[0m"
echo "Duration for $kernel_folder: ${duration} seconds" >> "${DP_HLS_ROOT}/kernel_durations.log"
done
total_end_time=$(date +%s)
total_duration=$((total_end_time - total_start_time))
echo -e "\033[34mTotal duration: ${total_duration} seconds\033[0m"
echo "Total duration: ${total_duration} seconds" >> "${DP_HLS_ROOT}/kernel_durations.log"