Skip to content

Commit 7d12f30

Browse files
committed
Fix invalid device type convertion to Gpu
1 parent 750ed12 commit 7d12f30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llama-cpp-2/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ pub fn list_llama_ggml_backend_devices() -> Vec<LlamaBackendDevice> {
428428
let memory_total = props.memory_total;
429429
let memory_free = props.memory_free;
430430
let device_type = match props.type_ {
431-
llama_cpp_sys_2::GGML_BACKEND_DEVICE_TYPE_CPU => LlamaBackendDeviceType::Gpu,
431+
llama_cpp_sys_2::GGML_BACKEND_DEVICE_TYPE_CPU => LlamaBackendDeviceType::Cpu,
432432
llama_cpp_sys_2::GGML_BACKEND_DEVICE_TYPE_ACCEL => {
433433
LlamaBackendDeviceType::Accelerator
434434
}

0 commit comments

Comments
 (0)