Skip to content

Commit 592d21e

Browse files
committed
Revert "ggml: Temporarily disable reporting UUIDs"
The root cause was an unclean upgrade - this code is fine. This reverts commit 45f216a.
1 parent 5a08b01 commit 592d21e

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

ml/backend/ggml/ggml.go

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,7 @@ func New(modelPath string, params ml.BackendParams) (ml.Backend, error) {
138138
requiredMemory.CPU.Name = C.GoString(C.ggml_backend_dev_name(cpuDeviceBufferType.d))
139139
var props C.struct_ggml_backend_dev_props
140140
C.ggml_backend_dev_get_props(cpuDeviceBufferType.d, &props)
141-
142-
// Bug #11211: Reporting of UUIDs is temporarily disabled due to causing segfaults
143-
// This only affects debug information until the new memory management code is in place
144-
// requiredMemory.CPU.UUID = C.GoString(props.uuid)
141+
requiredMemory.CPU.UUID = C.GoString(props.uuid)
145142
requiredMemory.CPU.Weights = make([]ml.Memory, blocks+1)
146143
requiredMemory.CPU.Cache = make([]ml.Memory, blocks+1)
147144

@@ -158,7 +155,7 @@ func New(modelPath string, params ml.BackendParams) (ml.Backend, error) {
158155
requiredMemory.GPUs[i].Name = C.GoString(C.ggml_backend_dev_name(d))
159156
var props C.struct_ggml_backend_dev_props
160157
C.ggml_backend_dev_get_props(d, &props)
161-
// requiredMemory.GPUs[i].UUID = C.GoString(props.uuid)
158+
requiredMemory.GPUs[i].UUID = C.GoString(props.uuid)
162159
requiredMemory.GPUs[i].Weights = make([]ml.Memory, blocks+1)
163160
requiredMemory.GPUs[i].Cache = make([]ml.Memory, blocks+1)
164161
}

0 commit comments

Comments
 (0)