File size: 6,117 Bytes
3ad0db8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
c61b7e6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3ad0db8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
c61b7e6
3ad0db8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
{
  "cases": [
    {
      "name": "1024x1024_axis1",
      "attrs": { "axes": [1], "keepdims": 0 },
      "inputs": { "x": { "dtype": "float32", "shape": [1024, 1024] } },
      "outputs": { "y": { "dtype": "float32", "shape": [1024] } }
    },
    {
      "name": "reducelogsumexp-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": 811, "scale": 0.5 } },
      "outputs": { "y": { "shape": [1, 1, 1], "dtype": "float32" } },
      "bench": {
        "metrics": [
          { "type": "bandwidth", "name": "stable max-plus-exp traffic", "value": "2 * args.rows * args.cols * 4" }
        ]
      }
    },
    {
      "name": "reducelogsumexp-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", "name": "stable max-plus-exp traffic", "value": "2 * args.rows * args.cols * 4" }
        ]
      }
    },
    {
      "name": "reducelogsumexp-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", "name": "stable max-plus-exp traffic", "value": "2 * 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", "name": "stable max-plus-exp traffic", "value": "2 * 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", "name": "stable max-plus-exp traffic", "value": "2 * args.rows * args.cols * 4" }
        ]
      }
    },
    {
      "name": "axis0-crossover-32768x512",
      "preset": "smoke",
      "vars": { "rows": 32768, "cols": 512 },
      "attrs": { "axes": [0], "keepdims": 0 },
      "inputs": { "x": { "shape": [32768, 512], "dtype": "float32", "dist": "normal", "scale": 0.2, "seed": 313 } },
      "outputs": { "y": { "shape": [512], "dtype": "float32" } },
      "bench": {
        "metrics": [
          { "type": "bandwidth", "name": "stable max-plus-exp traffic", "value": "2 * args.rows * args.cols * 4" }
        ]
      }
    },
    {
      "name": "axis0-crossover-32768x1024",
      "preset": "smoke",
      "vars": { "rows": 32768, "cols": 1024 },
      "attrs": { "axes": [0], "keepdims": 0 },
      "inputs": { "x": { "shape": [32768, 1024], "dtype": "float32", "dist": "normal", "scale": 0.2, "seed": 314 } },
      "outputs": { "y": { "shape": [1024], "dtype": "float32" } },
      "bench": {
        "metrics": [
          { "type": "bandwidth", "name": "stable max-plus-exp traffic", "value": "2 * args.rows * args.cols * 4" }
        ]
      }
    },
    {
      "name": "fullreduce-single-lane-r3-101x101x101-numel-not-mult4",
      "preset": "stress",
      "vars": { "numel": 1030301 },
      "attrs": { "keepdims": 1 },
      "inputs": { "x": { "shape": [101, 101, 101], "dtype": "float32", "dist": "normal", "seed": 733, "scale": 0.3 } },
      "outputs": { "y": { "shape": [1, 1, 1], "dtype": "float32", "dist": "empty" } },
      "bench": {
        "metrics": [{ "type": "bandwidth", "name": "stable max-plus-exp traffic", "value": "2 * numel(shapes.x) * 4" }]
      }
    },
    {
      "name": "axis0-few-lane-starvation-131072x8",
      "preset": "stress",
      "vars": { "rows": 131072, "cols": 8 },
      "attrs": { "axes": [0], "keepdims": 0 },
      "inputs": { "x": { "shape": [131072, 8], "dtype": "float32", "dist": "normal", "seed": 941, "scale": 0.2 } },
      "outputs": { "y": { "shape": [8], "dtype": "float32", "dist": "empty" } },
      "bench": {
        "primary": true,
        "metrics": [
          { "type": "bandwidth", "name": "stable max-plus-exp traffic", "value": "2 * args.rows * args.cols * 4" }
        ]
      }
    },
    {
      "name": "reducelogsumexp-spatial-axes12-f32-16x256x256-low-lane",
      "preset": "stress",
      "provenance": {
        "source": "synthetic",
        "notes": "Low-lane rank-3 contiguous-suffix reduction that verifies the vec4 subgroup reducer and no-subgroup workgroup-tree fallback."
      },
      "vars": { "batch": 16, "height": 256, "width": 256 },
      "attrs": { "axes": [1, 2], "keepdims": 1 },
      "inputs": { "x": { "shape": [16, 256, 256], "dtype": "float32", "dist": "normal", "seed": 910, "scale": 0.2 } },
      "outputs": { "y": { "shape": [16, 1, 1], "dtype": "float32", "dist": "empty" } },
      "bench": {
        "metrics": [
          {
            "type": "bandwidth",
            "name": "stable max-plus-exp traffic",
            "value": "2 * args.batch * args.height * args.width * 4"
          }
        ]
      }
    }
  ],
  "tunableSpace": { "WORKGROUP_SIZE": [64, 128, 256] }
}