From 29b1ed00774dac5b26004a6bc057c4d270fe1943 Mon Sep 17 00:00:00 2001 From: Thomas Stocker Date: Sat, 9 Aug 2025 22:30:13 +0200 Subject: [PATCH] Revert whitespace changes in gpu.go --- discover/gpu.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/discover/gpu.go b/discover/gpu.go index f76e2abf1..9048631a8 100644 --- a/discover/gpu.go +++ b/discover/gpu.go @@ -309,7 +309,7 @@ func GetGPUInfo() GpuInfoList { slog.Info("error looking up nvidia GPU memory", "error", C.GoString(memInfo.err)) C.free(unsafe.Pointer(memInfo.err)) continue - } + } gpuInfo.TotalMemory = uint64(memInfo.total) gpuInfo.FreeMemory = uint64(memInfo.free) gpuInfo.ID = C.GoString(&memInfo.gpu_id[0]) @@ -393,7 +393,7 @@ func GetGPUInfo() GpuInfoList { C.oneapi_check_vram(*oHandles.oneapi, C.int(d), i, &memInfo) // TODO - convert this to MinimumMemory based on testing... var totalFreeMem float64 = float64(memInfo.free) * 0.95 // work-around: leave some reserve vram for mkl lib used in ggml-sycl backend. - memInfo.free = C.uint64_t(totalFreeMem) + memInfo.free = C.uint64_t(totalFreeMem) gpuInfo.TotalMemory = uint64(memInfo.total) gpuInfo.FreeMemory = uint64(memInfo.free) gpuInfo.ID = C.GoString(&memInfo.gpu_id[0])