mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2024-12-26 03:14:35 +00:00
scripts : fix missing key in compare-llama-bench.py (#10332)
This commit is contained in:
parent
772703c8ff
commit
f245cc28d4
@ -303,14 +303,11 @@ else:
|
|||||||
|
|
||||||
show = []
|
show = []
|
||||||
# Show CPU and/or GPU by default even if the hardware for all results is the same:
|
# Show CPU and/or GPU by default even if the hardware for all results is the same:
|
||||||
if "gpu_blas" not in properties_different and "n_gpu_layers" not in properties_different:
|
if "n_gpu_layers" not in properties_different:
|
||||||
gpu_blas = bool(rows_full[0][KEY_PROPERTIES.index("gpu_blas")])
|
|
||||||
ngl = int(rows_full[0][KEY_PROPERTIES.index("n_gpu_layers")])
|
ngl = int(rows_full[0][KEY_PROPERTIES.index("n_gpu_layers")])
|
||||||
|
|
||||||
if not gpu_blas or ngl != 99 and "cpu_info" not in properties_different:
|
if ngl != 99 and "cpu_info" not in properties_different:
|
||||||
show.append("cpu_info")
|
show.append("cpu_info")
|
||||||
if gpu_blas and "gpu_info" not in properties_different:
|
|
||||||
show.append("gpu_info")
|
|
||||||
|
|
||||||
show += properties_different
|
show += properties_different
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user