Skip to content

Free, open-source Windows optimization tool for performance, privacy, and simplicity.

Log Total GPUs in Multiple GPUs condition

itsfatduck0fbe635c6dae
diff --git a/optimizerDuck/src/Core/Services/SystemInfoService.cs b/optimizerDuck/src/Core/Services/SystemInfoService.cs
index 13c48b8..93e989a 100644
--- a/optimizerDuck/src/Core/Services/SystemInfoService.cs
+++ b/optimizerDuck/src/Core/Services/SystemInfoService.cs
@@ -570,7 +570,7 @@ public static class SystemInfoService
private static void LogGpuSummary(ILogger log)
{
var gpuCount = Snapshot.Gpus.Count;
- log.LogDebug("Total GPUs : {GpuCount}", gpuCount);
+
if (gpuCount == 0 || (gpuCount == 1 && Snapshot.Gpus[0] == GpuInfo.Unknown))
{
@@ -609,6 +609,7 @@ public static class SystemInfoService
log.LogDebug("GPU ({GpuIndex:D4}): {GpuName} ({GpuVendor}){MemoryInfo}",
index + 1, gpu.Name, gpu.Vendor, memoryInfo);
}
+ log.LogDebug("Total GPUs : {GpuCount}", gpuCount);
}
}