File size: 3,376 Bytes
ee8ac59
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
{
  "op": "ai.onnx.GlobalMaxPool",
  "cases": [
    {
      "name": "nchw_1x2048x7x7",
      "inputs": { "x": { "dtype": "float32", "shape": [1, 2048, 7, 7] } },
      "outputs": { "y": { "dtype": "float32", "shape": [1, 2048, 1, 1] } }
    },
    {
      "name": "nchw_16x512x64x64_wg_parallel",
      "preset": "smoke",
      "vars": { "batch": 16, "channels": 512, "spatial": 4096 },
      "inputs": { "x": { "dtype": "float32", "shape": [16, 512, 64, 64], "dist": "normal", "seed": 202 } },
      "outputs": { "y": { "dtype": "float32", "shape": [16, 512, 1, 1], "dist": "empty" } },
      "bench": {
        "primary": true,
        "metrics": [{ "type": "bandwidth", "value": "args.batch * args.channels * args.spatial * 4" }]
      }
    },
    {
      "name": "nchw_f16_8x256x32x32_wg_parallel",
      "preset": "smoke",
      "vars": { "dtype": "float16", "batch": 8, "channels": 256, "spatial": 1024 },
      "inputs": { "x": { "dtype": "float16", "shape": [8, 256, 32, 32], "dist": "normal", "seed": 207 } },
      "outputs": { "y": { "dtype": "float16", "shape": [8, 256, 1, 1], "dist": "empty" } },
      "bench": {
        "metrics": [
          { "type": "bandwidth", "value": "args.batch * args.channels * args.spatial * dtypeBytes(args.dtype)" }
        ]
      }
    },
    {
      "name": "nchw_1x2048x7x7_smallspatial_serial",
      "provenance": {
        "notes": "2048 planes of 49 elements: below the plane-parallel floor, so the scalar serial kernel owns this shape."
      },
      "preset": "edge",
      "vars": { "batch": 1, "channels": 2048, "spatial": 49 },
      "inputs": { "x": { "dtype": "float32", "shape": [1, 2048, 7, 7], "dist": "normal", "seed": 501 } },
      "outputs": { "y": { "dtype": "float32", "shape": [1, 2048, 1, 1], "dist": "empty" } },
      "bench": {
        "primary": true,
        "metrics": [{ "type": "bandwidth", "value": "args.batch * args.channels * args.spatial * 4" }]
      }
    },
    {
      "name": "nchw_1x8x512x512_lowoccupancy_8planes",
      "preset": "stress",
      "provenance": {
        "source": "authored for variant coverage",
        "notes": "Low-occupancy eight-plane global reduction that verifies the cooperative plane route; legacy serial paths remain reserved for shapes outside its feature-tier domain."
      },
      "vars": { "batch": 1, "channels": 8, "spatial": 262144 },
      "inputs": { "x": { "dtype": "float32", "shape": [1, 8, 512, 512], "dist": "normal", "seed": 502 } },
      "outputs": { "y": { "dtype": "float32", "shape": [1, 8, 1, 1], "dist": "empty" } },
      "bench": { "metrics": [{ "type": "bandwidth", "value": "args.batch * args.channels * args.spatial * 4" }] }
    },
    {
      "name": "nchw_1x1024x14x14_portable_gate_window",
      "provenance": {
        "notes": "Spatial 196 sits in the window the portable plane-parallel gate excludes (64 with subgroups, 1024 without)."
      },
      "preset": "smoke",
      "vars": { "batch": 1, "channels": 1024, "spatial": 196 },
      "inputs": { "x": { "dtype": "float32", "shape": [1, 1024, 14, 14], "dist": "normal", "seed": 503 } },
      "outputs": { "y": { "dtype": "float32", "shape": [1, 1024, 1, 1], "dist": "empty" } },
      "bench": { "metrics": [{ "type": "bandwidth", "value": "args.batch * args.channels * args.spatial * 4" }] }
    }
  ],
  "tunableSpace": { "WORKGROUP_SIZE": [64, 128, 256] }
}