Skip to content

Commit e6f31f7

Browse files
ggerganovarthw
authored andcommitted
scripts : fix missing key in compare-llama-bench.py (ggml-org#10332)
1 parent 0c29495 commit e6f31f7

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

scripts/compare-llama-bench.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -303,14 +303,11 @@ def get_rows(properties):
303303

304304
show = []
305305
# Show CPU and/or GPU by default even if the hardware for all results is the same:
306-
if "gpu_blas" not in properties_different and "n_gpu_layers" not in properties_different:
307-
gpu_blas = bool(rows_full[0][KEY_PROPERTIES.index("gpu_blas")])
306+
if "n_gpu_layers" not in properties_different:
308307
ngl = int(rows_full[0][KEY_PROPERTIES.index("n_gpu_layers")])
309308

310-
if not gpu_blas or ngl != 99 and "cpu_info" not in properties_different:
309+
if ngl != 99 and "cpu_info" not in properties_different:
311310
show.append("cpu_info")
312-
if gpu_blas and "gpu_info" not in properties_different:
313-
show.append("gpu_info")
314311

315312
show += properties_different
316313

0 commit comments

Comments
 (0)