File size: 1,994 Bytes
5d7a0cf
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ac35414
 
 
 
 
 
 
 
 
 
 
 
 
 
5d7a0cf
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
{
  "tunableSpace": { "WORKGROUP_SIZE": [64, 128, 256] },
  "cases": [
    {
      "name": "and-bool-4m",
      "preset": "smoke",
      "vars": { "dtype": "bool", "count": 4194304 },
      "inputs": {
        "a": { "dtype": "bool", "shape": [4194304], "dist": "linearMod", "mod": 2, "step": 1, "offset": 0 },
        "b": { "dtype": "bool", "shape": [4194304], "dist": "linearMod", "mod": 2, "step": 1, "offset": 1 }
      },
      "outputs": { "c": { "dtype": "bool", "shape": [4194304] } },
      "bench": {
        "primary": true,
        "metrics": [{ "type": "bandwidth", "value": "args.count * dtypeBytes(args.dtype) * 3" }]
      }
    },
    {
      "name": "and-bool-8m-dram-bound",
      "preset": "stress",
      "vars": { "dtype": "bool", "count": 8388608 },
      "inputs": {
        "a": { "dtype": "bool", "shape": [8388608], "dist": "linearMod", "mod": 2, "step": 1, "offset": 0 },
        "b": { "dtype": "bool", "shape": [8388608], "dist": "linearMod", "mod": 2, "step": 1, "offset": 1 }
      },
      "outputs": { "c": { "dtype": "bool", "shape": [8388608] } },
      "bench": { "metrics": [{ "type": "bandwidth", "value": "args.count * dtypeBytes(args.dtype) * 3" }] },
      "provenance": {
        "notes": "A 32 MB bool output (stored as u32), above the 16 MB threshold at which the logical kernel drops from four groups per lane to one."
      }
    },
    {
      "name": "and-broadcast-4m",
      "preset": "stress",
      "vars": { "rows": 128, "cols": 32768, "count": 4194304 },
      "inputs": {
        "a": { "dtype": "bool", "shape": [1, 32768], "dist": "linearMod", "mod": 2, "step": 1, "offset": 0 },
        "b": { "dtype": "bool", "shape": [128, 1], "dist": "linearMod", "mod": 2, "step": 1, "offset": 1 }
      },
      "outputs": { "c": { "dtype": "bool", "shape": [128, 32768], "dist": "empty" } },
      "bench": {
        "metrics": [{ "type": "bandwidth", "value": "(dim(shapes.c,0) + dim(shapes.c,1) + numel(shapes.c)) * 4" }]
      }
    }
  ]
}