Skip to content

Commit 0a4c31c

Browse files
committed
code format
1 parent 850b710 commit 0a4c31c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

run_flaggems_tests.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ run_op_test() {
2727
local op="$1"
2828
local gpu_id="$2"
2929

30-
30+
3131
op=$(echo "$op" | tr -d '\r' | xargs)
3232
if [ -z "$op" ]; then
3333
return
@@ -63,15 +63,15 @@ run_op_test() {
6363
local perf_log="${op_dir}/perf.log"
6464

6565
find "${FLAGGEMS_PATH}/benchmark" -maxdepth 1 \
66-
-type f -name "result-m_*${op}*--level_core--record_log.log" \
66+
-type f -name "result-m_${op}--level_core--record_log.log" \
6767
-exec rm -f {} +
6868
# Note: adjustments are required based on different GPUs.
6969
CUDA_VISIBLE_DEVICES="$gpu_id" \
7070
bash -c "cd \"$FLAGGEMS_PATH/benchmark\" && pytest -m \"$op\" --level core --record log" \
7171
>"$perf_log" 2>&1
7272

7373
local perf_result_file
74-
perf_result_file=$(find "${FLAGGEMS_PATH}/benchmark" -maxdepth 1 -type f -name "result-m_*${op}*--level_core--record_log.log" | head -n 1)
74+
perf_result_file=$(find "${FLAGGEMS_PATH}/benchmark" -maxdepth 1 -type f -name "result-m_${op}--level_core--record_log.log" | head -n 1)
7575
if [ -n "$perf_result_file" ]; then
7676
mv "$perf_result_file" "$op_dir/"
7777
perf_result_file="${op_dir}/$(basename "$perf_result_file")"
@@ -120,7 +120,7 @@ run_op_test() {
120120
matched = 0
121121
if (opname == tt) matched = 1
122122
else if (opname == tt "_") matched = 1
123-
else if (index(opname, tt) == 1) matched = 1
123+
else if (index(opname, tt) == 1) matched = 1
124124
if (!matched) next
125125
126126
@@ -137,12 +137,12 @@ run_op_test() {
137137
else if (h == "cfloat_speedup") cf = val
138138
else if (h == "avg_speedup" || h == "average_speedup" || h == "avg") avg = val
139139
}
140-
140+
141141
printf "%s %s %s %s %s %s %s %s\n", f16, f32, bf16, i16, i32, bl, cf, avg
142142
exit
143143
}
144144
END {
145-
145+
146146
printf "0 0 0 0 0 0 0 0\n"
147147
}' "$parsed_summary_log"
148148
)

0 commit comments

Comments
 (0)