File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -15,22 +15,16 @@ bench_args="${@:3}"
1515
1616rm -f llama-bench.sqlite > /dev/null
1717
18- unset cmake_opts
19-
2018# to test a backend, call the script with the corresponding environment variable (e.g. GGML_CUDA=1 ./scripts/compare-commits.sh ...)
2119if [ -n " $GGML_CUDA " ]; then
22- cmake_opts=" ${cmake_opts} -DGGML_CUDA=ON"
23- fi
24-
25- if [ -n " $CMAKE_BUILD_TYPE " ]; then
26- cmake_opts=" ${cmake_opts} -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} "
20+ CMAKE_OPTS=" ${CMAKE_OPTS} -DGGML_CUDA=ON"
2721fi
2822
2923dir=" build-bench"
3024
3125function run {
3226 rm -fr ${dir} > /dev/null
33- cmake -B ${dir} -S . ${cmake_opts } > /dev/null
27+ cmake -B ${dir} -S . ${CMAKE_OPTS } > /dev/null
3428 cmake --build ${dir} -t llama-bench > /dev/null
3529 ${dir} /bin/llama-bench -o sql -oe md $bench_args | sqlite3 llama-bench.sqlite
3630}
You can’t perform that action at this time.
0 commit comments