Skip to content

Commit 55042b3

Browse files
authored
scripts: add sqlite3 check for compare-commits.sh (ggml-org#15633)
1 parent 8a4280c commit 55042b3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

scripts/compare-commits.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ fi
2525
# verify at the start that the compare script has all the necessary dependencies installed
2626
./scripts/compare-llama-bench.py --check
2727

28+
if ! command -v sqlite3 >/dev/null 2>&1; then
29+
echo "Error: sqlite3 is not installed or not in PATH"
30+
echo "Please install sqlite3 to use this script"
31+
exit 1
32+
fi
33+
2834
if [ "$tool" = "llama-bench" ]; then
2935
db_file="llama-bench.sqlite"
3036
target="llama-bench"

0 commit comments

Comments
 (0)