Skip to content

Commit a6186a1

Browse files
committed
Update the custom scripts
1 parent 1f2c4be commit a6186a1

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

build.backend.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,14 @@ if [[ "$FLAVOR" == "-prod" ]]; then
2020
EOF
2121
fi
2222

23-
WHAT="llama-run llama-bench"
24-
cmake --build ../build.remoting-backend$FLAVOR --parallel 8 --target $WHAT "$@"
23+
TARGETS="llama-run"
24+
if [[ "${BENCH_MODE:-}" == "bench" ]]; then
25+
TARGETS="$TARGETS llama-bench"
26+
elif [[ "${BENCH_MODE:-}" == "perf" ]]; then
27+
TARGETS="$TARGETS test-backend-ops"
28+
fi
29+
30+
cmake --build ../build.remoting-backend$FLAVOR --parallel 8 --target $TARGETS "$@"
2531

2632
if [[ $? == 0 ]]; then
2733
touch READY_backend

0 commit comments

Comments
 (0)