Skip to content

feat: add ROCm powered-by banner with version to GPU section#33

Merged
simonCatBot merged 9 commits intomasterfrom
feat/rocm-info
Apr 7, 2026
Merged

feat: add ROCm powered-by banner with version to GPU section#33
simonCatBot merged 9 commits intomasterfrom
feat/rocm-info

Conversation

@simonCatBot
Copy link
Copy Markdown
Owner

Summary

Adds a "Powered by ROCm v{version}" badge to the GPU section of the system metrics dashboard, shown only when AMD ROCm GPUs are detected.

Backend — src/app/api/system/metrics/route.ts

  • Added rocmDetected: boolean and rocmRuntimeVersion: string to the SystemMetrics interface and response payload
  • Only populated when rocmGpus.length > 0; rocmRuntimeVersion falls back to rocmInfo.runtimeVersion ?? ""

Frontend — src/components/SystemMetricsDashboard.tsx

  • New ROCm section inserted above "Hardware Details" in the primary GPU card
  • Shows AMD ROCm logo (/amd/rocgfx-logo.png) with a styled fallback text badge if the image is absent
  • Displays: "Powered by ROCm v{version}"

Logo

  • public/amd/README.txt documents where to download amd-rocgfx-logo.png
  • If the PNG is absent, a red text badge ("AMD ROCm") is shown instead

Visual

┌─────────────────────────────┐
│ [ROCm logo] Powered by ROCm  │  ← new
│         v6.1.0              │
├─────────────────────────────┤
│  Hardware Details     ▼     │  ← existing
└─────────────────────────────┘

Kapu added 9 commits April 6, 2026 23:09
Backend (api/system/metrics):
- Expose rocmDetected (boolean) and rocmRuntimeVersion (string) in the
  metrics response — only populated when rocmGpus.length > 0

Frontend (SystemMetricsDashboard):
- Insert ROCm powered-by section above "Hardware Details" in primary GPU card
- Shows AMD ROCm logo (public/amd/rocgfx-logo.png) with styled text fallback
- Displays "Powered by ROCm v{runtimeVersion}" badge
- Graceful degradation: text badge shown if logo image is absent

To add the logo: place amd-rocgfx-logo.png in public/amd/ (see public/amd/README.txt)
…tar URL

- The SystemMetricsDashboard fetches from /api/gateway-metrics, not
  /api/system/metrics. Added rocmDetected/rocmRuntimeVersion to the
  correct gateway-metrics route instead.
- Fixed rocmInfo scope: moved out of try block so runtimeVersion is
  accessible at the return statement.
- Updated Image src to https://avatars.githubusercontent.com/u/16900649
  (AMD ROCm GitHub org avatar).
…stead

The avatars.githubusercontent.com image is white-on-transparent, invisible
on light backgrounds. Replaced with a red AMD ROCm text badge that reads
'AMD ROCm v{version}' with a subtle red tint — works on both light/dark.
Combine into single 'AMD ROCm v{version}' badge at text-xs size
instead of fragmented multi-line display. Cleaner, more readable.
- Re-add next/image with avatars.githubusercontent.com remote pattern
- Display logo at 80x32px with object-contain
- Show 'Powered by ROCm v{version}' text beside logo
- Removed broken text-only badge
@simonCatBot simonCatBot merged commit a47de22 into master Apr 7, 2026
4 checks passed
@simonCatBot simonCatBot deleted the feat/rocm-info branch April 7, 2026 18:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant