fix: remove convolution_2d from evidence table, clarify docstring
Browse files- README.md +35 -12
- backend/tools/demo_artifacts.py +4 -6
- docs/LIVE_RESULTS.md +2 -1
README.md
CHANGED
|
@@ -1,13 +1,14 @@
|
|
| 1 |
# ⚡ ROCmPort AI
|
| 2 |
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
---
|
| 6 |
|
| 7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
|
| 9 |
-
-
|
| 10 |
-
- **HuggingFace Space**: https://huggingface.co/spaces/lablab-ai-amd-developer-hackathon/ROCmPort-AI
|
| 11 |
|
| 12 |
---
|
| 13 |
|
|
@@ -39,6 +40,19 @@ if (tid < 64) {
|
|
| 39 |
|
| 40 |
---
|
| 41 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 42 |
## What ROCmPort AI Does
|
| 43 |
|
| 44 |
1. **Analyze** — scan CUDA kernel for AMD-specific risks (wavefront size, ballot/shuffle idioms, shared memory layout)
|
|
@@ -54,15 +68,24 @@ If the optimized output underperforms the baseline, the coordinator retries the
|
|
| 54 |
|
| 55 |
## Reproducible Demo Results
|
| 56 |
|
| 57 |
-
These numbers are deterministic `demo_artifact` values returned by the backend when `ROCM_AVAILABLE=false`. Set `ROCM_AVAILABLE=true` on real MI300X hardware to collect `data_source=real_rocm` results.
|
| 58 |
-
|
| 59 |
| Kernel | Input | Baseline HIP | Optimized HIP | Result |
|
| 60 |
|--------|-------|-------------|---------------|--------|
|
| 61 |
-
| matrix_multiply |
|
| 62 |
-
|
|
| 63 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 64 |
|
| 65 |
-
Hardware
|
| 66 |
|
| 67 |
---
|
| 68 |
|
|
|
|
| 1 |
# ⚡ ROCmPort AI
|
| 2 |
|
| 3 |
+
   
|
|
|
|
|
|
|
| 4 |
|
| 5 |
+
> **Live Demos**
|
| 6 |
+
>
|
| 7 |
+
> 🚀 **Backend API**: https://rocmport-ai-q2b1.onrender.com
|
| 8 |
+
>
|
| 9 |
+
> 🤗 **HuggingFace Space**: https://huggingface.co/spaces/lablab-ai-amd-developer-hackathon/ROCmPort-AI
|
| 10 |
|
| 11 |
+
A multi-agent pipeline that migrates CUDA kernels to AMD ROCm/HIP — catching the bugs that `hipify` misses, compiling with `hipcc`, profiling with `rocprof` on real MI300X hardware, and iterating until the output is correct and fast.
|
|
|
|
| 12 |
|
| 13 |
---
|
| 14 |
|
|
|
|
| 40 |
|
| 41 |
---
|
| 42 |
|
| 43 |
+
## How It's Different From hipify
|
| 44 |
+
|
| 45 |
+
| | hipify-clang | ROCmPort AI |
|
| 46 |
+
|---|---|---|
|
| 47 |
+
| API renaming | ✅ | ✅ |
|
| 48 |
+
| Wavefront-64 bug detection | ❌ | ✅ |
|
| 49 |
+
| Compile verification | ❌ | ✅ |
|
| 50 |
+
| Profiler feedback loop | ❌ | ✅ |
|
| 51 |
+
| Correctness guarantee | ❌ | Partial |
|
| 52 |
+
| Fine-tuned model | ❌ | ✅ |
|
| 53 |
+
|
| 54 |
+
---
|
| 55 |
+
|
| 56 |
## What ROCmPort AI Does
|
| 57 |
|
| 58 |
1. **Analyze** — scan CUDA kernel for AMD-specific risks (wavefront size, ballot/shuffle idioms, shared memory layout)
|
|
|
|
| 68 |
|
| 69 |
## Reproducible Demo Results
|
| 70 |
|
|
|
|
|
|
|
| 71 |
| Kernel | Input | Baseline HIP | Optimized HIP | Result |
|
| 72 |
|--------|-------|-------------|---------------|--------|
|
| 73 |
+
| matrix_multiply | 512×512 | 0.076ms | 0.026ms | **2.91x speedup** |
|
| 74 |
+
| vector_add | 32M elements | — | 0.098ms | **3,918 GB/s bandwidth (74% of MI300X peak)** |
|
| 75 |
+
| reduction | 16M elements | — | 0.042ms | **correctness PASS (wavefront-64 fix)** |
|
| 76 |
+
|
| 77 |
+
> Source: `docs/benchmark_runs/` — real rocprof CSV output, MI300X gfx942, ROCm 7.0, May 8 2026
|
| 78 |
+
|
| 79 |
+
---
|
| 80 |
+
|
| 81 |
+
## Proof of Hardware
|
| 82 |
+
|
| 83 |
+
Raw rocprof CSV output committed to this repo:
|
| 84 |
+
- [`docs/benchmark_runs/matmul_out.stats.csv`](docs/benchmark_runs/matmul_out.stats.csv)
|
| 85 |
+
- [`docs/benchmark_runs/vecadd_out.stats.csv`](docs/benchmark_runs/vecadd_out.stats.csv)
|
| 86 |
+
- [`docs/benchmark_runs/reduction.stats.csv`](docs/benchmark_runs/reduction.stats.csv)
|
| 87 |
|
| 88 |
+
Hardware: AMD Instinct MI300X VF (gfx942), 192GB HBM3, ROCm 7.0, AMD Developer Cloud
|
| 89 |
|
| 90 |
---
|
| 91 |
|
backend/tools/demo_artifacts.py
CHANGED
|
@@ -1,12 +1,10 @@
|
|
| 1 |
"""
|
| 2 |
Real rocprof measurements for ROCmPort AI profiling layer.
|
| 3 |
|
| 4 |
-
matrix_multiply, vector_add, and reduction
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
convolution_2d: demo_artifact (not yet measured on hardware).
|
| 9 |
-
custom: simulated conservative estimate.
|
| 10 |
|
| 11 |
Baseline definition: straight hipify-clang output with minimal compile edits (Baseline A).
|
| 12 |
"""
|
|
|
|
| 1 |
"""
|
| 2 |
Real rocprof measurements for ROCmPort AI profiling layer.
|
| 3 |
|
| 4 |
+
matrix_multiply, vector_add, and reduction entries are sourced from real rocprof
|
| 5 |
+
measurements on MI300X gfx942, ROCm 7.0, May 8 2026.
|
| 6 |
+
See docs/benchmark_runs/ for raw CSV evidence.
|
| 7 |
+
convolution_2d and custom use estimated values and are clearly labelled demo_artifact.
|
|
|
|
|
|
|
| 8 |
|
| 9 |
Baseline definition: straight hipify-clang output with minimal compile edits (Baseline A).
|
| 10 |
"""
|
docs/LIVE_RESULTS.md
CHANGED
|
@@ -14,7 +14,8 @@ and match these CSV files exactly.
|
|
| 14 |
| matrix_multiply (512×512) | 0.076 | 0.026 | 2.91x | — | [matmul_out.stats.csv](benchmark_runs/matmul_out.stats.csv) |
|
| 15 |
| vector_add (32M elements) | — | 0.098 | — | 3,918 GB/s | [vecadd_out.stats.csv](benchmark_runs/vecadd_out.stats.csv) |
|
| 16 |
| reduction (16M elements) | — | 0.042 | — | — | [reduction.stats.csv](benchmark_runs/reduction.stats.csv) |
|
| 17 |
-
|
|
|
|
| 18 |
|
| 19 |
> **Note:** vector_add and reduction were run standalone; no pre-optimisation baseline
|
| 20 |
> was captured in these runs. matrix_multiply baseline is `matmul_baseline` (hipify
|
|
|
|
| 14 |
| matrix_multiply (512×512) | 0.076 | 0.026 | 2.91x | — | [matmul_out.stats.csv](benchmark_runs/matmul_out.stats.csv) |
|
| 15 |
| vector_add (32M elements) | — | 0.098 | — | 3,918 GB/s | [vecadd_out.stats.csv](benchmark_runs/vecadd_out.stats.csv) |
|
| 16 |
| reduction (16M elements) | — | 0.042 | — | — | [reduction.stats.csv](benchmark_runs/reduction.stats.csv) |
|
| 17 |
+
|
| 18 |
+
> **convolution_2d kernel was not profiled in this hardware run and is excluded from the evidence table. Only kernels with traceable rocprof CSV output are reported here.**
|
| 19 |
|
| 20 |
> **Note:** vector_add and reduction were run standalone; no pre-optimisation baseline
|
| 21 |
> was captured in these runs. matrix_multiply baseline is `matmul_baseline` (hipify
|