File size: 2,385 Bytes
dbbc318
 
 
 
 
 
 
 
 
 
 
 
57ca359
 
 
 
 
 
 
 
de85309
57ca359
dbbc318
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
{
  "tunableSpace": { "WORKGROUP_SIZE": [64, 128, 256] },
  "cases": [
    {
      "name": "1m_f32",
      "preset": "smoke",
      "inputs": { "a": { "dtype": "float32", "shape": [1048576] }, "b": { "dtype": "float32", "shape": [1048576] } },
      "outputs": { "c": { "dtype": "bool", "shape": [1048576] } },
      "bench": {
        "metrics": [{ "type": "bandwidth", "value": "(numel(shapes.a) + numel(shapes.b) + numel(shapes.c)) * 4" }]
      }
    },
    {
      "name": "8m_f32_dram_bound",
      "preset": "stress",
      "inputs": { "a": { "dtype": "float32", "shape": [8388608] }, "b": { "dtype": "float32", "shape": [8388608] } },
      "outputs": { "c": { "dtype": "bool", "shape": [8388608] } },
      "bench": {
        "metrics": [{ "type": "bandwidth", "value": "(numel(shapes.a) + numel(shapes.b) + numel(shapes.c)) * 4" }]
      },
      "provenance": { "notes": "Measures float32 equality comparison over a 32 MB boolean output stored as uint32." }
    },
    {
      "name": "4m-1_f32_same_shape_odd",
      "inputs": { "a": { "dtype": "float32", "shape": [4194303] }, "b": { "dtype": "float32", "shape": [4194303] } },
      "outputs": { "c": { "dtype": "bool", "shape": [4194303] } },
      "bench": {
        "metrics": [
          { "type": "bandwidth", "value": "(numel(shapes.a) + numel(shapes.b) + numel(shapes.c)) * 4", "name": "GB/s" }
        ]
      }
    },
    {
      "name": "1m_f32_scalar_rhs_broadcast",
      "inputs": { "a": { "dtype": "float32", "shape": [1048576] }, "b": { "dtype": "float32", "shape": [1] } },
      "outputs": { "c": { "dtype": "bool", "shape": [1048576] } },
      "bench": {
        "metrics": [
          { "type": "bandwidth", "value": "(numel(shapes.a) + numel(shapes.b) + numel(shapes.c)) * 4", "name": "GB/s" }
        ]
      }
    },
    {
      "name": "1m_f32_broadcast_scalar_odd_last_dim",
      "preset": "edge",
      "inputs": {
        "a": { "dtype": "float32", "shape": [1024, 1025], "dist": "normal", "seed": 1, "scale": 2 },
        "b": { "dtype": "float32", "shape": [1025], "dist": "normal", "seed": 2, "scale": 2 }
      },
      "outputs": { "c": { "dtype": "bool", "shape": [1024, 1025], "dist": "empty" } },
      "bench": {
        "metrics": [
          { "type": "bandwidth", "value": "(numel(shapes.a) + numel(shapes.b) + numel(shapes.c)) * 4", "name": "GB/s" }
        ]
      }
    }
  ]
}