Skip to content

Commit 5c6acc0

Browse files
committed
add build script
1 parent 6158e12 commit 5c6acc0

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.github/workflows/bench.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
labels: frontier
5050
flag: f
5151
device: gpu
52-
build_script: "bash .github/workflows/frontier/build.sh gpu"
52+
build_script: "bash .github/workflows/frontier/build.sh gpu bench"
5353
runs-on:
5454
group: ${{ matrix.group }}
5555
labels: ${{ matrix.labels }}

.github/workflows/frontier/build.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,12 @@ if [ "$1" == "gpu" ]; then
66
fi
77

88
. ./mfc.sh load -c f -m g
9-
./mfc.sh test --dry-run -j 8 $build_opts
9+
10+
if [ "$2" == "bench" ]; then
11+
for dir in benchmarks/*/; do
12+
dirname=$(basename "$dir")
13+
./mfc.sh run "$dir/case.py" --case-optimization -j 8 --dry-run $build_opts
14+
done
15+
else
16+
./mfc.sh test --dry-run -j 8 $build_opts
17+
fi

0 commit comments

Comments
 (0)