File size: 3,111 Bytes
e152cdb
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1eadc80
b7f95e2
e152cdb
 
 
 
 
 
 
 
 
 
 
 
 
 
1eadc80
 
e152cdb
 
 
 
 
 
 
 
 
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
{
  "tunableSpace": { "WORKGROUP_SIZE": [64, 128, 256] },
  "cases": [
    {
      "name": "1m_f32",
      "inputs": {
        "input": { "dtype": "float32", "shape": [1048576] },
        "min": { "dtype": "float32", "shape": [], "dist": "constant", "value": -1 },
        "max": { "dtype": "float32", "shape": [], "dist": "constant", "value": 1 }
      },
      "outputs": { "output": { "dtype": "float32", "shape": [1048576] } }
    },
    {
      "name": "clip-f32-8m",
      "preset": "smoke",
      "vars": { "dtype": "float32", "count": 8388608 },
      "inputs": {
        "input": { "shape": [8388608], "dtype": "float32", "seed": 7025, "dist": "normal", "scale": 2 },
        "min": { "dtype": "float32", "shape": [], "dist": "constant", "value": -1 },
        "max": { "dtype": "float32", "shape": [], "dist": "constant", "value": 1 }
      },
      "outputs": { "output": { "shape": [8388608], "dtype": "float32" } },
      "bench": { "metrics": [{ "type": "bandwidth", "value": "args.count * dtypeBytes(args.dtype) * 2" }] }
    },
    {
      "name": "clip-f16-8m",
      "preset": "smoke",
      "vars": { "dtype": "float16", "count": 8388608 },
      "inputs": {
        "input": { "shape": [8388608], "dtype": "float16", "seed": 7026, "dist": "normal", "scale": 2 },
        "min": { "dtype": "float16", "shape": [], "dist": "constant", "value": -1 },
        "max": { "dtype": "float16", "shape": [], "dist": "constant", "value": 1 }
      },
      "outputs": { "output": { "shape": [8388608], "dtype": "float16" } },
      "bench": { "metrics": [{ "type": "bandwidth", "value": "args.count * dtypeBytes(args.dtype) * 2" }] }
    },
    {
      "name": "clip-f32-input-bounds-large-scalar-path",
      "provenance": {
        "source": "local fixture",
        "notes": "An 8,388,608-element float32 input divisible by four with both input bounds present."
      },
      "preset": "stress",
      "vars": { "dtype": "float32", "count": 8388608 },
      "inputs": {
        "input": { "shape": [8388608], "dtype": "float32", "dist": "normal", "seed": 7101, "scale": 2 },
        "min": { "shape": [], "dtype": "float32", "dist": "constant", "value": -1 },
        "max": { "shape": [], "dtype": "float32", "dist": "constant", "value": 1 }
      },
      "outputs": { "output": { "shape": [8388608], "dtype": "float32", "dist": "empty" } },
      "bench": { "metrics": [{ "type": "bandwidth", "value": "args.count * dtypeBytes(args.dtype) * 2" }] }
    },
    {
      "name": "clip-f16-8m-default-bounds-vec4",
      "provenance": {
        "source": "local fixture",
        "notes": "Clip without min or max inputs measures the vec4 unary path independently of scalar input-bound handling."
      },
      "preset": "smoke",
      "vars": { "dtype": "float16", "count": 8388608 },
      "inputs": { "input": { "shape": [8388608], "dtype": "float16", "seed": 7026, "dist": "normal", "scale": 2 } },
      "outputs": { "output": { "shape": [8388608], "dtype": "float16" } },
      "bench": { "metrics": [{ "type": "bandwidth", "value": "args.count * dtypeBytes(args.dtype) * 2" }] }
    }
  ]
}