From 0e5b263a603ee9ac3ff15d86af45f973d9543868 Mon Sep 17 00:00:00 2001 From: likelovewant Date: Fri, 24 May 2024 15:26:24 +0800 Subject: [PATCH] Update amd_windows.go add igpu support ,remove those ,otherwise ,gfx1035 report not work --- gpu/amd_windows.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/gpu/amd_windows.go b/gpu/amd_windows.go index aae6c5b7..4b4e45a6 100644 --- a/gpu/amd_windows.go +++ b/gpu/amd_windows.go @@ -86,10 +86,10 @@ func AMDGetGPUInfo() []GpuInfo { slog.Debug("hip device", "id", i, "name", name, "gfx", gfx) //slog.Info(fmt.Sprintf("[%d] Integrated: %d", i, props.iGPU)) // DOESN'T REPORT CORRECTLY! Always 0 // TODO Why isn't props.iGPU accurate!? - if strings.EqualFold(name, iGPUName) { - slog.Info("unsupported Radeon iGPU detected skipping", "id", i, "name", name, "gfx", gfx) - continue - } + //if strings.EqualFold(name, iGPUName) { + // slog.Info("unsupported Radeon iGPU detected skipping", "id", i, "name", name, "gfx", gfx) + // continue + //} if gfxOverride == "" { if !slices.Contains[[]string, string](supported, gfx) { slog.Warn("amdgpu is not supported", "gpu", i, "gpu_type", gfx, "library", libDir, "supported_types", supported) @@ -108,10 +108,10 @@ func AMDGetGPUInfo() []GpuInfo { } // iGPU detection, remove this check once we can support an iGPU variant of the rocm library - if totalMemory < IGPUMemLimit { - slog.Info("amdgpu appears to be an iGPU, skipping", "gpu", i, "total", format.HumanBytes2(totalMemory)) - continue - } + //if totalMemory < IGPUMemLimit { + // slog.Info("amdgpu appears to be an iGPU, skipping", "gpu", i, "total", format.HumanBytes2(totalMemory)) + // continue + //} // TODO revisit this once ROCm v6 is available on windows. // v5.7 only reports VRAM used by this process, so it's completely wrong and unusable