]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
scripts: add sqlite3 check for compare-commits.sh (#15633)
authorAman Gupta <redacted>
Thu, 28 Aug 2025 11:23:22 +0000 (19:23 +0800)
committerGitHub <redacted>
Thu, 28 Aug 2025 11:23:22 +0000 (19:23 +0800)
scripts/compare-commits.sh

index a28cd5e535bffbc4d78e30c956a18cd989962028..1802d6e5ef9f0d72ca8ac51b32217c34379f8b4f 100755 (executable)
@@ -25,6 +25,12 @@ fi
 # verify at the start that the compare script has all the necessary dependencies installed
 ./scripts/compare-llama-bench.py --check
 
+if ! command -v sqlite3 >/dev/null 2>&1; then
+    echo "Error: sqlite3 is not installed or not in PATH"
+    echo "Please install sqlite3 to use this script"
+    exit 1
+fi
+
 if [ "$tool" = "llama-bench" ]; then
     db_file="llama-bench.sqlite"
     target="llama-bench"