openaccel-lab
aien-dev/openaccel-lab
Brought by drakestapleton
openaccel-lab / workloads / transpose / workload.json
| 1 | { |
| 2 | "name": "transpose", |
| 3 | "family": "memory-bound", |
| 4 | "summary": "b[j][i] = a[i][j]: f32 R x C row-major in, C x R row-major out", |
| 5 | "provenance": "authored for OpenAccel Lab (Apache-2.0); 16x16 tiled transpose through shared/local memory", |
| 6 | "params": {"R": 96, "C": 80}, |
| 7 | "cases": [{}, {"R": 33, "C": 7}, {"R": 1, "C": 1}], |
| 8 | "shrink": {"R": {"min": 1}, "C": {"min": 1}}, |
| 9 | "inputs": [ |
| 10 | {"name": "a", "dtype": "f32", "shape": ["R", "C"], "gen": {"kind": "uniform", "lo": -4.0, "hi": 4.0}} |
| 11 | ], |
| 12 | "outputs": [{"name": "b", "dtype": "f32", "shape": ["C", "R"]}], |
| 13 | "tolerance": { |
| 14 | "b": {"kind": "exact", "why": "pure copy, no arithmetic"} |
| 15 | }, |
| 16 | "timing": {"warmup": 2, "repeats": 10}, |
| 17 | "backends": { |
| 18 | "omega": {"src": "omega.om"}, |
| 19 | "opencl": {"src": "kernel.cl", "launches": [ |
| 20 | {"kernel": "transpose", "global": ["(C + 15) // 16 * 16", "(R + 15) // 16 * 16"], "local": [16, 16], |
| 21 | "args": ["a", "b", "R", "C"]} |
| 22 | ]}, |
| 23 | "triton": {"src": "triton_kernel.py"}, |
| 24 | "cuda": {"src": "kernel.cu"} |
| 25 | } |
| 26 | } |