| { |
| "op": "ai.onnx.ReduceL2", |
| "cases": [ |
| { |
| "name": "1024x1024_axis1", |
| "attrs": { "axes": [1], "keepdims": 0 }, |
| "inputs": { "x": { "dtype": "float32", "shape": [1024, 1024] } }, |
| "outputs": { "y": { "dtype": "float32", "shape": [1024] } } |
| }, |
| { |
| "name": "reducel2-axis0-f32-1024x512", |
| "preset": "smoke", |
| "vars": { "rows": 1024, "cols": 512 }, |
| "attrs": { "axes": [0], "keepdims": 0 }, |
| "inputs": { "x": { "shape": [1024, 512], "dtype": "float32", "dist": "normal", "seed": 118, "scale": 0.2 } }, |
| "outputs": { "y": { "shape": [512], "dtype": "float32" } }, |
| "bench": { "primary": true, "metrics": [{ "type": "bandwidth", "value": "args.rows * args.cols * 4" }] } |
| }, |
| { |
| "name": "reducel2-lastaxis-f32-4096x4096", |
| "preset": "smoke", |
| "vars": { "rows": 4096, "cols": 4096 }, |
| "attrs": { "axes": [1], "keepdims": 0 }, |
| "inputs": { "x": { "shape": [4096, 4096], "dtype": "float32", "dist": "normal", "seed": 117, "scale": 0.2 } }, |
| "outputs": { "y": { "shape": [4096], "dtype": "float32" } }, |
| "bench": { "primary": true, "metrics": [{ "type": "bandwidth", "value": "args.rows * args.cols * 4" }] } |
| }, |
| { |
| "name": "axis0-large-65536x512", |
| "preset": "smoke", |
| "vars": { "rows": 65536, "cols": 512 }, |
| "attrs": { "axes": [0], "keepdims": 0 }, |
| "inputs": { "x": { "shape": [65536, 512], "dtype": "float32", "dist": "normal", "scale": 0.2, "seed": 311 } }, |
| "outputs": { "y": { "shape": [512], "dtype": "float32" } }, |
| "bench": { "primary": true, "metrics": [{ "type": "bandwidth", "value": "args.rows * args.cols * 4" }] } |
| }, |
| { |
| "name": "axis0-tall-16384x1024", |
| "preset": "smoke", |
| "vars": { "rows": 16384, "cols": 1024 }, |
| "attrs": { "axes": [0], "keepdims": 0 }, |
| "inputs": { "x": { "shape": [16384, 1024], "dtype": "float32", "dist": "normal", "scale": 0.2, "seed": 312 } }, |
| "outputs": { "y": { "shape": [1024], "dtype": "float32" } }, |
| "bench": { "primary": true, "metrics": [{ "type": "bandwidth", "value": "args.rows * args.cols * 4" }] } |
| }, |
| { |
| "name": "reducel2-lastaxis-f32-4096x4095", |
| "preset": "smoke", |
| "vars": { "rows": 4096, "cols": 4095 }, |
| "attrs": { "axes": [1], "keepdims": 0 }, |
| "inputs": { "x": { "shape": [4096, 4095], "dtype": "float32", "dist": "normal", "seed": 421, "scale": 0.2 } }, |
| "outputs": { "y": { "shape": [4096], "dtype": "float32" } }, |
| "bench": { "metrics": [{ "type": "bandwidth", "value": "args.rows * args.cols * 4" }] } |
| }, |
| { |
| "name": "reducel2-rank4-axis1-channel-f32-16x512x28x28", |
| "preset": "smoke", |
| "vars": { "n": 16, "c": 512, "h": 28, "w": 28 }, |
| "attrs": { "axes": [1], "keepdims": 0 }, |
| "inputs": { "x": { "shape": [16, 512, 28, 28], "dtype": "float32", "dist": "normal", "seed": 422, "scale": 0.2 } }, |
| "outputs": { "y": { "shape": [16, 28, 28], "dtype": "float32" } }, |
| "bench": { "metrics": [{ "type": "bandwidth", "value": "args.n * args.c * args.h * args.w * 4" }] } |
| }, |
| { |
| "name": "reducel2-rank3-axis1-middle-f32-64x1024x768", |
| "preset": "smoke", |
| "vars": { "b": 64, "s": 1024, "d": 768 }, |
| "attrs": { "axes": [1], "keepdims": 0 }, |
| "inputs": { "x": { "shape": [64, 1024, 768], "dtype": "float32", "dist": "normal", "seed": 423, "scale": 0.2 } }, |
| "outputs": { "y": { "shape": [64, 768], "dtype": "float32" } }, |
| "bench": { "metrics": [{ "type": "bandwidth", "value": "args.b * args.s * args.d * 4" }] } |
| }, |
| { |
| "name": "reducel2-fullreduce-serial-numel-not-mul4-r3", |
| "preset": "stress", |
| "attrs": { "keepdims": 0 }, |
| "inputs": { "x": { "shape": [1001, 1001, 1], "dtype": "float32", "dist": "normal", "seed": 401, "scale": 1 } }, |
| "outputs": { "y": { "shape": [], "dtype": "float32" } }, |
| "bench": { "metrics": [{ "type": "bandwidth", "value": "1001 * 1001 * 1 * 4" }] } |
| }, |
| { |
| "name": "reducel2-int32-lastaxis-serial-4096x1024", |
| "preset": "stress", |
| "attrs": { "axes": [1], "keepdims": 0 }, |
| "inputs": { |
| "x": { "shape": [4096, 1024], "dtype": "int32", "dist": "randint", "seed": 402, "min": -50, "max": 50 } |
| }, |
| "outputs": { "y": { "shape": [4096], "dtype": "int32" } }, |
| "bench": { "metrics": [{ "type": "bandwidth", "value": "4096 * 1024 * 4" }] } |
| }, |
| { |
| "name": "reducel2-rank3-spatial-axes12-f32-128x256x256-pathology", |
| "preset": "stress", |
| "provenance": { |
| "source": "authored for branch coverage", |
| "notes": "Rank-3 multi-axis reduction with 128 output lanes, each serially scanning a 256x256 plane." |
| }, |
| "attrs": { "axes": [1, 2], "keepdims": 1 }, |
| "inputs": { "x": { "shape": [128, 256, 256], "dtype": "float32", "dist": "normal", "seed": 305, "scale": 0.2 } }, |
| "outputs": { "y": { "shape": [128, 1, 1], "dtype": "float32", "dist": "empty" } }, |
| "bench": { "primary": true, "metrics": [{ "type": "bandwidth", "value": "128 * 256 * 256 * 4" }] } |
| }, |
| { |
| "name": "reducel2-spatial-axes23-f32-2x64x256x256-pathology", |
| "preset": "stress", |
| "provenance": { |
| "source": "authored for branch coverage", |
| "notes": "Rank-4 multi-axis reduction with 128 output lanes, each serially scanning a 256x256 plane." |
| }, |
| "attrs": { "axes": [2, 3], "keepdims": 1 }, |
| "inputs": { "x": { "shape": [2, 64, 256, 256], "dtype": "float32", "dist": "normal", "seed": 304, "scale": 0.2 } }, |
| "outputs": { "y": { "shape": [2, 64, 1, 1], "dtype": "float32", "dist": "empty" } }, |
| "bench": { "primary": true, "metrics": [{ "type": "bandwidth", "value": "2 * 64 * 256 * 256 * 4" }] } |
| }, |
| { |
| "name": "reducel2-axis0-f32-131072x15-narrow-splitk-boundary", |
| "preset": "stress", |
| "vars": { "rows": 131072, "cols": 15 }, |
| "attrs": { "axes": [0], "keepdims": 0 }, |
| "inputs": { "x": { "shape": [131072, 15], "dtype": "float32", "dist": "normal", "seed": 403, "scale": 0.1 } }, |
| "outputs": { "y": { "shape": [15], "dtype": "float32", "dist": "empty" } }, |
| "bench": { "primary": true, "metrics": [{ "type": "bandwidth", "value": "args.rows * args.cols * 4" }] } |
| } |
| ], |
| "tunableSpace": { "WORKGROUP_SIZE": [64, 128, 256] } |
| } |
|
|