From: Georgi Gerganov Date: Sun, 15 Dec 2024 16:44:47 +0000 (+0200) Subject: scripts : change build path to "build-bench" for compare-commits.sh (#10836) X-Git-Tag: upstream/0.0.4488~156 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=87cf323cef80f6aa530f047ab05b539ebc6b7e3c;p=pkg%2Fggml%2Fsources%2Fllama.cpp scripts : change build path to "build-bench" for compare-commits.sh (#10836) --- diff --git a/scripts/compare-commits.sh b/scripts/compare-commits.sh index 143d9872..e40d1cc6 100755 --- a/scripts/compare-commits.sh +++ b/scripts/compare-commits.sh @@ -20,11 +20,13 @@ if [ -n "$GGML_CUDA" ]; then cmake_opts="-DGGML_CUDA=ON" fi +dir="build-bench" + function run { - rm -fr build > /dev/null - cmake -B build -S . $cmake_opts > /dev/null - cmake --build build -t llama-bench > /dev/null - build/bin/llama-bench -o sql -oe md $bench_args | sqlite3 llama-bench.sqlite + rm -fr ${dir} > /dev/null + cmake -B ${dir} -S . $cmake_opts > /dev/null + cmake --build ${dir} -t llama-bench > /dev/null + ${dir}/bin/llama-bench -o sql -oe md $bench_args | sqlite3 llama-bench.sqlite } git checkout $1 > /dev/null