mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2024-12-25 13:58:46 +01:00
scripts : change build path to "build-bench" for compare-commits.sh (#10836)
This commit is contained in:
parent
5478bbcd17
commit
87cf323cef
@ -20,11 +20,13 @@ if [ -n "$GGML_CUDA" ]; then
|
|||||||
cmake_opts="-DGGML_CUDA=ON"
|
cmake_opts="-DGGML_CUDA=ON"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
dir="build-bench"
|
||||||
|
|
||||||
function run {
|
function run {
|
||||||
rm -fr build > /dev/null
|
rm -fr ${dir} > /dev/null
|
||||||
cmake -B build -S . $cmake_opts > /dev/null
|
cmake -B ${dir} -S . $cmake_opts > /dev/null
|
||||||
cmake --build build -t llama-bench > /dev/null
|
cmake --build ${dir} -t llama-bench > /dev/null
|
||||||
build/bin/llama-bench -o sql -oe md $bench_args | sqlite3 llama-bench.sqlite
|
${dir}/bin/llama-bench -o sql -oe md $bench_args | sqlite3 llama-bench.sqlite
|
||||||
}
|
}
|
||||||
|
|
||||||
git checkout $1 > /dev/null
|
git checkout $1 > /dev/null
|
||||||
|
Loading…
Reference in New Issue
Block a user