We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4265a87 commit a26c4ccCopy full SHA for a26c4cc
scripts/compare-commits.sh
@@ -17,14 +17,14 @@ rm -f llama-bench.sqlite > /dev/null
17
18
# to test a backend, call the script with the corresponding environment variable (e.g. GGML_CUDA=1 ./scripts/compare-commits.sh ...)
19
if [ -n "$GGML_CUDA" ]; then
20
- cmake_opts="-DGGML_CUDA=ON"
+ CMAKE_OPTS="${CMAKE_OPTS} -DGGML_CUDA=ON"
21
fi
22
23
dir="build-bench"
24
25
function run {
26
rm -fr ${dir} > /dev/null
27
- cmake -B ${dir} -S . $cmake_opts > /dev/null
+ cmake -B ${dir} -S . ${CMAKE_OPTS} > /dev/null
28
cmake --build ${dir} -t llama-bench > /dev/null
29
${dir}/bin/llama-bench -o sql -oe md $bench_args | sqlite3 llama-bench.sqlite
30
}
0 commit comments