forked from EgorOrachyov/SpBench
-
Notifications
You must be signed in to change notification settings - Fork 0
/
run_profiling.sh
30 lines (23 loc) · 925 Bytes
/
run_profiling.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
profilingFile="Profiling-Time.txt"
echo "Run memory profiling"
echo "Save results into $profilingFile"
if [[ -f $profilingFile ]]; then
rm $profilingFile
fi
# For each target we run as separate process for each matrix
cat data/targets_all.txt | while read target; do
cat data/config_profiling.txt | while read test; do
# Ignore lines, which start from comment mark
# Ignore falling benchmarks
if [[ ${test::1} != "%" && ! ( $target == *"cusparse"* && $test == *"wiki-Talk.mtx"* ) ]]; then
# Before profiling, add the target and test name
# Then for begin and end capture time points in order to
# later synchronize with nvidia-smi log output
echo "Exec command: ./$target -E $test"
echo "$target $test" >> $profilingFile
date +"%Y/%m/%d %H:%M:%S.%3N" >> $profilingFile
./$target -E $test
date +"%Y/%m/%d %H:%M:%S.%3N" >> $profilingFile
fi
done
done