Sharing an open-source project I built for the AMD AI DevMaster Hackathon (Track 2) — posting the ROCm-specific parts here in case they’re useful to others building on Radeon.
RepoMind is an on-prem AI coding agent that runs 100% on a Radeon GPU (ROCm + vLLM), plus a CUDA→ROCm migration tool. Repo (code + raw logs + reproduce scripts): GitHub - SRKRZ23/repomind-amd-devmaster: On-prem agentic coding assistant + CUDA to ROCm migration, 100% on AMD Radeon (ROCm). AMD AI DevMaster Track 2. · GitHub · Demo: youtu.be/6YkKYjP_it0
A few ROCm things that might be useful:
1) CUDA→ROCm coverage — what actually ports. I ran the 10 most-used CUDA patterns through a rule-based converter and checked which have an AMD path:
• Auto-port to HIP: vector-add, tiled matmul (__shared__/__syncthreads), reduction (atomicAdd), streams+events, unified memory + device query.
• Header + library equivalent: cuBLAS→hipBLAS, cuDNN→MIOpen, Thrust→rocThrust, Tensor-Core WMMA→rocWMMA.
• Genuinely NVIDIA-only: inline PTX — the converter flags it instead of faking a rename. Real gotcha worth noting: __shfl_down_sync maps to HIP __shfl_down, but wavefront=64 (vs 32) changes the reduction logic.
→ 9 of 10 have an AMD path. Full breakdown + the sample .cu files in the repo.
2) Real CUDA compiled + run. Converted vecAdd and a shared-mem + atomicAdd reduction → hipcc (gfx1100) → executed on the W7900 → PASS. The generated .hip.cpp and the compiled binaries are in the repo.
3) Measured serving (Qwen2.5-Coder-14B, FP16, vLLM-ROCm): 27.6 tok/s single-stream → 103.8 tok/s at concurrency-4 (3.76× from continuous batching); TTFT 88 ms; 46.8 GB VRAM.
4) Radeon Cloud deployment gotchas (in case they save someone time): the image had no CA certs (git clone needs http.sslVerify=false), HF is slow (HF_ENDPOINT=https://hf-mirror.com), external SSH is blocked (use the JupyterLab terminal), and rocm-smi --showproductname threw libdrm errors in-container (rocminfo | grep "Marketing Name" works instead).
Honest note on economics: I also benchmarked on-prem vs cloud APIs - on-prem is not the cheapest; a cheap serverless model beats it on cost and speed. On-prem’s real value is privacy / air-gap (code never leaves the network). Numbers in the repo.
Feedback very welcome - especially on the converter’s rule coverage and where it should go next (function-level cuBLAS/cuDNN rewrites, AI-guided porting). And thanks to the AMD team for the GPU access. ![]()