Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/openaccel-lab/blob/main/workloads/batched_gemm/workload.json # openaccel-lab aien-dev/openaccel-lab Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `openaccel-lab / workloads / batched_gemm / workload.json` 28 lines ยท 1565 bytes Raw Blame History 1 { 2 "name": "batched_gemm", 3 "family": "compute-bound", 4 "summary": "C[b] = A[b] B[b] for b < BATCH with A BATCH x M x K, B BATCH x K x N, C BATCH x M x N, all f32 row-major", 5 "provenance": "authored for OpenAccel Lab (Apache-2.0); strided-batched SGEMM NN semantics with alpha=1, beta=0", 6 "params": {"BATCH": 3, "M": 24, "N": 20, "K": 36}, 7 "cases": [{}, {"BATCH": 2, "M": 9, "N": 7, "K": 11}], 8 "shrink": {"BATCH": {"min": 1}, "M": {"min": 1}, "N": {"min": 1}, "K": {"min": 1}}, 9 "inputs": [ 10 {"name": "A", "dtype": "f32", "shape": ["BATCH", "M", "K"], "gen": {"kind": "uniform", "lo": -1.0, "hi": 1.0}}, 11 {"name": "B", "dtype": "f32", "shape": ["BATCH", "K", "N"], "gen": {"kind": "normal4", "std": 1.0}} 12 ], 13 "outputs": [{"name": "C", "dtype": "f32", "shape": ["BATCH", "M", "N"]}], 14 "tolerance": { 15 "C": {"kind": "bound", "rtol": "gamma(K)", "atol": 0, 16 "why": "each C[b][i][j] is a length-K dot product; in any summation order, fused or not, |err| <= gamma(K)*sum_k |A[b][i][k] B[b][k][j]| (Higham Thm 3.1/3.5); reference.py passes that sum as scale. WolframLanguageEvaluator: g[n_]:=n 2^-24/(1-n 2^-24); N[g[36],6] -> 2.14577*10^-6, N[g[11],6] -> 6.55652*10^-7"} 17 }, 18 "timing": {"warmup": 1, "repeats": 5}, 19 "backends": { 20 "omega": {"src": "omega.om"}, 21 "opencl": {"src": "kernel.cl", "launches": [ 22 {"kernel": "batched_gemm", "global": ["(N + 15) // 16 * 16", "(M + 15) // 16 * 16", "BATCH"], "local": [16, 16, 1], 23 "args": ["A", "B", "C", "M", "N", "K"]} 24 ]}, 25 "triton": {"src": "triton_kernel.py"}, 26 "cuda": {"src": "kernel.cu"} 27 } 28 }