| { |
| "op": "ai.onnx.ReduceSum", |
| "tunableSpace": { "WORKGROUP_SIZE": [64, 128, 256] }, |
| "cases": [ |
| { |
| "name": "reduce-sum-axis1-f32-1024x512", |
| "preset": "smoke", |
| "vars": { "rows": 1024, "cols": 512 }, |
| "attrs": { "axes": [1], "keepdims": 0 }, |
| "inputs": { "x": { "shape": [1024, 512], "dtype": "float32", "dist": "normal", "seed": 117, "scale": 0.2 } }, |
| "outputs": { "y": { "shape": [1024], "dtype": "float32" } }, |
| "bench": { "primary": true, "metrics": [{ "type": "bandwidth", "value": "args.rows * args.cols * 4" }] } |
| }, |
| { |
| "name": "reduce-sum-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": "reducesum-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": "reducesum-lastaxis-f16-4096x4096", |
| "preset": "smoke", |
| "vars": { "rows": 4096, "cols": 4096 }, |
| "attrs": { "axes": [1], "keepdims": 0 }, |
| "inputs": { "x": { "shape": [4096, 4096], "dtype": "float16", "dist": "normal", "seed": 117, "scale": 0.2 } }, |
| "outputs": { "y": { "shape": [4096], "dtype": "float16" } }, |
| "bench": { "primary": true, "metrics": [{ "type": "bandwidth", "value": "args.rows * args.cols * 2" }] } |
| }, |
| { |
| "name": "rsum-r3-last-64x64x4096", |
| "preset": "smoke", |
| "vars": { "rows": 4096, "cols": 4096 }, |
| "attrs": { "axes": [2], "keepdims": 0 }, |
| "inputs": { "x": { "shape": [64, 64, 4096], "dtype": "float32", "dist": "normal", "seed": 51, "scale": 0.2 } }, |
| "outputs": { "y": { "shape": [64, 64], "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", "seed": 211, "scale": 0.2 } }, |
| "outputs": { "y": { "shape": [512], "dtype": "float32" } }, |
| "bench": { "primary": true, "metrics": [{ "type": "bandwidth", "value": "args.rows * args.cols * 4" }] } |
| }, |
| { |
| "name": "axis0-large-f16-65536x512", |
| "preset": "smoke", |
| "vars": { "rows": 65536, "cols": 512 }, |
| "attrs": { "axes": [0], "keepdims": 0 }, |
| "inputs": { "x": { "shape": [65536, 512], "dtype": "float16", "dist": "normal", "seed": 211, "scale": 0.2 } }, |
| "outputs": { "y": { "shape": [512], "dtype": "float16" } }, |
| "bench": { "primary": true, "metrics": [{ "type": "bandwidth", "value": "args.rows * args.cols * 2" }] } |
| }, |
| { |
| "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", "seed": 212, "scale": 0.2 } }, |
| "outputs": { "y": { "shape": [1024], "dtype": "float32" } }, |
| "bench": { "primary": true, "metrics": [{ "type": "bandwidth", "value": "args.rows * args.cols * 4" }] } |
| }, |
| { |
| "name": "reducesum-lastaxis-f32-4096x4095-unaligned", |
| "preset": "smoke", |
| "vars": { "rows": 4096, "cols": 4095 }, |
| "attrs": { "axes": [1], "keepdims": 0 }, |
| "inputs": { "x": { "shape": [4096, 4095], "dtype": "float32", "dist": "normal", "seed": 117, "scale": 0.2 } }, |
| "outputs": { "y": { "shape": [4096], "dtype": "float32" } }, |
| "bench": { "metrics": [{ "type": "bandwidth", "value": "args.rows * args.cols * 4" }] } |
| }, |
| { |
| "name": "reducesum-fullreduce-r3-256x256x256-keepdims", |
| "preset": "smoke", |
| "vars": { "rows": 65536, "cols": 256 }, |
| "attrs": { "keepdims": 1 }, |
| "inputs": { "x": { "shape": [256, 256, 256], "dtype": "float32", "dist": "normal", "seed": 311, "scale": 0.05 } }, |
| "outputs": { "y": { "shape": [1, 1, 1], "dtype": "float32" } }, |
| "bench": { "metrics": [{ "type": "bandwidth", "value": "args.rows * args.cols * 4" }] } |
| }, |
| { |
| "name": "reducesum-1d-16M-to-scalar", |
| "preset": "smoke", |
| "vars": { "rows": 16777216, "cols": 1 }, |
| "attrs": { "axes": [0], "keepdims": 0 }, |
| "inputs": { "x": { "shape": [16777216], "dtype": "float32", "dist": "normal", "seed": 312, "scale": 0.01 } }, |
| "outputs": { "y": { "shape": [], "dtype": "float32" } }, |
| "bench": { "metrics": [{ "type": "bandwidth", "value": "args.rows * args.cols * 4" }] } |
| }, |
| { |
| "name": "reducesum-1d-16M-to-scalar-f16", |
| "preset": "smoke", |
| "vars": { "rows": 16777216, "cols": 1 }, |
| "attrs": { "axes": [0], "keepdims": 0 }, |
| "inputs": { "x": { "shape": [16777216], "dtype": "float16", "dist": "normal", "seed": 312, "scale": 0.01 } }, |
| "outputs": { "y": { "shape": [], "dtype": "float16" } }, |
| "bench": { "metrics": [{ "type": "bandwidth", "value": "args.rows * args.cols * 2" }] } |
| }, |
| { |
| "name": "reducesum-int32-fullreduce-r3-40x40x40-single-lane", |
| "preset": "stress", |
| "vars": { "rows": 64000, "cols": 1 }, |
| "attrs": { "keepdims": 0 }, |
| "inputs": { |
| "x": { "shape": [40, 40, 40], "dtype": "int32", "dist": "randint", "seed": 733, "min": -8, "max": 8 } |
| }, |
| "outputs": { "y": { "shape": [], "dtype": "int32", "dist": "empty" } }, |
| "bench": { "metrics": [{ "type": "bandwidth", "value": "args.rows * args.cols * 4" }] } |
| }, |
| { |
| "name": "reducesum-int32-axis0-tall-narrow-32768x8-serial-cols", |
| "preset": "stress", |
| "vars": { "rows": 32768, "cols": 8 }, |
| "attrs": { "axes": [0], "keepdims": 0 }, |
| "inputs": { "x": { "shape": [32768, 8], "dtype": "int32", "dist": "randint", "seed": 811, "min": -8, "max": 8 } }, |
| "outputs": { "y": { "shape": [8], "dtype": "int32", "dist": "empty" } }, |
| "bench": { "metrics": [{ "type": "bandwidth", "value": "args.rows * args.cols * 4" }] } |
| }, |
| { |
| "name": "reducesum-int32-lastaxis-fewrows-8x32768-serial-per-row", |
| "preset": "stress", |
| "vars": { "rows": 8, "cols": 32768 }, |
| "attrs": { "axes": [1], "keepdims": 0 }, |
| "inputs": { "x": { "shape": [8, 32768], "dtype": "int32", "dist": "randint", "seed": 907, "min": -8, "max": 8 } }, |
| "outputs": { "y": { "shape": [8], "dtype": "int32", "dist": "empty" } }, |
| "bench": { "metrics": [{ "type": "bandwidth", "value": "args.rows * args.cols * 4" }] } |
| }, |
| { |
| "name": "reducesum-rank3-spatial-axes12-f32-128x256x256-pathology", |
| "preset": "stress", |
| "provenance": { |
| "source": "authored for branch coverage", |
| "notes": "Rank-3 multi-axis f32 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": 909, "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": "reducesum-rank3-spatial-axes12-f16-128x256x256-pathology", |
| "preset": "stress", |
| "provenance": { |
| "source": "authored for branch coverage", |
| "notes": "Rank-3 multi-axis f16 reduction with 128 output lanes, each serially scanning a 256x256 plane." |
| }, |
| "attrs": { "axes": [1, 2], "keepdims": 1 }, |
| "inputs": { "x": { "shape": [128, 256, 256], "dtype": "float16", "dist": "normal", "seed": 909, "scale": 0.2 } }, |
| "outputs": { "y": { "shape": [128, 1, 1], "dtype": "float16", "dist": "empty" } }, |
| "bench": { "primary": true, "metrics": [{ "type": "bandwidth", "value": "128 * 256 * 256 * 2" }] } |
| }, |
| { |
| "name": "reducesum-rank4-spatial-axes23-f32-2x64x256x256-pathology", |
| "preset": "stress", |
| "provenance": { |
| "source": "authored for branch coverage", |
| "notes": "Rank-4 multi-axis f32 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": 910, "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": "reducesum-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": 908, "scale": 0.2 } }, |
| "outputs": { "y": { "shape": [15], "dtype": "float32", "dist": "empty" } }, |
| "bench": { "primary": true, "metrics": [{ "type": "bandwidth", "value": "args.rows * args.cols * 4" }] } |
| }, |
| { |
| "name": "reducesum-rank3-axis1-starvation-1x65536x8", |
| "preset": "smoke", |
| "vars": { "numel": 524288 }, |
| "attrs": { "axes": [1], "keepdims": 0 }, |
| "inputs": { "x": { "shape": [1, 65536, 8], "dtype": "float32", "dist": "normal", "seed": 118, "scale": 0.2 } }, |
| "outputs": { "y": { "shape": [1, 8], "dtype": "float32" } }, |
| "bench": { "metrics": [{ "type": "bandwidth", "value": "args.numel * 4" }] } |
| }, |
| { |
| "name": "reducesum-rank3-axis1-large-8x65536x64", |
| "preset": "smoke", |
| "vars": { "numel": 33554432 }, |
| "attrs": { "axes": [1], "keepdims": 0 }, |
| "inputs": { "x": { "shape": [8, 65536, 64], "dtype": "float32", "dist": "normal", "seed": 118, "scale": 0.2 } }, |
| "outputs": { "y": { "shape": [8, 64], "dtype": "float32" } }, |
| "bench": { "metrics": [{ "type": "bandwidth", "value": "args.numel * 4" }] } |
| } |
| ] |
| } |
|
|