Skip to content

Commit 6a75443

Browse files
Tony363claude
andcommitted
fix: apply unified APU name fallback to get_gpu_info_amd_detailed()
The detailed GPU function still used `or "AMD Radeon"` for unified APUs while get_gpu_info_amd() was updated to use get_gpu_tier(). This caused /api/gpu/detailed to return "AMD Radeon" while /gpu returned "Strix Halo 90+". Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent ec58a8b commit 6a75443

File tree

1 file changed

+7
-1
lines changed
  • dream-server/extensions/services/dashboard-api

1 file changed

+7
-1
lines changed

dream-server/extensions/services/dashboard-api/gpu.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,13 @@ def get_gpu_info_amd_detailed() -> Optional[list[IndividualGPU]]:
503503
if power_str:
504504
power_w = round(int(power_str) / 1e6, 1)
505505

506-
gpu_name = _read_sysfs(f"{base}/product_name") or "AMD Radeon"
506+
gpu_name = _read_sysfs(f"{base}/product_name")
507+
memory_type = "unified" if is_unified else "discrete"
508+
if not gpu_name:
509+
if is_unified:
510+
gpu_name = get_gpu_tier(mem_total / (1024**3), memory_type)
511+
else:
512+
gpu_name = "AMD Radeon"
507513
card_id = base.split("/")[-2] # "card0", "card1", …
508514
mem_used_mb = mem_used // (1024 * 1024)
509515
mem_total_mb = mem_total // (1024 * 1024)

0 commit comments

Comments
 (0)