We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 82d236b + 215c675 commit 57d4f4fCopy full SHA for 57d4f4f
dream-server/extensions/services/dashboard-api/gpu.py
@@ -95,8 +95,13 @@ def get_gpu_info_amd() -> Optional[GPUInfo]:
95
if power_str:
96
power_w = round(int(power_str) / 1e6, 1)
97
98
- gpu_name = _read_sysfs(f"{base}/product_name") or "AMD Radeon"
+ gpu_name = _read_sysfs(f"{base}/product_name")
99
memory_type = "unified" if is_unified else "discrete"
100
+ if not gpu_name:
101
+ if is_unified:
102
+ gpu_name = get_gpu_tier(mem_total / (1024**3), memory_type)
103
+ else:
104
+ gpu_name = "AMD Radeon"
105
106
mem_used_mb = mem_used // (1024 * 1024)
107
mem_total_mb = mem_total // (1024 * 1024)
0 commit comments