Skip to content

Commit

Permalink
scripts : change build path to "build-bench" for compare-commits.sh (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ggerganov authored Dec 15, 2024
1 parent 5478bbc commit 87cf323
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions scripts/compare-commits.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 87cf323

Please sign in to comment.