sbryngelson commited on
Commit
48aae68
·
verified ·
1 Parent(s): 4177033

ANE roofline + numeric-cliff data (4 community machines)

Browse files
README.md ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ pretty_name: ANE Rooflines
4
+ tags:
5
+ - benchmark
6
+ - apple-neural-engine
7
+ - apple-silicon
8
+ - roofline
9
+ - hardware
10
+ size_categories:
11
+ - n<1K
12
+ configs:
13
+ - config_name: default
14
+ data_files: rooflines.csv
15
+ ---
16
+
17
+ # ANE Rooflines
18
+
19
+ Cross-Apple-Silicon performance and fp16-correctness measurements for the Apple
20
+ Neural Engine (ANE), collected with [ANEForge](https://github.com/sbryngelson/ANEForge).
21
+ Each row is one machine (grouped by hardware hash; identical silicon in different
22
+ chassis stays distinct by model identifier).
23
+
24
+ These are **community-contributed submissions** mirrored from the public
25
+ [`bench/results/rooflines/`](https://github.com/sbryngelson/ANEForge/tree/main/bench/results/rooflines)
26
+ in the repo. The full per-size sweeps live in `raw/`; `rooflines.csv` is the flattened
27
+ headline table; `ROOFLINES.md` is the human-readable version.
28
+
29
+ ```python
30
+ from datasets import load_dataset
31
+ ds = load_dataset("aneforge/ane-rooflines") # the flattened headline table
32
+ ```
33
+
34
+ ## Columns
35
+
36
+ | column | meaning |
37
+ | --- | --- |
38
+ | `chip`, `model_identifier`, `hardware_hash` | machine identity |
39
+ | `p_cores`, `e_cores`, `gpu_cores`, `ram_gb` | CPU perf/efficiency cores, GPU cores, unified memory |
40
+ | `macos_version`, `macos_build`, `aneforge_version` | software the run was recorded under |
41
+ | `power` | `ac`, `ac (high-power)`, or `battery` at run time |
42
+ | `contributor` | GitHub handle who submitted the run |
43
+ | `peak_fp16_gemm_tflops` | **headline compute** peak (measured on every machine) |
44
+ | `bandwidth_gbps`, `ridge_flop_per_byte` | streaming bandwidth and the ridge point |
45
+ | `peak_perf_per_w_gflops` | peak GFLOP/s per watt |
46
+ | `decode_tok_s` | single-stream LLM decode throughput |
47
+ | `matmul_inf_cliff`, `slice_x16_cliff`, `reduce_exact_sum` | fp16 correctness cliffs (magnitudes where the engine silently returns a wrong answer) |
48
+ | `timestamp_utc` | when the run was recorded |
49
+
50
+ ## Reading notes
51
+
52
+ - **`peak_fp16_gemm_tflops` is the most robust cross-chip number.** Bandwidth/ridge come
53
+ from a streaming sweep and are more dispatch-overhead-sensitive on smaller/older parts,
54
+ so treat them as indicative.
55
+ - **`decode_tok_s` currently reports only on A16+ (e.g. M5).** The decode benchmark's
56
+ 32000-vocab head exceeded the 16384 max matmul dimension on the A13-A15 families; a
57
+ tiled head fixes this and the older machines re-run to populate it. Blank means the run
58
+ predates the tiled head, not that the chip cannot decode.
59
+ - **Correctness cliffs are magnitude thresholds, independent of clock**, so they are valid
60
+ even on battery. `matmul` ~ `fp16_max/2` (~32752); `slice` clamps `|value|>4094` on
61
+ pre-A16 parts and is exact on A16+; `reduce` is bit-exact for integer sums up to 2048.
62
+
63
+ ## Contribute your chip
64
+
65
+ Run the suite on any Apple Silicon Mac and open a PR:
66
+
67
+ ```sh
68
+ PYTHONPATH=. python3 bench/roofline_suite.py --contributor <your-gh-handle>
69
+ ```
70
+
71
+ See the [roofline drive](https://github.com/sbryngelson/ANEForge/issues/137). More chip
72
+ generations sharpen the per-family map.
73
+
74
+ ## Cite
75
+
76
+ > Bryngelson, S. H. *ANEForge: Python for direct computation on the Apple Neural Engine.* arXiv:2606.17090 (2026).
ROOFLINES.md ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!-- generated by bench/aggregate_rooflines.py; do not edit by hand -->
2
+ # ANE roofline results
3
+
4
+ Accumulated across **4 machine(s)**, 4 submission(s). Each row is a distinct machine (grouped by hardware hash; identical silicon in different chassis stays separate by model identifier).
5
+
6
+ Add yours: `PYTHONPATH=. python3 bench/roofline_suite.py --contributor <your-gh-handle>`, commit the JSON it writes under `bench/results/rooflines/`, regenerate this file with `python3 bench/aggregate_rooflines.py`, and open a PR. See [`rooflines/README.md`](rooflines/README.md).
7
+
8
+ Thanks to [@axiom-of-choice](https://github.com/axiom-of-choice), [@diegobauavi](https://github.com/diegobauavi), [@sbryngelson](https://github.com/sbryngelson) for contributing datapoints.
9
+
10
+ ## Machines
11
+
12
+ | Chip | Model | CPU (P+E) | GPU | Memory | macOS | Power | Code (main merge-base) | By | Runs |
13
+ | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
14
+ | Apple M1 | MacBookPro17,1 | 4+4 | 8 | 16 GB unified | 26.5.2 (25F84) | ac | 263e02ff1898 | [@diegobauavi](https://github.com/diegobauavi) | 1 |
15
+ | Apple M1 Max | MacBookPro18,2 | 8+2 | 32 | 32 GB unified | 26.5.1 (25F80) | ac (high-power) | d6de5315b059 | [@sbryngelson](https://github.com/sbryngelson) | 1 |
16
+ | Apple M2 Pro | Mac14,12 | 6+4 | 16 | 32 GB unified | 26.5.2 (25F84) | ac | 263e02ff1898 (+1) | [@axiom-of-choice](https://github.com/axiom-of-choice) | 1 |
17
+ | Apple M5 Pro | Mac17,8 | 6+12 | 20 | 48 GB unified | 26.5.1 (25F80) | ac (high-power) | 55a1c6afdad3 (dirty) | [@sbryngelson](https://github.com/sbryngelson) | 1 |
18
+
19
+ ## Numeric cliffs (correctness rooflines)
20
+
21
+ Where fp16 math on the engine silently goes wrong (issue #115, docs/cross-chip.md). These are magnitude thresholds, independent of clock, so they are valid even on battery.
22
+
23
+ | Chip | Model | matmul inf-cliff | slice-x16 (Q.4 crop-DMA) | reduce exact-sum |
24
+ | --- | --- | --- | --- | --- |
25
+ | Apple M1 | MacBookPro17,1 | ~32759 | clamp @ 4094 | <= 2048 |
26
+ | Apple M1 Max | MacBookPro18,2 | ~32759 | clamp @ 4094 | <= 2048 |
27
+ | Apple M2 Pro | Mac14,12 | ~32759 | clamp @ 4094 | <= 2048 |
28
+ | Apple M5 Pro | Mac17,8 | ~32759 | exact (no clamp) | <= 2048 |
29
+
30
+ _matmul: output magnitude that flips finite->inf (~fp16_max/2). slice: the pre-A16 crop-DMA clamps |value|>4094; 'exact' means the clamp is gone (A16/M5). reduce: largest all-exact integer row-sum (fp16 grid coarsens past 2048)._
31
+
32
+ ## Performance rooflines (headline)
33
+
34
+ Peak ANE numbers only; the full per-size sweeps, all-engine comparison, and per-rail watts live in each machine's JSON under `perf_rooflines`. Perf depends on power/thermals, so the state is shown per row.
35
+
36
+ **Peak fp16 GEMM (TF/s)** is the headline compute number -- measured directly on every machine and the most robust cross-chip comparison. Bandwidth/ridge come from the streaming sweep and are more dispatch-overhead-sensitive on smaller/older parts, so read them as indicative. Decode is migrating to a tiled vocab head (#181); see the note under the table.
37
+
38
+ | Chip | Model | Peak fp16 GEMM (TF/s) | Bandwidth (GB/s) | Ridge (FLOP/byte) | Peak perf/W (GF/s/W) | Decode @b1 (tok/s) | Power |
39
+ | --- | --- | --- | --- | --- | --- | --- | --- |
40
+ | Apple M1 | MacBookPro17,1 | 2.7 | 0.86 | 3149 | 442 | n/a | ac |
41
+ | Apple M1 Max | MacBookPro18,2 | 4.6 | 6.9 | 659 | 918 | n/a | ac (high-power) |
42
+ | Apple M2 Pro | Mac14,12 | 3.3 | 0.96 | 3404 | 1379 | n/a | ac |
43
+ | Apple M5 Pro | Mac17,8 | 10.0 | 24 | 418 | 918 | 117 | ac (high-power) |
44
+
45
+ _`n/a` decode = a stale datapoint from before the tiled vocab head (#181). The old untiled 32000-vocab lm_head exceeds the 16384 max matmul dimension on the A13-A15 families, so only A16+ (M5) reported. The tiled head fixes this; the older machines re-run to populate it. Until then, use **Peak fp16 GEMM (TF/s)** as the headline._
46
+
raw/roofline-apple-m1-MacBookPro17_1-dcf5b8a7dd09-b1ab0125.json ADDED
@@ -0,0 +1,2356 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "suite": "roofline",
3
+ "schema_version": 2,
4
+ "contributor": "diegobauavi",
5
+ "machine": {
6
+ "hardware": {
7
+ "model_identifier": "MacBookPro17,1",
8
+ "chip": "Apple M1",
9
+ "physical_cpu": 8,
10
+ "p_cores": 4,
11
+ "e_cores": 4,
12
+ "gpu_cores": 8,
13
+ "memory_architecture": "unified",
14
+ "ram_gb": 16,
15
+ "ram_bytes": 17179869184,
16
+ "ane_rated_tops": 11.0
17
+ },
18
+ "hardware_hash": "dcf5b8a7dd09",
19
+ "environment": {
20
+ "model_name": "MacBook Pro",
21
+ "macos_version": "26.5.2",
22
+ "macos_build": "25F84",
23
+ "aneforge_version": "0.2.1.dev42",
24
+ "aneforge_git": {
25
+ "commit": "263e02ff189874793481252ec0c5ffaef877e114",
26
+ "short": "263e02ff1898",
27
+ "branch": "main",
28
+ "dirty": false,
29
+ "main": {
30
+ "ref": "origin/main",
31
+ "merge_base": "263e02ff189874793481252ec0c5ffaef877e114",
32
+ "merge_base_short": "263e02ff1898",
33
+ "commits_ahead": 0,
34
+ "commits_behind": 0
35
+ }
36
+ },
37
+ "power": {
38
+ "source": "ac",
39
+ "is_laptop": true,
40
+ "energy_mode": {
41
+ "mode": "automatic",
42
+ "raw": 0,
43
+ "key": "lowpowermode"
44
+ },
45
+ "battery_pct": 80,
46
+ "battery_state": "charging"
47
+ },
48
+ "gpu_wired_limit_mb": 0,
49
+ "thermal_state": "nominal",
50
+ "have_sudo": true,
51
+ "timestamp_utc": "2026-08-01T20:23:15Z",
52
+ "sudo_authorized": true
53
+ },
54
+ "run_id": "b1ab0125"
55
+ },
56
+ "numeric_cliffs": {
57
+ "plane": "numeric",
58
+ "matmul_saturation": {
59
+ "metric": "output_magnitude_inf_cliff",
60
+ "expected": 32752,
61
+ "by_K": [
62
+ {
63
+ "cliff": 32758.8,
64
+ "K": 4,
65
+ "expected": 32752
66
+ },
67
+ {
68
+ "cliff": 32758.8,
69
+ "K": 8,
70
+ "expected": 32752
71
+ },
72
+ {
73
+ "cliff": 32758.8,
74
+ "K": 32,
75
+ "expected": 32752
76
+ },
77
+ {
78
+ "cliff": 32758.8,
79
+ "K": 64,
80
+ "expected": 32752
81
+ },
82
+ {
83
+ "cliff": 32758.8,
84
+ "K": 128,
85
+ "expected": 32752
86
+ }
87
+ ]
88
+ },
89
+ "slice_saturation": {
90
+ "metric": "sliced_value_inf_cliff",
91
+ "cliff": 4094.1,
92
+ "expected_pre_a16": 4094,
93
+ "interpretation": "None == exact (A16/M5); a number == the pre-A16 clamp"
94
+ },
95
+ "reduce_exactness": {
96
+ "metric": "last_all_exact_integer_row_sum",
97
+ "expected_boundary": 2048,
98
+ "n_terms": 8,
99
+ "last_all_exact": 2048,
100
+ "first_wrong": {
101
+ "target": 2049,
102
+ "got": 2050.0
103
+ }
104
+ }
105
+ },
106
+ "perf_rooflines": [
107
+ {
108
+ "script": "device_saturation_sweep.py",
109
+ "result_file": "device_saturation_sweep_results.json",
110
+ "returncode": 0,
111
+ "seconds": 403.2,
112
+ "summary": {
113
+ "gemm": [
114
+ {
115
+ "N": 512,
116
+ "gflop": 0.268435456,
117
+ "devices": {
118
+ "CPU": {
119
+ "dtype": "fp32",
120
+ "lat_ms": 0.21712493617087603,
121
+ "gflops": 1236.317950089081,
122
+ "relerr": 4.0286235201554195e-07,
123
+ "power": {
124
+ "active_pkg_W": 7.7645,
125
+ "active_pkg_cv_pct": 2.0410558951082427,
126
+ "iter_ms": 0.22014692194380334,
127
+ "n_pm_samples": 8,
128
+ "ane_active_mW": 0.0,
129
+ "gpu_active_mW": 1.5,
130
+ "cpu_active_mW": 7748.0,
131
+ "flags": [
132
+ "only 8 pm samples - short window, treat as indicative"
133
+ ],
134
+ "gflops_sustained": 1219.3468508659105,
135
+ "perf_per_W": 157.04125840246127
136
+ }
137
+ },
138
+ "GPU": {
139
+ "dtype": "fp16",
140
+ "lat_ms": 0.47774997074157,
141
+ "gflops": 561.87435361499,
142
+ "relerr": 0.0003590542849354668,
143
+ "power": {
144
+ "active_pkg_W": 2.043,
145
+ "active_pkg_cv_pct": 13.31663726654169,
146
+ "iter_ms": 0.6375671178284343,
147
+ "n_pm_samples": 8,
148
+ "ane_active_mW": 0.0,
149
+ "gpu_active_mW": 1579.0,
150
+ "cpu_active_mW": 417.0,
151
+ "flags": [
152
+ "only 8 pm samples - short window, treat as indicative"
153
+ ],
154
+ "gflops_sustained": 421.03089775755103,
155
+ "perf_per_W": 206.08462934779786
156
+ }
157
+ },
158
+ "ANE": {
159
+ "dtype": "fp16",
160
+ "lat_ms": 0.7555420743301511,
161
+ "gflops": 355.2885605186047,
162
+ "relerr": 0.0025780039702379166,
163
+ "power": {
164
+ "active_pkg_W": 3.7325,
165
+ "active_pkg_cv_pct": 4.864132317742506,
166
+ "iter_ms": 0.6579788818674855,
167
+ "n_pm_samples": 8,
168
+ "ane_active_mW": 831.5,
169
+ "gpu_active_mW": 0.0,
170
+ "cpu_active_mW": 2900.0,
171
+ "flags": [
172
+ "only 8 pm samples - short window, treat as indicative"
173
+ ],
174
+ "gflops_sustained": 407.96971361470213,
175
+ "perf_per_W": 109.30199962885523
176
+ }
177
+ }
178
+ }
179
+ },
180
+ {
181
+ "N": 1024,
182
+ "gflop": 2.147483648,
183
+ "devices": {
184
+ "CPU": {
185
+ "dtype": "fp32",
186
+ "lat_ms": 1.8542080651968718,
187
+ "gflops": 1158.167569383315,
188
+ "relerr": 5.722301498664096e-07,
189
+ "power": {
190
+ "active_pkg_W": 8.426,
191
+ "active_pkg_cv_pct": 1.0075982102406504,
192
+ "iter_ms": 1.9999114473853268,
193
+ "n_pm_samples": 8,
194
+ "ane_active_mW": 0.0,
195
+ "gpu_active_mW": 0.0,
196
+ "cpu_active_mW": 8438.5,
197
+ "flags": [
198
+ "only 8 pm samples - short window, treat as indicative"
199
+ ],
200
+ "gflops_sustained": 1073.789367428047,
201
+ "perf_per_W": 127.43761778163386
202
+ }
203
+ },
204
+ "GPU": {
205
+ "dtype": "fp16",
206
+ "lat_ms": 1.50712497998029,
207
+ "gflops": 1424.8875684006543,
208
+ "relerr": 0.00035907137743485093,
209
+ "power": {
210
+ "active_pkg_W": 3.035,
211
+ "active_pkg_cv_pct": 40.33822411255617,
212
+ "iter_ms": 1.7226867562054002,
213
+ "n_pm_samples": 8,
214
+ "ane_active_mW": 0.0,
215
+ "gpu_active_mW": 3181.5,
216
+ "cpu_active_mW": 0.0,
217
+ "flags": [
218
+ "loaded-package CV 40% (>35%) - sub-ms op vs sampler, low confidence",
219
+ "only 8 pm samples - short window, treat as indicative"
220
+ ],
221
+ "gflops_sustained": 1246.5897472447687,
222
+ "perf_per_W": 410.73797273303745
223
+ }
224
+ },
225
+ "ANE": {
226
+ "dtype": "fp16",
227
+ "lat_ms": 2.2737079998478293,
228
+ "gflops": 944.4852409120797,
229
+ "relerr": 0.005528352999597531,
230
+ "power": {
231
+ "active_pkg_W": 4.2745,
232
+ "active_pkg_cv_pct": 0.27789412223889093,
233
+ "iter_ms": 2.2593845530461394,
234
+ "n_pm_samples": 8,
235
+ "ane_active_mW": 1453.0,
236
+ "gpu_active_mW": 0.0,
237
+ "cpu_active_mW": 2838.0,
238
+ "flags": [
239
+ "only 8 pm samples - short window, treat as indicative"
240
+ ],
241
+ "gflops_sustained": 950.4728378817706,
242
+ "perf_per_W": 222.3588344559061
243
+ }
244
+ }
245
+ }
246
+ },
247
+ {
248
+ "N": 2048,
249
+ "gflop": 17.179869184,
250
+ "devices": {
251
+ "CPU": {
252
+ "dtype": "fp32",
253
+ "lat_ms": 18.568042083643377,
254
+ "gflops": 925.2385957878553,
255
+ "relerr": 8.10478189270429e-07,
256
+ "power": {
257
+ "active_pkg_W": 5.7955,
258
+ "active_pkg_cv_pct": 0.9025309767780141,
259
+ "iter_ms": 20.07781567793908,
260
+ "n_pm_samples": 8,
261
+ "ane_active_mW": 0.0,
262
+ "gpu_active_mW": 0.0,
263
+ "cpu_active_mW": 5811.0,
264
+ "flags": [
265
+ "only 8 pm samples - short window, treat as indicative"
266
+ ],
267
+ "gflops_sustained": 855.6642544974025,
268
+ "perf_per_W": 147.64287024370677
269
+ }
270
+ },
271
+ "GPU": {
272
+ "dtype": "fp16",
273
+ "lat_ms": 7.544124964624643,
274
+ "gflops": 2277.251406168188,
275
+ "relerr": 0.0003589978150147436,
276
+ "power": {
277
+ "active_pkg_W": 10.5225,
278
+ "active_pkg_cv_pct": 1.188310059261444,
279
+ "iter_ms": 7.898247264355408,
280
+ "n_pm_samples": 8,
281
+ "ane_active_mW": 0.0,
282
+ "gpu_active_mW": 10709.0,
283
+ "cpu_active_mW": 0.0,
284
+ "flags": [
285
+ "only 8 pm samples - short window, treat as indicative"
286
+ ],
287
+ "gflops_sustained": 2175.149575467499,
288
+ "perf_per_W": 206.71414354644796
289
+ }
290
+ },
291
+ "ANE": {
292
+ "dtype": "fp16",
293
+ "lat_ms": 10.219625080935657,
294
+ "gflops": 1681.0664821793148,
295
+ "relerr": 0.012131920427695623,
296
+ "power": {
297
+ "active_pkg_W": 5.6135,
298
+ "active_pkg_cv_pct": 3.44898197659438,
299
+ "iter_ms": 8.950549583379788,
300
+ "n_pm_samples": 8,
301
+ "ane_active_mW": 2707.0,
302
+ "gpu_active_mW": 0.0,
303
+ "cpu_active_mW": 2917.5,
304
+ "flags": [
305
+ "only 8 pm samples - short window, treat as indicative"
306
+ ],
307
+ "gflops_sustained": 1919.4205924406226,
308
+ "perf_per_W": 341.92938317281954
309
+ }
310
+ }
311
+ }
312
+ },
313
+ {
314
+ "N": 4096,
315
+ "gflop": 137.438953472,
316
+ "devices": {
317
+ "CPU": {
318
+ "dtype": "fp32",
319
+ "lat_ms": 156.6192499594763,
320
+ "gflops": 877.5355105299061,
321
+ "relerr": 1.1466816734815368e-06,
322
+ "power": {
323
+ "active_pkg_W": 5.86,
324
+ "active_pkg_cv_pct": 0.927418696694701,
325
+ "iter_ms": 162.33654583338648,
326
+ "n_pm_samples": 8,
327
+ "ane_active_mW": 0.0,
328
+ "gpu_active_mW": 0.0,
329
+ "cpu_active_mW": 5872.5,
330
+ "flags": [
331
+ "only 8 pm samples - short window, treat as indicative"
332
+ ],
333
+ "gflops_sustained": 846.6297762246338,
334
+ "perf_per_W": 144.4760710280945
335
+ }
336
+ },
337
+ "GPU": {
338
+ "dtype": "fp16",
339
+ "lat_ms": 61.598917003721,
340
+ "gflops": 2231.191068890022,
341
+ "relerr": 0.0003597632132378822,
342
+ "power": {
343
+ "active_pkg_W": 11.5095,
344
+ "active_pkg_cv_pct": 1.4563942982471663,
345
+ "iter_ms": 59.13682187529048,
346
+ "n_pm_samples": 8,
347
+ "ane_active_mW": 0.0,
348
+ "gpu_active_mW": 11555.5,
349
+ "cpu_active_mW": 0.0,
350
+ "flags": [
351
+ "only 8 pm samples - short window, treat as indicative"
352
+ ],
353
+ "gflops_sustained": 2324.0842019179768,
354
+ "perf_per_W": 201.92746877952794
355
+ }
356
+ },
357
+ "ANE": {
358
+ "dtype": "fp16",
359
+ "lat_ms": 50.96833303105086,
360
+ "gflops": 2696.55578863585,
361
+ "relerr": 0.027237621125542195,
362
+ "power": {
363
+ "active_pkg_W": 5.8885,
364
+ "active_pkg_cv_pct": 2.215366619234538,
365
+ "iter_ms": 52.81201739549883,
366
+ "n_pm_samples": 8,
367
+ "ane_active_mW": 3610.5,
368
+ "gpu_active_mW": 0.0,
369
+ "cpu_active_mW": 2316.5,
370
+ "flags": [
371
+ "only 8 pm samples - short window, treat as indicative"
372
+ ],
373
+ "gflops_sustained": 2602.4181663568475,
374
+ "perf_per_W": 441.94925131304194
375
+ }
376
+ }
377
+ }
378
+ }
379
+ ],
380
+ "conv": [
381
+ {
382
+ "C": 64,
383
+ "B": 8,
384
+ "HxW": "64x64",
385
+ "gflop": 2.415919104,
386
+ "devices": {
387
+ "CPU": {
388
+ "dtype": "fp32",
389
+ "lat_ms": 123.43437504023314,
390
+ "gflops": 2.4465622959695557,
391
+ "relerr": 0.0,
392
+ "note": "B=1 timed, per-element GFLOP/s",
393
+ "power": {
394
+ "active_pkg_W": 5.4565,
395
+ "active_pkg_cv_pct": 0.9615704658539966,
396
+ "iter_ms": 998.4470581868663,
397
+ "n_pm_samples": 8,
398
+ "ane_active_mW": 0.0,
399
+ "gpu_active_mW": 0.0,
400
+ "cpu_active_mW": 5466.0,
401
+ "flags": [
402
+ "only 8 pm samples - short window, treat as indicative"
403
+ ],
404
+ "gflops_sustained": 2.419676721154547,
405
+ "perf_per_W": 0.44344849650042095
406
+ }
407
+ },
408
+ "GPU": {
409
+ "dtype": "fp16",
410
+ "lat_ms": 1.7664170591160655,
411
+ "gflops": 1367.6946174925147,
412
+ "relerr": 0.0003588124924798569,
413
+ "power": {
414
+ "active_pkg_W": 3.9365,
415
+ "active_pkg_cv_pct": 24.87742454009369,
416
+ "iter_ms": 2.398538953728409,
417
+ "n_pm_samples": 8,
418
+ "ane_active_mW": 0.0,
419
+ "gpu_active_mW": 3945.5,
420
+ "cpu_active_mW": 0.0,
421
+ "flags": [
422
+ "only 8 pm samples - short window, treat as indicative"
423
+ ],
424
+ "gflops_sustained": 1007.2461405075678,
425
+ "perf_per_W": 255.87352737395346
426
+ }
427
+ },
428
+ "ANE": {
429
+ "dtype": "fp16",
430
+ "lat_ms": 4.048582981340587,
431
+ "gflops": 596.7320208415313,
432
+ "relerr": 0.0003671660721200675,
433
+ "power": {
434
+ "active_pkg_W": 4.1315,
435
+ "active_pkg_cv_pct": 0.6891444258164083,
436
+ "iter_ms": 4.065348342919606,
437
+ "n_pm_samples": 8,
438
+ "ane_active_mW": 915.0,
439
+ "gpu_active_mW": 0.0,
440
+ "cpu_active_mW": 3231.0,
441
+ "flags": [
442
+ "only 8 pm samples - short window, treat as indicative"
443
+ ],
444
+ "gflops_sustained": 594.2711178016698,
445
+ "perf_per_W": 143.83907002339822
446
+ }
447
+ }
448
+ }
449
+ },
450
+ {
451
+ "C": 128,
452
+ "B": 8,
453
+ "HxW": "64x64",
454
+ "gflop": 9.663676416,
455
+ "devices": {
456
+ "CPU": {
457
+ "dtype": "fp32",
458
+ "lat_ms": 489.27337501663715,
459
+ "gflops": 2.468884704709151,
460
+ "relerr": 0.0,
461
+ "note": "B=1 timed, per-element GFLOP/s",
462
+ "power": {
463
+ "active_pkg_W": 5.6825,
464
+ "active_pkg_cv_pct": 0.7465906377243781,
465
+ "iter_ms": 4019.368708541151,
466
+ "n_pm_samples": 8,
467
+ "ane_active_mW": 0.0,
468
+ "gpu_active_mW": 0.0,
469
+ "cpu_active_mW": 5699.0,
470
+ "flags": [
471
+ "only 8 pm samples - short window, treat as indicative"
472
+ ],
473
+ "gflops_sustained": 2.4042771680698776,
474
+ "perf_per_W": 0.42310200933917774
475
+ }
476
+ },
477
+ "GPU": {
478
+ "dtype": "fp16",
479
+ "lat_ms": 3.781875013373792,
480
+ "gflops": 2555.2606529370946,
481
+ "relerr": 0.007292259411902981,
482
+ "power": {
483
+ "active_pkg_W": 6.1295,
484
+ "active_pkg_cv_pct": 1.4720438142811387,
485
+ "iter_ms": 4.1623363066218495,
486
+ "n_pm_samples": 8,
487
+ "ane_active_mW": 0.0,
488
+ "gpu_active_mW": 6306.5,
489
+ "cpu_active_mW": 0.0,
490
+ "flags": [
491
+ "only 8 pm samples - short window, treat as indicative"
492
+ ],
493
+ "gflops_sustained": 2321.6952461592505,
494
+ "perf_per_W": 378.77400214687174
495
+ }
496
+ },
497
+ "ANE": {
498
+ "dtype": "fp16",
499
+ "lat_ms": 7.798166945576668,
500
+ "gflops": 1239.224100156191,
501
+ "relerr": 0.00037520404231831836,
502
+ "power": {
503
+ "active_pkg_W": 4.9555,
504
+ "active_pkg_cv_pct": 0.9011010630935429,
505
+ "iter_ms": 7.800886518609657,
506
+ "n_pm_samples": 8,
507
+ "ane_active_mW": 1717.5,
508
+ "gpu_active_mW": 0.0,
509
+ "cpu_active_mW": 3254.0,
510
+ "flags": [
511
+ "only 8 pm samples - short window, treat as indicative"
512
+ ],
513
+ "gflops_sustained": 1238.7920774063953,
514
+ "perf_per_W": 249.98326655360617
515
+ }
516
+ }
517
+ }
518
+ },
519
+ {
520
+ "C": 256,
521
+ "B": 4,
522
+ "HxW": "64x64",
523
+ "gflop": 19.327352832,
524
+ "devices": {
525
+ "CPU": {
526
+ "dtype": "fp32",
527
+ "lat_ms": 1950.1839999575168,
528
+ "gflops": 2.477631960935613,
529
+ "relerr": 0.0,
530
+ "note": "B=1 timed, per-element GFLOP/s",
531
+ "power": {
532
+ "active_pkg_W": 5.7305,
533
+ "active_pkg_cv_pct": 0.5241456549631591,
534
+ "iter_ms": 8037.463209009729,
535
+ "n_pm_samples": 8,
536
+ "ane_active_mW": 0.0,
537
+ "gpu_active_mW": 0.0,
538
+ "cpu_active_mW": 5748.0,
539
+ "flags": [
540
+ "only 8 pm samples - short window, treat as indicative"
541
+ ],
542
+ "gflops_sustained": 2.4046583268132014,
543
+ "perf_per_W": 0.419624522609406
544
+ }
545
+ },
546
+ "GPU": {
547
+ "dtype": "fp16",
548
+ "lat_ms": 5.220041028223932,
549
+ "gflops": 3702.5289126081725,
550
+ "relerr": 0.007301810779891001,
551
+ "power": {
552
+ "active_pkg_W": 6.2525,
553
+ "active_pkg_cv_pct": 2.1495966362813554,
554
+ "iter_ms": 6.100731813803133,
555
+ "n_pm_samples": 8,
556
+ "ane_active_mW": 0.0,
557
+ "gpu_active_mW": 6430.5,
558
+ "cpu_active_mW": 0.0,
559
+ "flags": [
560
+ "only 8 pm samples - short window, treat as indicative"
561
+ ],
562
+ "gflops_sustained": 3168.038429139131,
563
+ "perf_per_W": 506.68347527215207
564
+ }
565
+ },
566
+ "ANE": {
567
+ "dtype": "fp16",
568
+ "lat_ms": 10.203457903116941,
569
+ "gflops": 1894.1963612253353,
570
+ "relerr": 0.0003900783744201331,
571
+ "power": {
572
+ "active_pkg_W": 5.7815,
573
+ "active_pkg_cv_pct": 6.95969254770307,
574
+ "iter_ms": 8.788855561162569,
575
+ "n_pm_samples": 8,
576
+ "ane_active_mW": 2935.0,
577
+ "gpu_active_mW": 0.0,
578
+ "cpu_active_mW": 2864.0,
579
+ "flags": [
580
+ "only 8 pm samples - short window, treat as indicative"
581
+ ],
582
+ "gflops_sustained": 2199.07503286394,
583
+ "perf_per_W": 380.36409804790105
584
+ }
585
+ }
586
+ }
587
+ },
588
+ {
589
+ "C": 512,
590
+ "B": 2,
591
+ "HxW": "64x64",
592
+ "gflop": 38.654705664,
593
+ "devices": {
594
+ "CPU": {
595
+ "dtype": "fp32",
596
+ "lat_ms": 7648.218124988489,
597
+ "gflops": 2.5270399609620298,
598
+ "relerr": 0.0,
599
+ "note": "B=1 timed, per-element GFLOP/s",
600
+ "power": {
601
+ "active_pkg_W": 5.977,
602
+ "active_pkg_cv_pct": 5.7411255691730085,
603
+ "iter_ms": 16094.162208028138,
604
+ "n_pm_samples": 8,
605
+ "ane_active_mW": 0.0,
606
+ "gpu_active_mW": 0.0,
607
+ "cpu_active_mW": 5980.5,
608
+ "flags": [
609
+ "only 8 pm samples - short window, treat as indicative"
610
+ ],
611
+ "gflops_sustained": 2.40178427210819,
612
+ "perf_per_W": 0.4018377567522486
613
+ }
614
+ },
615
+ "GPU": {
616
+ "dtype": "fp16",
617
+ "lat_ms": 9.982416057027876,
618
+ "gflops": 3872.279560696741,
619
+ "relerr": 0.007389426753145366,
620
+ "power": {
621
+ "active_pkg_W": 5.4485,
622
+ "active_pkg_cv_pct": 2.3333960739561994,
623
+ "iter_ms": 13.399423629034933,
624
+ "n_pm_samples": 8,
625
+ "ane_active_mW": 0.0,
626
+ "gpu_active_mW": 5557.5,
627
+ "cpu_active_mW": 0.0,
628
+ "flags": [
629
+ "only 8 pm samples - short window, treat as indicative"
630
+ ],
631
+ "gflops_sustained": 2884.8036105254496,
632
+ "perf_per_W": 529.4674883959713
633
+ }
634
+ },
635
+ "ANE": {
636
+ "dtype": "fp16",
637
+ "lat_ms": 11.18129095993936,
638
+ "gflops": 3457.0878982125723,
639
+ "relerr": 0.0004190581983637061,
640
+ "power": {
641
+ "active_pkg_W": 7.271,
642
+ "active_pkg_cv_pct": 2.8406125484605345,
643
+ "iter_ms": 10.29800027338849,
644
+ "n_pm_samples": 8,
645
+ "ane_active_mW": 4826.5,
646
+ "gpu_active_mW": 0.0,
647
+ "cpu_active_mW": 2432.5,
648
+ "flags": [
649
+ "only 8 pm samples - short window, treat as indicative"
650
+ ],
651
+ "gflops_sustained": 3753.612802272816,
652
+ "perf_per_W": 516.2443683499954
653
+ }
654
+ }
655
+ }
656
+ }
657
+ ],
658
+ "peaks": {
659
+ "gemm": {
660
+ "CPU": {
661
+ "peak_gflops": 1236.317950089081,
662
+ "peak_gflops_size": 512,
663
+ "peak_gflops_relerr": 4.0286235201554195e-07,
664
+ "peak_perf_per_W": 157.04125840246127,
665
+ "peak_perf_per_W_size": 512
666
+ },
667
+ "GPU": {
668
+ "peak_gflops": 2277.251406168188,
669
+ "peak_gflops_size": 2048,
670
+ "peak_gflops_relerr": 0.0003589978150147436,
671
+ "peak_perf_per_W": 410.73797273303745,
672
+ "peak_perf_per_W_size": 1024
673
+ },
674
+ "ANE": {
675
+ "peak_gflops": 2696.55578863585,
676
+ "peak_gflops_size": 4096,
677
+ "peak_gflops_relerr": 0.027237621125542195,
678
+ "peak_perf_per_W": 441.94925131304194,
679
+ "peak_perf_per_W_size": 4096
680
+ }
681
+ },
682
+ "conv": {
683
+ "CPU": {
684
+ "peak_gflops": 2.5270399609620298,
685
+ "peak_gflops_size": 512,
686
+ "peak_gflops_relerr": 0.0,
687
+ "peak_perf_per_W": 0.44344849650042095,
688
+ "peak_perf_per_W_size": 64
689
+ },
690
+ "GPU": {
691
+ "peak_gflops": 3872.279560696741,
692
+ "peak_gflops_size": 512,
693
+ "peak_gflops_relerr": 0.007389426753145366,
694
+ "peak_perf_per_W": 529.4674883959713,
695
+ "peak_perf_per_W_size": 512
696
+ },
697
+ "ANE": {
698
+ "peak_gflops": 3457.0878982125723,
699
+ "peak_gflops_size": 512,
700
+ "peak_gflops_relerr": 0.0004190581983637061,
701
+ "peak_perf_per_W": 516.2443683499954,
702
+ "peak_perf_per_W_size": 512
703
+ }
704
+ }
705
+ },
706
+ "meta": {
707
+ "backends": {
708
+ "ane": true,
709
+ "mlx": true,
710
+ "sudo": true
711
+ },
712
+ "gemm_ns": [
713
+ 512,
714
+ 1024,
715
+ 2048,
716
+ 4096
717
+ ],
718
+ "conv_configs": [
719
+ [
720
+ 64,
721
+ 8
722
+ ],
723
+ [
724
+ 128,
725
+ 8
726
+ ],
727
+ [
728
+ 256,
729
+ 4
730
+ ],
731
+ [
732
+ 512,
733
+ 2
734
+ ]
735
+ ],
736
+ "conv_spatial": 64,
737
+ "power_window_s": 2.5,
738
+ "reps": 8,
739
+ "idle_mW": {
740
+ "ane": 0.0,
741
+ "cpu": 285.0,
742
+ "gpu": 19.5
743
+ },
744
+ "idle_pkg_mW": 302.5
745
+ }
746
+ }
747
+ },
748
+ {
749
+ "script": "device_bandwidth_roofline.py",
750
+ "result_file": "device_bandwidth_roofline_results.json",
751
+ "returncode": 0,
752
+ "seconds": 155.7,
753
+ "summary": {
754
+ "backends": {
755
+ "ane": true,
756
+ "mlx": true,
757
+ "sudo": true
758
+ },
759
+ "window_s": 2.0,
760
+ "pm_interval_ms": 500,
761
+ "sizes": [
762
+ 1048576,
763
+ 8388608,
764
+ 33554432
765
+ ],
766
+ "idle_mW": {
767
+ "ane": 0.0,
768
+ "cpu": 97.0,
769
+ "gpu": 0.0
770
+ },
771
+ "idle_pkg_mW": 99.0,
772
+ "results": {
773
+ "roofline": {
774
+ "streaming (relu / x*2)": {
775
+ "byte_factor": 2,
776
+ "sizes": [
777
+ {
778
+ "nelem": 1048576,
779
+ "shape": [
780
+ 256,
781
+ 4096
782
+ ],
783
+ "gpu_gbps": 21.241390563958568,
784
+ "gpu_lat_ms": 0.19745901226997375,
785
+ "gpu_relerr": 0.0002078010000954747,
786
+ "ane_gbps": 0.8345973442740963,
787
+ "ane_lat_ms": 5.02554199192673,
788
+ "ane_relerr": 0.0002078010000954747,
789
+ "cpu_gbps": 31.99218329208513,
790
+ "cpu_lat_ms": 0.26220805011689663
791
+ },
792
+ {
793
+ "nelem": 8388608,
794
+ "shape": [
795
+ 2048,
796
+ 4096
797
+ ],
798
+ "gpu_gbps": 43.03003038533224,
799
+ "gpu_lat_ms": 0.7797910366207361,
800
+ "gpu_relerr": 0.0002076195011741204,
801
+ "ane_gbps": 0.8564273674361607,
802
+ "ane_lat_ms": 39.17954198550433,
803
+ "ane_relerr": 0.0002076195011741204,
804
+ "cpu_gbps": 22.171006299279945,
805
+ "cpu_lat_ms": 3.0268749687820673
806
+ },
807
+ {
808
+ "nelem": 33554432,
809
+ "shape": [
810
+ 8192,
811
+ 4096
812
+ ],
813
+ "gpu_gbps": 54.42178578328983,
814
+ "gpu_lat_ms": 2.466249978169799,
815
+ "gpu_relerr": 0.0002077222359444293,
816
+ "ane_gbps": 0.8394932587337186,
817
+ "ane_lat_ms": 159.8794589517638,
818
+ "ane_relerr": 0.0002077222359444293,
819
+ "cpu_gbps": 21.509752839039393,
820
+ "cpu_lat_ms": 12.47970899567008
821
+ }
822
+ ],
823
+ "peak": {
824
+ "ane": {
825
+ "gbps": 0.8564273674361607,
826
+ "at_nelem": 8388608
827
+ },
828
+ "gpu": {
829
+ "gbps": 54.42178578328983,
830
+ "at_nelem": 33554432
831
+ },
832
+ "cpu": {
833
+ "gbps": 31.99218329208513,
834
+ "at_nelem": 1048576
835
+ }
836
+ },
837
+ "power": {
838
+ "ane": {
839
+ "iter_ms": 162.5223677958651,
840
+ "iters": 29,
841
+ "n_pm_samples": 8,
842
+ "ane_loaded_mW": 65.0,
843
+ "ane_active_mW": 65.0,
844
+ "cpu_loaded_mW": 2926.5,
845
+ "cpu_active_mW": 2829.5,
846
+ "gpu_loaded_mW": 0.0,
847
+ "gpu_active_mW": 0.0,
848
+ "loaded_pkg_W": 2.999,
849
+ "active_pkg_W": 2.9,
850
+ "active_pkg_mean_W": 2.90375,
851
+ "active_pkg_min_W": 2.881,
852
+ "active_pkg_p90_W": 2.9280999999999997,
853
+ "active_pkg_cv_pct": 0.6106208158624229,
854
+ "flags": [
855
+ "only 8 pm samples - short window, treat as indicative"
856
+ ],
857
+ "gbps_loop": 0.8258415738108313,
858
+ "gbps_per_W": 0.2847729564864936
859
+ },
860
+ "gpu": {
861
+ "iter_ms": 2.7008141173277953,
862
+ "iters": 1739,
863
+ "n_pm_samples": 8,
864
+ "ane_loaded_mW": 0.0,
865
+ "ane_active_mW": 0.0,
866
+ "cpu_loaded_mW": 153.0,
867
+ "cpu_active_mW": 56.0,
868
+ "gpu_loaded_mW": 1903.5,
869
+ "gpu_active_mW": 1903.5,
870
+ "loaded_pkg_W": 2.045,
871
+ "active_pkg_W": 1.946,
872
+ "active_pkg_mean_W": 1.966875,
873
+ "active_pkg_min_W": 1.915,
874
+ "active_pkg_p90_W": 2.0138000000000003,
875
+ "active_pkg_cv_pct": 2.394543055275952,
876
+ "flags": [
877
+ "only 8 pm samples - short window, treat as indicative"
878
+ ],
879
+ "gbps_loop": 49.69528526191058,
880
+ "gbps_per_W": 25.537145561105127
881
+ },
882
+ "cpu": {
883
+ "iter_ms": 13.200350704235616,
884
+ "iters": 355,
885
+ "n_pm_samples": 8,
886
+ "ane_loaded_mW": 0.0,
887
+ "ane_active_mW": 0.0,
888
+ "cpu_loaded_mW": 3381.0,
889
+ "cpu_active_mW": 3284.0,
890
+ "gpu_loaded_mW": 1.0,
891
+ "gpu_active_mW": 1.0,
892
+ "loaded_pkg_W": 3.3815,
893
+ "active_pkg_W": 3.2825,
894
+ "active_pkg_mean_W": 3.310375,
895
+ "active_pkg_min_W": 3.278,
896
+ "active_pkg_p90_W": 3.3704,
897
+ "active_pkg_cv_pct": 1.7283422392235424,
898
+ "flags": [
899
+ "only 8 pm samples - short window, treat as indicative"
900
+ ],
901
+ "gbps_loop": 20.335479110707773,
902
+ "gbps_per_W": 6.195119302576625
903
+ }
904
+ }
905
+ },
906
+ "gelu (light compute)": {
907
+ "byte_factor": 2,
908
+ "sizes": [
909
+ {
910
+ "nelem": 1048576,
911
+ "shape": [
912
+ 256,
913
+ 4096
914
+ ],
915
+ "gpu_gbps": 9.344910295453229,
916
+ "gpu_lat_ms": 0.4488329868763685,
917
+ "gpu_relerr": 0.00044965508353697126,
918
+ "ane_gbps": 2.062096357142745,
919
+ "ane_lat_ms": 2.0340000046417117,
920
+ "ane_relerr": 0.002399125839984865,
921
+ "cpu_gbps": 39.05456930299842,
922
+ "cpu_lat_ms": 0.21479197312146425
923
+ },
924
+ {
925
+ "nelem": 8388608,
926
+ "shape": [
927
+ 2048,
928
+ 4096
929
+ ],
930
+ "gpu_gbps": 9.543581647637033,
931
+ "gpu_lat_ms": 3.5159160615876317,
932
+ "gpu_relerr": 0.0004494759449517025,
933
+ "ane_gbps": 2.1710174746508204,
934
+ "ane_lat_ms": 15.455625019967556,
935
+ "ane_relerr": 0.0024010734360187464,
936
+ "cpu_gbps": 37.31379551628031,
937
+ "cpu_lat_ms": 1.7985000740736723
938
+ },
939
+ {
940
+ "nelem": 33554432,
941
+ "shape": [
942
+ 8192,
943
+ 4096
944
+ ],
945
+ "gpu_gbps": 10.089408613171999,
946
+ "gpu_lat_ms": 13.302834006026387,
947
+ "gpu_relerr": 0.00044955035179580603,
948
+ "ane_gbps": 2.092168125336217,
949
+ "ane_lat_ms": 64.15245810057968,
950
+ "ane_relerr": 0.0024023332541353954,
951
+ "cpu_gbps": 35.497944669372,
952
+ "cpu_lat_ms": 7.56199995521456
953
+ }
954
+ ],
955
+ "peak": {
956
+ "ane": {
957
+ "gbps": 2.1710174746508204,
958
+ "at_nelem": 8388608
959
+ },
960
+ "gpu": {
961
+ "gbps": 10.089408613171999,
962
+ "at_nelem": 33554432
963
+ },
964
+ "cpu": {
965
+ "gbps": 39.05456930299842,
966
+ "at_nelem": 1048576
967
+ }
968
+ },
969
+ "power": {
970
+ "ane": {
971
+ "iter_ms": 65.13651156920888,
972
+ "iters": 72,
973
+ "n_pm_samples": 8,
974
+ "ane_loaded_mW": 181.0,
975
+ "ane_active_mW": 181.0,
976
+ "cpu_loaded_mW": 3576.0,
977
+ "cpu_active_mW": 3479.0,
978
+ "gpu_loaded_mW": 0.0,
979
+ "gpu_active_mW": 0.0,
980
+ "loaded_pkg_W": 3.759,
981
+ "active_pkg_W": 3.66,
982
+ "active_pkg_mean_W": 3.660125,
983
+ "active_pkg_min_W": 3.652,
984
+ "active_pkg_p90_W": 3.6675,
985
+ "active_pkg_cv_pct": 0.16205224528329337,
986
+ "flags": [
987
+ "only 8 pm samples - short window, treat as indicative"
988
+ ],
989
+ "gbps_loop": 2.060560579106096,
990
+ "gbps_per_W": 0.562994693744835
991
+ },
992
+ "gpu": {
993
+ "iter_ms": 13.484595750757414,
994
+ "iters": 349,
995
+ "n_pm_samples": 8,
996
+ "ane_loaded_mW": 0.0,
997
+ "ane_active_mW": 0.0,
998
+ "cpu_loaded_mW": 115.0,
999
+ "cpu_active_mW": 18.0,
1000
+ "gpu_loaded_mW": 3161.0,
1001
+ "gpu_active_mW": 3161.0,
1002
+ "loaded_pkg_W": 3.271,
1003
+ "active_pkg_W": 3.172,
1004
+ "active_pkg_mean_W": 3.182875,
1005
+ "active_pkg_min_W": 3.14,
1006
+ "active_pkg_p90_W": 3.2284,
1007
+ "active_pkg_cv_pct": 0.9837544338601992,
1008
+ "flags": [
1009
+ "only 8 pm samples - short window, treat as indicative"
1010
+ ],
1011
+ "gbps_loop": 9.953411320651652,
1012
+ "gbps_per_W": 3.1378976420717692
1013
+ },
1014
+ "cpu": {
1015
+ "iter_ms": 8.39373568703568,
1016
+ "iters": 556,
1017
+ "n_pm_samples": 8,
1018
+ "ane_loaded_mW": 0.0,
1019
+ "ane_active_mW": 0.0,
1020
+ "cpu_loaded_mW": 3638.0,
1021
+ "cpu_active_mW": 3541.0,
1022
+ "gpu_loaded_mW": 4.0,
1023
+ "gpu_active_mW": 4.0,
1024
+ "loaded_pkg_W": 3.644,
1025
+ "active_pkg_W": 3.545,
1026
+ "active_pkg_mean_W": 3.614,
1027
+ "active_pkg_min_W": 3.524,
1028
+ "active_pkg_p90_W": 3.736,
1029
+ "active_pkg_cv_pct": 4.300717173668489,
1030
+ "flags": [
1031
+ "only 8 pm samples - short window, treat as indicative"
1032
+ ],
1033
+ "gbps_loop": 31.980451375733075,
1034
+ "gbps_per_W": 9.021283885961376
1035
+ }
1036
+ }
1037
+ },
1038
+ "reduction (sum)": {
1039
+ "byte_factor": 1,
1040
+ "sizes": [
1041
+ {
1042
+ "nelem": 1048576,
1043
+ "shape": [
1044
+ 256,
1045
+ 4096
1046
+ ],
1047
+ "gpu_gbps": 9.36923102620923,
1048
+ "gpu_lat_ms": 0.22383395116776228,
1049
+ "gpu_relerr": 0.0008662560456038064,
1050
+ "ane_gbps": 4.672017689029037,
1051
+ "ane_lat_ms": 0.44887501280754805,
1052
+ "ane_relerr": 0.0007224220967624156,
1053
+ "cpu_gbps": 24.030348094158338,
1054
+ "cpu_lat_ms": 0.17454195767641068
1055
+ },
1056
+ {
1057
+ "nelem": 8388608,
1058
+ "shape": [
1059
+ 2048,
1060
+ 4096
1061
+ ],
1062
+ "gpu_gbps": 27.191596224871343,
1063
+ "gpu_lat_ms": 0.6170000415295362,
1064
+ "gpu_relerr": 0.000821366230294008,
1065
+ "ane_gbps": 6.986867821803512,
1066
+ "ane_lat_ms": 2.401249948889017,
1067
+ "ane_relerr": 0.0008092132072331672,
1068
+ "cpu_gbps": 23.507789960027246,
1069
+ "cpu_lat_ms": 1.4273750130087137
1070
+ },
1071
+ {
1072
+ "nelem": 33554432,
1073
+ "shape": [
1074
+ 8192,
1075
+ 4096
1076
+ ],
1077
+ "gpu_gbps": 48.065088170916205,
1078
+ "gpu_lat_ms": 1.396208070218563,
1079
+ "gpu_relerr": 0.000819476139658274,
1080
+ "ane_gbps": 7.404536690274342,
1081
+ "ane_lat_ms": 9.06320905778557,
1082
+ "ane_relerr": 0.0008128390012191247,
1083
+ "cpu_gbps": 23.593365777480976,
1084
+ "cpu_lat_ms": 5.688791046850383
1085
+ }
1086
+ ],
1087
+ "peak": {
1088
+ "ane": {
1089
+ "gbps": 7.404536690274342,
1090
+ "at_nelem": 33554432
1091
+ },
1092
+ "gpu": {
1093
+ "gbps": 48.065088170916205,
1094
+ "at_nelem": 33554432
1095
+ },
1096
+ "cpu": {
1097
+ "gbps": 24.030348094158338,
1098
+ "at_nelem": 1048576
1099
+ }
1100
+ },
1101
+ "power": {
1102
+ "ane": {
1103
+ "iter_ms": 9.361644091587365,
1104
+ "iters": 502,
1105
+ "n_pm_samples": 8,
1106
+ "ane_loaded_mW": 739.5,
1107
+ "ane_active_mW": 739.5,
1108
+ "cpu_loaded_mW": 3247.0,
1109
+ "cpu_active_mW": 3150.0,
1110
+ "gpu_loaded_mW": 1.0,
1111
+ "gpu_active_mW": 1.0,
1112
+ "loaded_pkg_W": 3.994,
1113
+ "active_pkg_W": 3.895,
1114
+ "active_pkg_mean_W": 3.8925,
1115
+ "active_pkg_min_W": 3.861,
1116
+ "active_pkg_p90_W": 3.9112,
1117
+ "active_pkg_cv_pct": 0.4521745120325703,
1118
+ "flags": [
1119
+ "only 8 pm samples - short window, treat as indicative"
1120
+ ],
1121
+ "gbps_loop": 7.168491276046897,
1122
+ "gbps_per_W": 1.8404342172135808
1123
+ },
1124
+ "gpu": {
1125
+ "iter_ms": 1.8709481323763217,
1126
+ "iters": 2508,
1127
+ "n_pm_samples": 8,
1128
+ "ane_loaded_mW": 0.0,
1129
+ "ane_active_mW": 0.0,
1130
+ "cpu_loaded_mW": 154.0,
1131
+ "cpu_active_mW": 57.0,
1132
+ "gpu_loaded_mW": 1825.0,
1133
+ "gpu_active_mW": 1825.0,
1134
+ "loaded_pkg_W": 1.958,
1135
+ "active_pkg_W": 1.859,
1136
+ "active_pkg_mean_W": 2.586875,
1137
+ "active_pkg_min_W": 1.695,
1138
+ "active_pkg_p90_W": 4.774100000000001,
1139
+ "active_pkg_cv_pct": 49.65364819932198,
1140
+ "flags": [
1141
+ "loaded-package CV 50% (>35%) - sub-ms op vs sampler, low confidence",
1142
+ "only 8 pm samples - short window, treat as indicative"
1143
+ ],
1144
+ "gbps_loop": 35.86890669960152,
1145
+ "gbps_per_W": 19.29473195244837
1146
+ },
1147
+ "cpu": {
1148
+ "iter_ms": 5.828554151096054,
1149
+ "iters": 801,
1150
+ "n_pm_samples": 8,
1151
+ "ane_loaded_mW": 0.0,
1152
+ "ane_active_mW": 0.0,
1153
+ "cpu_loaded_mW": 8463.5,
1154
+ "cpu_active_mW": 8366.5,
1155
+ "gpu_loaded_mW": 11.0,
1156
+ "gpu_active_mW": 11.0,
1157
+ "loaded_pkg_W": 8.4805,
1158
+ "active_pkg_W": 8.3815,
1159
+ "active_pkg_mean_W": 8.423375,
1160
+ "active_pkg_min_W": 8.257,
1161
+ "active_pkg_p90_W": 8.6078,
1162
+ "active_pkg_cv_pct": 1.5169328752496098,
1163
+ "flags": [
1164
+ "only 8 pm samples - short window, treat as indicative"
1165
+ ],
1166
+ "gbps_loop": 23.027619632694066,
1167
+ "gbps_per_W": 2.7474341863263216
1168
+ }
1169
+ }
1170
+ },
1171
+ "softmax": {
1172
+ "byte_factor": 2,
1173
+ "sizes": [
1174
+ {
1175
+ "nelem": 1048576,
1176
+ "shape": [
1177
+ 256,
1178
+ 4096
1179
+ ],
1180
+ "gpu_gbps": 17.722386743115667,
1181
+ "gpu_lat_ms": 0.23666699416935444,
1182
+ "gpu_relerr": 0.0007649086623197127,
1183
+ "ane_gbps": 1.1650440018138162,
1184
+ "ane_lat_ms": 3.600124968215823,
1185
+ "ane_relerr": 0.0010240666804474572,
1186
+ "cpu_gbps": 2.902800318453706,
1187
+ "cpu_lat_ms": 2.8898329474031925
1188
+ },
1189
+ {
1190
+ "nelem": 8388608,
1191
+ "shape": [
1192
+ 2048,
1193
+ 4096
1194
+ ],
1195
+ "gpu_gbps": 41.49782075200923,
1196
+ "gpu_lat_ms": 0.8085829904302955,
1197
+ "gpu_relerr": 0.0007690273653019261,
1198
+ "ane_gbps": 1.1988149758822215,
1199
+ "ane_lat_ms": 27.989667025394738,
1200
+ "ane_relerr": 0.0010582602743854563,
1201
+ "cpu_gbps": 2.721535296209377,
1202
+ "cpu_lat_ms": 24.6584580745548
1203
+ },
1204
+ {
1205
+ "nelem": 33554432,
1206
+ "shape": [
1207
+ 8192,
1208
+ 4096
1209
+ ],
1210
+ "gpu_gbps": 54.00752861899891,
1211
+ "gpu_lat_ms": 2.4851670023053885,
1212
+ "gpu_relerr": 0.000770364885524759,
1213
+ "ane_gbps": 1.1734443074476368,
1214
+ "ane_lat_ms": 114.37929107341915,
1215
+ "ane_relerr": 0.0010575844059696365,
1216
+ "cpu_gbps": 2.7170864047499066,
1217
+ "cpu_lat_ms": 98.79533294588327
1218
+ }
1219
+ ],
1220
+ "peak": {
1221
+ "ane": {
1222
+ "gbps": 1.1988149758822215,
1223
+ "at_nelem": 8388608
1224
+ },
1225
+ "gpu": {
1226
+ "gbps": 54.00752861899891,
1227
+ "at_nelem": 33554432
1228
+ },
1229
+ "cpu": {
1230
+ "gbps": 2.902800318453706,
1231
+ "at_nelem": 1048576
1232
+ }
1233
+ },
1234
+ "power": {
1235
+ "ane": {
1236
+ "iter_ms": 116.17107926754326,
1237
+ "iters": 41,
1238
+ "n_pm_samples": 8,
1239
+ "ane_loaded_mW": 178.0,
1240
+ "ane_active_mW": 178.0,
1241
+ "cpu_loaded_mW": 3247.5,
1242
+ "cpu_active_mW": 3150.5,
1243
+ "gpu_loaded_mW": 0.0,
1244
+ "gpu_active_mW": 0.0,
1245
+ "loaded_pkg_W": 3.4235,
1246
+ "active_pkg_W": 3.3245,
1247
+ "active_pkg_mean_W": 3.331125,
1248
+ "active_pkg_min_W": 3.287,
1249
+ "active_pkg_p90_W": 3.3925,
1250
+ "active_pkg_cv_pct": 1.183091438025387,
1251
+ "flags": [
1252
+ "only 8 pm samples - short window, treat as indicative"
1253
+ ],
1254
+ "gbps_loop": 1.1553454512624015,
1255
+ "gbps_per_W": 0.34752457550380556
1256
+ },
1257
+ "gpu": {
1258
+ "iter_ms": 2.6944618933265945,
1259
+ "iters": 1744,
1260
+ "n_pm_samples": 8,
1261
+ "ane_loaded_mW": 0.0,
1262
+ "ane_active_mW": 0.0,
1263
+ "cpu_loaded_mW": 180.5,
1264
+ "cpu_active_mW": 83.5,
1265
+ "gpu_loaded_mW": 3644.0,
1266
+ "gpu_active_mW": 3644.0,
1267
+ "loaded_pkg_W": 3.852,
1268
+ "active_pkg_W": 3.753,
1269
+ "active_pkg_mean_W": 3.75525,
1270
+ "active_pkg_min_W": 3.636,
1271
+ "active_pkg_p90_W": 3.8341999999999996,
1272
+ "active_pkg_cv_pct": 2.46872587528242,
1273
+ "flags": [
1274
+ "only 8 pm samples - short window, treat as indicative"
1275
+ ],
1276
+ "gbps_loop": 49.81244245183746,
1277
+ "gbps_per_W": 13.27269982729482
1278
+ },
1279
+ "cpu": {
1280
+ "iter_ms": 101.15814450979629,
1281
+ "iters": 47,
1282
+ "n_pm_samples": 8,
1283
+ "ane_loaded_mW": 0.0,
1284
+ "ane_active_mW": 0.0,
1285
+ "cpu_loaded_mW": 5396.5,
1286
+ "cpu_active_mW": 5299.5,
1287
+ "gpu_loaded_mW": 1.0,
1288
+ "gpu_active_mW": 1.0,
1289
+ "loaded_pkg_W": 5.3975,
1290
+ "active_pkg_W": 5.2985,
1291
+ "active_pkg_mean_W": 5.303625,
1292
+ "active_pkg_min_W": 5.255,
1293
+ "active_pkg_p90_W": 5.337899999999999,
1294
+ "active_pkg_cv_pct": 0.5575897146912043,
1295
+ "flags": [
1296
+ "only 8 pm samples - short window, treat as indicative"
1297
+ ],
1298
+ "gbps_loop": 2.653621784986421,
1299
+ "gbps_per_W": 0.5008250986102522
1300
+ }
1301
+ }
1302
+ },
1303
+ "layer_norm": {
1304
+ "byte_factor": 2,
1305
+ "sizes": [
1306
+ {
1307
+ "nelem": 1048576,
1308
+ "shape": [
1309
+ 256,
1310
+ 4096
1311
+ ],
1312
+ "gpu_gbps": 7.226363210578795,
1313
+ "gpu_lat_ms": 0.5804169923067093,
1314
+ "gpu_relerr": 0.0005958694656336418,
1315
+ "ane_err": "RuntimeError: ane_e5rt_program_compile failed (mil=/Users/diegobautistaaviles/Models/.aneforge-cache/be7f77f75c7f8bb1d93ab898/model.mil, mask=0x4). See stderr for the actual Espresso error.",
1316
+ "cpu_gbps": 4.167562788397799,
1317
+ "cpu_lat_ms": 2.012833021581173
1318
+ },
1319
+ {
1320
+ "nelem": 8388608,
1321
+ "shape": [
1322
+ 2048,
1323
+ 4096
1324
+ ],
1325
+ "gpu_gbps": 7.905934889547921,
1326
+ "gpu_lat_ms": 4.244207986630499,
1327
+ "gpu_relerr": 0.0005845055587586605,
1328
+ "ane_err": "RuntimeError: ane_e5rt_program_compile failed (mil=/Users/diegobautistaaviles/Models/.aneforge-cache/f4e66bff1746589c0ee1c4a8/model.mil, mask=0x4). See stderr for the actual Espresso error.",
1329
+ "cpu_gbps": 3.097796957453317,
1330
+ "cpu_lat_ms": 21.663415944203734
1331
+ },
1332
+ {
1333
+ "nelem": 33554432,
1334
+ "shape": [
1335
+ 8192,
1336
+ 4096
1337
+ ],
1338
+ "gpu_gbps": 8.049179609228988,
1339
+ "gpu_lat_ms": 16.674709040671587,
1340
+ "gpu_relerr": 0.0005816761130971344,
1341
+ "ane_err": "RuntimeError: ane_e5rt_program_compile failed (mil=/Users/diegobautistaaviles/Models/.aneforge-cache/b0b6bcd88301a762baa4cc10/model.mil, mask=0x4). See stderr for the actual Espresso error.",
1342
+ "cpu_gbps": 3.0846214571045922,
1343
+ "cpu_lat_ms": 87.02379197347909
1344
+ }
1345
+ ],
1346
+ "peak": {
1347
+ "gpu": {
1348
+ "gbps": 8.049179609228988,
1349
+ "at_nelem": 33554432
1350
+ },
1351
+ "cpu": {
1352
+ "gbps": 4.167562788397799,
1353
+ "at_nelem": 1048576
1354
+ }
1355
+ },
1356
+ "power": {
1357
+ "gpu": {
1358
+ "iter_ms": 16.472946241468687,
1359
+ "iters": 286,
1360
+ "n_pm_samples": 8,
1361
+ "ane_loaded_mW": 0.0,
1362
+ "ane_active_mW": 0.0,
1363
+ "cpu_loaded_mW": 139.5,
1364
+ "cpu_active_mW": 42.5,
1365
+ "gpu_loaded_mW": 3952.0,
1366
+ "gpu_active_mW": 3952.0,
1367
+ "loaded_pkg_W": 4.0875,
1368
+ "active_pkg_W": 3.9885,
1369
+ "active_pkg_mean_W": 4.016875,
1370
+ "active_pkg_min_W": 3.967,
1371
+ "active_pkg_p90_W": 4.0871,
1372
+ "active_pkg_cv_pct": 1.240261638183422,
1373
+ "flags": [
1374
+ "only 8 pm samples - short window, treat as indicative"
1375
+ ],
1376
+ "gbps_loop": 8.147767013415171,
1377
+ "gbps_per_W": 2.042814846036147
1378
+ },
1379
+ "cpu": {
1380
+ "iter_ms": 89.24423820857521,
1381
+ "iters": 53,
1382
+ "n_pm_samples": 8,
1383
+ "ane_loaded_mW": 0.0,
1384
+ "ane_active_mW": 0.0,
1385
+ "cpu_loaded_mW": 4444.5,
1386
+ "cpu_active_mW": 4347.5,
1387
+ "gpu_loaded_mW": 1.0,
1388
+ "gpu_active_mW": 1.0,
1389
+ "loaded_pkg_W": 4.4455,
1390
+ "active_pkg_W": 4.3465,
1391
+ "active_pkg_mean_W": 4.343375,
1392
+ "active_pkg_min_W": 4.297,
1393
+ "active_pkg_p90_W": 4.372,
1394
+ "active_pkg_cv_pct": 0.6395648795651738,
1395
+ "flags": [
1396
+ "only 8 pm samples - short window, treat as indicative"
1397
+ ],
1398
+ "gbps_loop": 3.007874361285173,
1399
+ "gbps_per_W": 0.6920221698573963
1400
+ }
1401
+ }
1402
+ }
1403
+ },
1404
+ "coverage": {
1405
+ "rows": [
1406
+ {
1407
+ "op": "abs",
1408
+ "set": "_EMIT",
1409
+ "class": "bandwidth-bound",
1410
+ "where": "THIS bandwidth roofline"
1411
+ },
1412
+ {
1413
+ "op": "add",
1414
+ "set": "_EMIT",
1415
+ "class": "bandwidth-bound",
1416
+ "where": "THIS bandwidth roofline"
1417
+ },
1418
+ {
1419
+ "op": "adds",
1420
+ "set": "_EMIT",
1421
+ "class": "dispatch/latency-bound",
1422
+ "where": "floor finding (CPU wins tiny)"
1423
+ },
1424
+ {
1425
+ "op": "affine",
1426
+ "set": "_EMIT",
1427
+ "class": "UNCLASSIFIED",
1428
+ "where": "!! add to a class"
1429
+ },
1430
+ {
1431
+ "op": "atan",
1432
+ "set": "_EMIT",
1433
+ "class": "UNCLASSIFIED",
1434
+ "where": "!! add to a class"
1435
+ },
1436
+ {
1437
+ "op": "avg_pool",
1438
+ "set": "_EMIT",
1439
+ "class": "bandwidth-bound",
1440
+ "where": "THIS bandwidth roofline"
1441
+ },
1442
+ {
1443
+ "op": "batch_norm",
1444
+ "set": "_EMIT",
1445
+ "class": "bandwidth-bound",
1446
+ "where": "THIS bandwidth roofline"
1447
+ },
1448
+ {
1449
+ "op": "bmm",
1450
+ "set": "_EMIT",
1451
+ "class": "compute-bound",
1452
+ "where": "saturation sweep (GEMM/conv peaks)"
1453
+ },
1454
+ {
1455
+ "op": "bmm_w",
1456
+ "set": "_EMIT",
1457
+ "class": "UNCLASSIFIED",
1458
+ "where": "!! add to a class"
1459
+ },
1460
+ {
1461
+ "op": "cast",
1462
+ "set": "_EMIT",
1463
+ "class": "UNCLASSIFIED",
1464
+ "where": "!! add to a class"
1465
+ },
1466
+ {
1467
+ "op": "ceil",
1468
+ "set": "_EMIT",
1469
+ "class": "UNCLASSIFIED",
1470
+ "where": "!! add to a class"
1471
+ },
1472
+ {
1473
+ "op": "channel_layer_norm",
1474
+ "set": "_EMIT",
1475
+ "class": "UNCLASSIFIED",
1476
+ "where": "!! add to a class"
1477
+ },
1478
+ {
1479
+ "op": "clamped_relu",
1480
+ "set": "_EMIT",
1481
+ "class": "UNCLASSIFIED",
1482
+ "where": "!! add to a class"
1483
+ },
1484
+ {
1485
+ "op": "clip",
1486
+ "set": "_EMIT",
1487
+ "class": "bandwidth-bound",
1488
+ "where": "THIS bandwidth roofline"
1489
+ },
1490
+ {
1491
+ "op": "concat",
1492
+ "set": "_EMIT",
1493
+ "class": "bandwidth-bound",
1494
+ "where": "THIS bandwidth roofline"
1495
+ },
1496
+ {
1497
+ "op": "const_array",
1498
+ "set": "_EMIT",
1499
+ "class": "UNCLASSIFIED",
1500
+ "where": "!! add to a class"
1501
+ },
1502
+ {
1503
+ "op": "conv",
1504
+ "set": "_EMIT",
1505
+ "class": "compute-bound",
1506
+ "where": "saturation sweep (GEMM/conv peaks)"
1507
+ },
1508
+ {
1509
+ "op": "conv_transpose",
1510
+ "set": "_EMIT",
1511
+ "class": "compute-bound",
1512
+ "where": "saturation sweep (GEMM/conv peaks)"
1513
+ },
1514
+ {
1515
+ "op": "cos",
1516
+ "set": "_EMIT",
1517
+ "class": "bandwidth-bound",
1518
+ "where": "THIS bandwidth roofline"
1519
+ },
1520
+ {
1521
+ "op": "crop",
1522
+ "set": "_EMIT",
1523
+ "class": "UNCLASSIFIED",
1524
+ "where": "!! add to a class"
1525
+ },
1526
+ {
1527
+ "op": "depth_to_space",
1528
+ "set": "_EMIT",
1529
+ "class": "UNCLASSIFIED",
1530
+ "where": "!! add to a class"
1531
+ },
1532
+ {
1533
+ "op": "dynamic_conv",
1534
+ "set": "_EMIT",
1535
+ "class": "UNCLASSIFIED",
1536
+ "where": "!! add to a class"
1537
+ },
1538
+ {
1539
+ "op": "einsum",
1540
+ "set": "_EMIT",
1541
+ "class": "UNCLASSIFIED",
1542
+ "where": "!! add to a class"
1543
+ },
1544
+ {
1545
+ "op": "elu",
1546
+ "set": "_EMIT",
1547
+ "class": "bandwidth-bound",
1548
+ "where": "THIS bandwidth roofline"
1549
+ },
1550
+ {
1551
+ "op": "equal",
1552
+ "set": "_EMIT",
1553
+ "class": "UNCLASSIFIED",
1554
+ "where": "!! add to a class"
1555
+ },
1556
+ {
1557
+ "op": "erf",
1558
+ "set": "_EMIT",
1559
+ "class": "bandwidth-bound",
1560
+ "where": "THIS bandwidth roofline"
1561
+ },
1562
+ {
1563
+ "op": "exp",
1564
+ "set": "_EMIT",
1565
+ "class": "bandwidth-bound",
1566
+ "where": "THIS bandwidth roofline"
1567
+ },
1568
+ {
1569
+ "op": "exp2",
1570
+ "set": "_EMIT",
1571
+ "class": "UNCLASSIFIED",
1572
+ "where": "!! add to a class"
1573
+ },
1574
+ {
1575
+ "op": "expand_dims",
1576
+ "set": "_EMIT",
1577
+ "class": "UNCLASSIFIED",
1578
+ "where": "!! add to a class"
1579
+ },
1580
+ {
1581
+ "op": "flatten2d",
1582
+ "set": "_EMIT",
1583
+ "class": "UNCLASSIFIED",
1584
+ "where": "!! add to a class"
1585
+ },
1586
+ {
1587
+ "op": "floor",
1588
+ "set": "_EMIT",
1589
+ "class": "UNCLASSIFIED",
1590
+ "where": "!! add to a class"
1591
+ },
1592
+ {
1593
+ "op": "gelu",
1594
+ "set": "_EMIT",
1595
+ "class": "bandwidth-bound",
1596
+ "where": "THIS bandwidth roofline"
1597
+ },
1598
+ {
1599
+ "op": "greater",
1600
+ "set": "_EMIT",
1601
+ "class": "UNCLASSIFIED",
1602
+ "where": "!! add to a class"
1603
+ },
1604
+ {
1605
+ "op": "greater_equal",
1606
+ "set": "_EMIT",
1607
+ "class": "UNCLASSIFIED",
1608
+ "where": "!! add to a class"
1609
+ },
1610
+ {
1611
+ "op": "group_norm",
1612
+ "set": "_EMIT",
1613
+ "class": "bandwidth-bound",
1614
+ "where": "THIS bandwidth roofline"
1615
+ },
1616
+ {
1617
+ "op": "instance_norm",
1618
+ "set": "_EMIT",
1619
+ "class": "UNCLASSIFIED",
1620
+ "where": "!! add to a class"
1621
+ },
1622
+ {
1623
+ "op": "inverse",
1624
+ "set": "_EMIT",
1625
+ "class": "UNCLASSIFIED",
1626
+ "where": "!! add to a class"
1627
+ },
1628
+ {
1629
+ "op": "l2_norm",
1630
+ "set": "_EMIT",
1631
+ "class": "bandwidth-bound",
1632
+ "where": "THIS bandwidth roofline"
1633
+ },
1634
+ {
1635
+ "op": "layer_norm",
1636
+ "set": "_EMIT",
1637
+ "class": "bandwidth-bound",
1638
+ "where": "THIS bandwidth roofline"
1639
+ },
1640
+ {
1641
+ "op": "leaky_relu",
1642
+ "set": "_EMIT",
1643
+ "class": "bandwidth-bound",
1644
+ "where": "THIS bandwidth roofline"
1645
+ },
1646
+ {
1647
+ "op": "less",
1648
+ "set": "_EMIT",
1649
+ "class": "UNCLASSIFIED",
1650
+ "where": "!! add to a class"
1651
+ },
1652
+ {
1653
+ "op": "less_equal",
1654
+ "set": "_EMIT",
1655
+ "class": "UNCLASSIFIED",
1656
+ "where": "!! add to a class"
1657
+ },
1658
+ {
1659
+ "op": "linear_activation",
1660
+ "set": "_EMIT",
1661
+ "class": "UNCLASSIFIED",
1662
+ "where": "!! add to a class"
1663
+ },
1664
+ {
1665
+ "op": "local_response_norm",
1666
+ "set": "_EMIT",
1667
+ "class": "UNCLASSIFIED",
1668
+ "where": "!! add to a class"
1669
+ },
1670
+ {
1671
+ "op": "log",
1672
+ "set": "_EMIT",
1673
+ "class": "bandwidth-bound",
1674
+ "where": "THIS bandwidth roofline"
1675
+ },
1676
+ {
1677
+ "op": "logical_not",
1678
+ "set": "_EMIT",
1679
+ "class": "UNCLASSIFIED",
1680
+ "where": "!! add to a class"
1681
+ },
1682
+ {
1683
+ "op": "matmul",
1684
+ "set": "_EMIT",
1685
+ "class": "compute-bound",
1686
+ "where": "saturation sweep (GEMM/conv peaks)"
1687
+ },
1688
+ {
1689
+ "op": "max_pool",
1690
+ "set": "_EMIT",
1691
+ "class": "bandwidth-bound",
1692
+ "where": "THIS bandwidth roofline"
1693
+ },
1694
+ {
1695
+ "op": "maximum",
1696
+ "set": "_EMIT",
1697
+ "class": "bandwidth-bound",
1698
+ "where": "THIS bandwidth roofline"
1699
+ },
1700
+ {
1701
+ "op": "minimum",
1702
+ "set": "_EMIT",
1703
+ "class": "bandwidth-bound",
1704
+ "where": "THIS bandwidth roofline"
1705
+ },
1706
+ {
1707
+ "op": "mul",
1708
+ "set": "_EMIT",
1709
+ "class": "bandwidth-bound",
1710
+ "where": "THIS bandwidth roofline"
1711
+ },
1712
+ {
1713
+ "op": "muls",
1714
+ "set": "_EMIT",
1715
+ "class": "dispatch/latency-bound",
1716
+ "where": "floor finding (CPU wins tiny)"
1717
+ },
1718
+ {
1719
+ "op": "not_equal",
1720
+ "set": "_EMIT",
1721
+ "class": "UNCLASSIFIED",
1722
+ "where": "!! add to a class"
1723
+ },
1724
+ {
1725
+ "op": "pixel_shuffle",
1726
+ "set": "_EMIT",
1727
+ "class": "bandwidth-bound",
1728
+ "where": "THIS bandwidth roofline"
1729
+ },
1730
+ {
1731
+ "op": "pixel_unshuffle",
1732
+ "set": "_EMIT",
1733
+ "class": "bandwidth-bound",
1734
+ "where": "THIS bandwidth roofline"
1735
+ },
1736
+ {
1737
+ "op": "pow",
1738
+ "set": "_EMIT",
1739
+ "class": "bandwidth-bound",
1740
+ "where": "THIS bandwidth roofline"
1741
+ },
1742
+ {
1743
+ "op": "prelu",
1744
+ "set": "_EMIT",
1745
+ "class": "UNCLASSIFIED",
1746
+ "where": "!! add to a class"
1747
+ },
1748
+ {
1749
+ "op": "real_div",
1750
+ "set": "_EMIT",
1751
+ "class": "bandwidth-bound",
1752
+ "where": "THIS bandwidth roofline"
1753
+ },
1754
+ {
1755
+ "op": "reduce_l1_norm",
1756
+ "set": "_EMIT",
1757
+ "class": "UNCLASSIFIED",
1758
+ "where": "!! add to a class"
1759
+ },
1760
+ {
1761
+ "op": "reduce_log_sum",
1762
+ "set": "_EMIT",
1763
+ "class": "UNCLASSIFIED",
1764
+ "where": "!! add to a class"
1765
+ },
1766
+ {
1767
+ "op": "reduce_log_sum_exp",
1768
+ "set": "_EMIT",
1769
+ "class": "UNCLASSIFIED",
1770
+ "where": "!! add to a class"
1771
+ },
1772
+ {
1773
+ "op": "reduce_max",
1774
+ "set": "_EMIT",
1775
+ "class": "bandwidth-bound",
1776
+ "where": "THIS bandwidth roofline"
1777
+ },
1778
+ {
1779
+ "op": "reduce_mean",
1780
+ "set": "_EMIT",
1781
+ "class": "bandwidth-bound",
1782
+ "where": "THIS bandwidth roofline"
1783
+ },
1784
+ {
1785
+ "op": "reduce_min",
1786
+ "set": "_EMIT",
1787
+ "class": "bandwidth-bound",
1788
+ "where": "THIS bandwidth roofline"
1789
+ },
1790
+ {
1791
+ "op": "reduce_sum",
1792
+ "set": "_EMIT",
1793
+ "class": "bandwidth-bound",
1794
+ "where": "THIS bandwidth roofline"
1795
+ },
1796
+ {
1797
+ "op": "reduce_sum_square",
1798
+ "set": "_EMIT",
1799
+ "class": "UNCLASSIFIED",
1800
+ "where": "!! add to a class"
1801
+ },
1802
+ {
1803
+ "op": "relu",
1804
+ "set": "_EMIT",
1805
+ "class": "bandwidth-bound",
1806
+ "where": "THIS bandwidth roofline"
1807
+ },
1808
+ {
1809
+ "op": "relu6",
1810
+ "set": "_EMIT",
1811
+ "class": "bandwidth-bound",
1812
+ "where": "THIS bandwidth roofline"
1813
+ },
1814
+ {
1815
+ "op": "reshape",
1816
+ "set": "_EMIT",
1817
+ "class": "bandwidth-bound",
1818
+ "where": "THIS bandwidth roofline"
1819
+ },
1820
+ {
1821
+ "op": "resize_bilinear",
1822
+ "set": "_EMIT",
1823
+ "class": "UNCLASSIFIED",
1824
+ "where": "!! add to a class"
1825
+ },
1826
+ {
1827
+ "op": "resize_nearest_neighbor",
1828
+ "set": "_EMIT",
1829
+ "class": "UNCLASSIFIED",
1830
+ "where": "!! add to a class"
1831
+ },
1832
+ {
1833
+ "op": "reverse",
1834
+ "set": "_EMIT",
1835
+ "class": "UNCLASSIFIED",
1836
+ "where": "!! add to a class"
1837
+ },
1838
+ {
1839
+ "op": "rms_norm",
1840
+ "set": "_EMIT",
1841
+ "class": "bandwidth-bound",
1842
+ "where": "THIS bandwidth roofline"
1843
+ },
1844
+ {
1845
+ "op": "round",
1846
+ "set": "_EMIT",
1847
+ "class": "UNCLASSIFIED",
1848
+ "where": "!! add to a class"
1849
+ },
1850
+ {
1851
+ "op": "rsqrt",
1852
+ "set": "_EMIT",
1853
+ "class": "bandwidth-bound",
1854
+ "where": "THIS bandwidth roofline"
1855
+ },
1856
+ {
1857
+ "op": "scaled_tanh",
1858
+ "set": "_EMIT",
1859
+ "class": "UNCLASSIFIED",
1860
+ "where": "!! add to a class"
1861
+ },
1862
+ {
1863
+ "op": "select",
1864
+ "set": "_EMIT",
1865
+ "class": "UNCLASSIFIED",
1866
+ "where": "!! add to a class"
1867
+ },
1868
+ {
1869
+ "op": "sigmoid",
1870
+ "set": "_EMIT",
1871
+ "class": "bandwidth-bound",
1872
+ "where": "THIS bandwidth roofline"
1873
+ },
1874
+ {
1875
+ "op": "sigmoid_hard",
1876
+ "set": "_EMIT",
1877
+ "class": "UNCLASSIFIED",
1878
+ "where": "!! add to a class"
1879
+ },
1880
+ {
1881
+ "op": "sign",
1882
+ "set": "_EMIT",
1883
+ "class": "UNCLASSIFIED",
1884
+ "where": "!! add to a class"
1885
+ },
1886
+ {
1887
+ "op": "silu",
1888
+ "set": "_EMIT",
1889
+ "class": "bandwidth-bound",
1890
+ "where": "THIS bandwidth roofline"
1891
+ },
1892
+ {
1893
+ "op": "sin",
1894
+ "set": "_EMIT",
1895
+ "class": "bandwidth-bound",
1896
+ "where": "THIS bandwidth roofline"
1897
+ },
1898
+ {
1899
+ "op": "slice_by_size",
1900
+ "set": "_EMIT",
1901
+ "class": "UNCLASSIFIED",
1902
+ "where": "!! add to a class"
1903
+ },
1904
+ {
1905
+ "op": "softmax",
1906
+ "set": "_EMIT",
1907
+ "class": "bandwidth-bound",
1908
+ "where": "THIS bandwidth roofline"
1909
+ },
1910
+ {
1911
+ "op": "softplus",
1912
+ "set": "_EMIT",
1913
+ "class": "bandwidth-bound",
1914
+ "where": "THIS bandwidth roofline"
1915
+ },
1916
+ {
1917
+ "op": "softsign",
1918
+ "set": "_EMIT",
1919
+ "class": "UNCLASSIFIED",
1920
+ "where": "!! add to a class"
1921
+ },
1922
+ {
1923
+ "op": "space_to_depth",
1924
+ "set": "_EMIT",
1925
+ "class": "UNCLASSIFIED",
1926
+ "where": "!! add to a class"
1927
+ },
1928
+ {
1929
+ "op": "split",
1930
+ "set": "_EMIT",
1931
+ "class": "UNCLASSIFIED",
1932
+ "where": "!! add to a class"
1933
+ },
1934
+ {
1935
+ "op": "sqrt",
1936
+ "set": "_EMIT",
1937
+ "class": "bandwidth-bound",
1938
+ "where": "THIS bandwidth roofline"
1939
+ },
1940
+ {
1941
+ "op": "square",
1942
+ "set": "_EMIT",
1943
+ "class": "bandwidth-bound",
1944
+ "where": "THIS bandwidth roofline"
1945
+ },
1946
+ {
1947
+ "op": "squeeze",
1948
+ "set": "_EMIT",
1949
+ "class": "UNCLASSIFIED",
1950
+ "where": "!! add to a class"
1951
+ },
1952
+ {
1953
+ "op": "stack",
1954
+ "set": "_EMIT",
1955
+ "class": "UNCLASSIFIED",
1956
+ "where": "!! add to a class"
1957
+ },
1958
+ {
1959
+ "op": "sub",
1960
+ "set": "_EMIT",
1961
+ "class": "bandwidth-bound",
1962
+ "where": "THIS bandwidth roofline"
1963
+ },
1964
+ {
1965
+ "op": "tanh",
1966
+ "set": "_EMIT",
1967
+ "class": "bandwidth-bound",
1968
+ "where": "THIS bandwidth roofline"
1969
+ },
1970
+ {
1971
+ "op": "threshold",
1972
+ "set": "_EMIT",
1973
+ "class": "UNCLASSIFIED",
1974
+ "where": "!! add to a class"
1975
+ },
1976
+ {
1977
+ "op": "thresholded_relu",
1978
+ "set": "_EMIT",
1979
+ "class": "UNCLASSIFIED",
1980
+ "where": "!! add to a class"
1981
+ },
1982
+ {
1983
+ "op": "tile",
1984
+ "set": "_EMIT",
1985
+ "class": "UNCLASSIFIED",
1986
+ "where": "!! add to a class"
1987
+ },
1988
+ {
1989
+ "op": "transpose",
1990
+ "set": "_EMIT",
1991
+ "class": "bandwidth-bound",
1992
+ "where": "THIS bandwidth roofline"
1993
+ },
1994
+ {
1995
+ "op": "upsample",
1996
+ "set": "_EMIT",
1997
+ "class": "bandwidth-bound",
1998
+ "where": "THIS bandwidth roofline"
1999
+ },
2000
+ {
2001
+ "op": "upsample_bilinear",
2002
+ "set": "_EMIT",
2003
+ "class": "UNCLASSIFIED",
2004
+ "where": "!! add to a class"
2005
+ },
2006
+ {
2007
+ "op": "argmax",
2008
+ "set": "NETPLIST_OPS",
2009
+ "class": "bridge:worker-raceable",
2010
+ "where": "bridge:worker (raceable silicon via persistent worker)"
2011
+ },
2012
+ {
2013
+ "op": "batch_to_space",
2014
+ "set": "NETPLIST_OPS",
2015
+ "class": "bridge:subprocess-not-raceable",
2016
+ "where": "subprocess-per-call: dispatch-bound ARTIFACT, NOT a fair speed race (needs a persistent worker to benchmark silicon)"
2017
+ },
2018
+ {
2019
+ "op": "channel_to_space",
2020
+ "set": "NETPLIST_OPS",
2021
+ "class": "bridge:subprocess-not-raceable",
2022
+ "where": "subprocess-per-call: dispatch-bound ARTIFACT, NOT a fair speed race (needs a persistent worker to benchmark silicon)"
2023
+ },
2024
+ {
2025
+ "op": "cost_volume",
2026
+ "set": "NETPLIST_OPS",
2027
+ "class": "bridge:subprocess-not-raceable",
2028
+ "where": "subprocess-per-call: dispatch-bound ARTIFACT, NOT a fair speed race (needs a persistent worker to benchmark silicon)"
2029
+ },
2030
+ {
2031
+ "op": "cross_correlation",
2032
+ "set": "NETPLIST_OPS",
2033
+ "class": "bridge:subprocess-not-raceable",
2034
+ "where": "subprocess-per-call: dispatch-bound ARTIFACT, NOT a fair speed race (needs a persistent worker to benchmark silicon)"
2035
+ },
2036
+ {
2037
+ "op": "cross_product",
2038
+ "set": "NETPLIST_OPS",
2039
+ "class": "bridge:subprocess-not-raceable",
2040
+ "where": "subprocess-per-call: dispatch-bound ARTIFACT, NOT a fair speed race (needs a persistent worker to benchmark silicon)"
2041
+ },
2042
+ {
2043
+ "op": "dynamic_slice",
2044
+ "set": "NETPLIST_OPS",
2045
+ "class": "bridge:subprocess-not-raceable",
2046
+ "where": "subprocess-per-call: dispatch-bound ARTIFACT, NOT a fair speed race (needs a persistent worker to benchmark silicon)"
2047
+ },
2048
+ {
2049
+ "op": "flatten",
2050
+ "set": "NETPLIST_OPS",
2051
+ "class": "bridge:subprocess-not-raceable",
2052
+ "where": "subprocess-per-call: dispatch-bound ARTIFACT, NOT a fair speed race (needs a persistent worker to benchmark silicon)"
2053
+ },
2054
+ {
2055
+ "op": "fps",
2056
+ "set": "NETPLIST_OPS",
2057
+ "class": "bridge:subprocess-not-raceable",
2058
+ "where": "subprocess-per-call: dispatch-bound ARTIFACT, NOT a fair speed race (needs a persistent worker to benchmark silicon)"
2059
+ },
2060
+ {
2061
+ "op": "input_view",
2062
+ "set": "NETPLIST_OPS",
2063
+ "class": "bridge:subprocess-not-raceable",
2064
+ "where": "subprocess-per-call: dispatch-bound ARTIFACT, NOT a fair speed race (needs a persistent worker to benchmark silicon)"
2065
+ },
2066
+ {
2067
+ "op": "lrn",
2068
+ "set": "NETPLIST_OPS",
2069
+ "class": "bridge:subprocess-not-raceable",
2070
+ "where": "subprocess-per-call: dispatch-bound ARTIFACT, NOT a fair speed race (needs a persistent worker to benchmark silicon)"
2071
+ },
2072
+ {
2073
+ "op": "minmax_norm",
2074
+ "set": "NETPLIST_OPS",
2075
+ "class": "bridge:subprocess-not-raceable",
2076
+ "where": "subprocess-per-call: dispatch-bound ARTIFACT, NOT a fair speed race (needs a persistent worker to benchmark silicon)"
2077
+ },
2078
+ {
2079
+ "op": "radius_search",
2080
+ "set": "NETPLIST_OPS",
2081
+ "class": "bridge:subprocess-not-raceable",
2082
+ "where": "subprocess-per-call: dispatch-bound ARTIFACT, NOT a fair speed race (needs a persistent worker to benchmark silicon)"
2083
+ },
2084
+ {
2085
+ "op": "scaled_elementwise",
2086
+ "set": "NETPLIST_OPS",
2087
+ "class": "bridge:subprocess-not-raceable",
2088
+ "where": "subprocess-per-call: dispatch-bound ARTIFACT, NOT a fair speed race (needs a persistent worker to benchmark silicon)"
2089
+ },
2090
+ {
2091
+ "op": "sdpa",
2092
+ "set": "NETPLIST_OPS",
2093
+ "class": "bridge:worker-raceable",
2094
+ "where": "bridge:worker (raceable - covered as attention class)"
2095
+ },
2096
+ {
2097
+ "op": "sort",
2098
+ "set": "NETPLIST_OPS",
2099
+ "class": "bridge:subprocess-not-raceable",
2100
+ "where": "subprocess-per-call: dispatch-bound ARTIFACT, NOT a fair speed race (needs a persistent worker to benchmark silicon)"
2101
+ },
2102
+ {
2103
+ "op": "space_to_batch",
2104
+ "set": "NETPLIST_OPS",
2105
+ "class": "bridge:subprocess-not-raceable",
2106
+ "where": "subprocess-per-call: dispatch-bound ARTIFACT, NOT a fair speed race (needs a persistent worker to benchmark silicon)"
2107
+ },
2108
+ {
2109
+ "op": "space_to_channel",
2110
+ "set": "NETPLIST_OPS",
2111
+ "class": "bridge:subprocess-not-raceable",
2112
+ "where": "subprocess-per-call: dispatch-bound ARTIFACT, NOT a fair speed race (needs a persistent worker to benchmark silicon)"
2113
+ },
2114
+ {
2115
+ "op": "topk",
2116
+ "set": "NETPLIST_OPS",
2117
+ "class": "bridge:worker-raceable",
2118
+ "where": "bridge:worker (raceable silicon via persistent worker)"
2119
+ }
2120
+ ],
2121
+ "counts": {
2122
+ "compute-bound": 4,
2123
+ "bandwidth-bound": 44,
2124
+ "dispatch/latency-bound": 2,
2125
+ "bridge:worker-raceable": 3,
2126
+ "bridge:subprocess-not-raceable": 16,
2127
+ "UNCLASSIFIED": 50
2128
+ },
2129
+ "n_emit": 100,
2130
+ "n_netplist": 19,
2131
+ "worker_ops": [
2132
+ "argmax",
2133
+ "sdpa",
2134
+ "topk"
2135
+ ],
2136
+ "a1_only_ops": [
2137
+ "batch_to_space",
2138
+ "channel_to_space",
2139
+ "cost_volume",
2140
+ "cross_correlation",
2141
+ "cross_product",
2142
+ "dynamic_slice",
2143
+ "flatten",
2144
+ "fps",
2145
+ "input_view",
2146
+ "lrn",
2147
+ "minmax_norm",
2148
+ "radius_search",
2149
+ "scaled_elementwise",
2150
+ "sort",
2151
+ "space_to_batch",
2152
+ "space_to_channel"
2153
+ ],
2154
+ "unclassified": [
2155
+ "affine",
2156
+ "atan",
2157
+ "bmm_w",
2158
+ "cast",
2159
+ "ceil",
2160
+ "channel_layer_norm",
2161
+ "clamped_relu",
2162
+ "const_array",
2163
+ "crop",
2164
+ "depth_to_space",
2165
+ "dynamic_conv",
2166
+ "einsum",
2167
+ "equal",
2168
+ "exp2",
2169
+ "expand_dims",
2170
+ "flatten2d",
2171
+ "floor",
2172
+ "greater",
2173
+ "greater_equal",
2174
+ "instance_norm",
2175
+ "inverse",
2176
+ "less",
2177
+ "less_equal",
2178
+ "linear_activation",
2179
+ "local_response_norm",
2180
+ "logical_not",
2181
+ "not_equal",
2182
+ "prelu",
2183
+ "reduce_l1_norm",
2184
+ "reduce_log_sum",
2185
+ "reduce_log_sum_exp",
2186
+ "reduce_sum_square",
2187
+ "resize_bilinear",
2188
+ "resize_nearest_neighbor",
2189
+ "reverse",
2190
+ "round",
2191
+ "scaled_tanh",
2192
+ "select",
2193
+ "sigmoid_hard",
2194
+ "sign",
2195
+ "slice_by_size",
2196
+ "softsign",
2197
+ "space_to_depth",
2198
+ "split",
2199
+ "squeeze",
2200
+ "stack",
2201
+ "threshold",
2202
+ "thresholded_relu",
2203
+ "tile",
2204
+ "upsample_bilinear"
2205
+ ]
2206
+ }
2207
+ }
2208
+ }
2209
+ },
2210
+ {
2211
+ "script": "decode_measurement.py",
2212
+ "result_file": "decode_measurement_results.json",
2213
+ "returncode": 0,
2214
+ "seconds": 37.2,
2215
+ "summary": {
2216
+ "config": {
2217
+ "d_model": 1024,
2218
+ "n_layers": 4,
2219
+ "n_heads": 16,
2220
+ "d_head": 64,
2221
+ "d_ff": 4096,
2222
+ "vocab": 32000,
2223
+ "s_kv": 128
2224
+ },
2225
+ "quick": true,
2226
+ "batch": 32,
2227
+ "flops_per_token": {
2228
+ "1": 201850880.0,
2229
+ "32": 6459228160.0
2230
+ },
2231
+ "have": {
2232
+ "ane": true,
2233
+ "mlx": true,
2234
+ "sudo": true
2235
+ },
2236
+ "idle_pkg_W": 0.0885,
2237
+ "rows": [
2238
+ {
2239
+ "device": "CPU",
2240
+ "batch": 1,
2241
+ "status": "ok",
2242
+ "latency_per_step_ms": 56.66187510360032,
2243
+ "latency_per_token_ms": 56.66187510360032,
2244
+ "tokens_per_s": 17.648551131984327,
2245
+ "relerr": 8.406558109252458e-07,
2246
+ "active_pkg_W": 5.3495,
2247
+ "active_pkg_cv_pct": 4.254153098903496,
2248
+ "ane_active_mW": 0.0,
2249
+ "gpu_active_mW": 5.0,
2250
+ "cpu_active_mW": 5345.5,
2251
+ "energy_iter_ms": 56.80772639721273,
2252
+ "flags": [
2253
+ "only 8 pm samples - short window, treat as indicative"
2254
+ ],
2255
+ "tokens_per_s_sustained": 17.60323926727448,
2256
+ "tokens_per_s_per_W": 3.29063263244686,
2257
+ "mJ_per_token": 303.8929323618895
2258
+ },
2259
+ {
2260
+ "device": "GPU",
2261
+ "batch": 1,
2262
+ "status": "ok",
2263
+ "latency_per_step_ms": 4.018291947431862,
2264
+ "latency_per_token_ms": 4.018291947431862,
2265
+ "tokens_per_s": 248.8619575387278,
2266
+ "relerr": 0.002412337613669659,
2267
+ "active_pkg_W": 1.129,
2268
+ "active_pkg_cv_pct": 60.88169441983585,
2269
+ "ane_active_mW": 0.0,
2270
+ "gpu_active_mW": 829.0,
2271
+ "cpu_active_mW": 181.5,
2272
+ "energy_iter_ms": 5.542723484114121,
2273
+ "flags": [
2274
+ "loaded-package CV 61% (>35%) - sub-ms op vs sampler, low confidence",
2275
+ "only 8 pm samples - short window, treat as indicative"
2276
+ ],
2277
+ "tokens_per_s_sustained": 180.4167216470528,
2278
+ "tokens_per_s_per_W": 159.80223352263314,
2279
+ "mJ_per_token": 6.257734813564842
2280
+ },
2281
+ {
2282
+ "device": "ANE",
2283
+ "batch": 1,
2284
+ "status": "NotImplementedError: aneforge: tensor (1, 32000) (op 'matmul') exceeds ANE family 2's max dimension 16384; tile the graph or target a higher chip."
2285
+ },
2286
+ {
2287
+ "device": "ANE8",
2288
+ "batch": 1,
2289
+ "status": "NotImplementedError: aneforge: tensor (1, 32000) (op 'matmul') exceeds ANE family 2's max dimension 16384; tile the graph or target a higher chip."
2290
+ },
2291
+ {
2292
+ "device": "CPU",
2293
+ "batch": 32,
2294
+ "status": "ok",
2295
+ "latency_per_step_ms": 80.98145795520395,
2296
+ "latency_per_token_ms": 2.5306705611001235,
2297
+ "tokens_per_s": 395.15218431484965,
2298
+ "relerr": 3.023021706744241e-06,
2299
+ "active_pkg_W": 5.3415,
2300
+ "active_pkg_cv_pct": 1.0761009113801134,
2301
+ "ane_active_mW": 0.0,
2302
+ "gpu_active_mW": 1.0,
2303
+ "cpu_active_mW": 5342.5,
2304
+ "energy_iter_ms": 97.57972135412274,
2305
+ "flags": [
2306
+ "only 8 pm samples - short window, treat as indicative"
2307
+ ],
2308
+ "tokens_per_s_sustained": 327.9369889146338,
2309
+ "tokens_per_s_per_W": 61.39417559012146,
2310
+ "mJ_per_token": 16.288190050407707
2311
+ },
2312
+ {
2313
+ "device": "GPU",
2314
+ "batch": 32,
2315
+ "status": "ok",
2316
+ "latency_per_step_ms": 10.590624995529652,
2317
+ "latency_per_token_ms": 0.3309570311103016,
2318
+ "tokens_per_s": 3021.54027864336,
2319
+ "relerr": 0.002348927255974923,
2320
+ "active_pkg_W": 6.3575,
2321
+ "active_pkg_cv_pct": 4.258444888601912,
2322
+ "ane_active_mW": 0.0,
2323
+ "gpu_active_mW": 6090.0,
2324
+ "cpu_active_mW": 165.0,
2325
+ "energy_iter_ms": 11.497576611143852,
2326
+ "flags": [
2327
+ "only 8 pm samples - short window, treat as indicative"
2328
+ ],
2329
+ "tokens_per_s_sustained": 2783.1951968890976,
2330
+ "tokens_per_s_per_W": 437.7813915672981,
2331
+ "mJ_per_token": 2.284245103292095
2332
+ },
2333
+ {
2334
+ "device": "ANE",
2335
+ "batch": 32,
2336
+ "status": "NotImplementedError: aneforge: tensor (32, 32000) (op 'matmul') exceeds ANE family 2's max dimension 16384; tile the graph or target a higher chip."
2337
+ },
2338
+ {
2339
+ "device": "ANE8",
2340
+ "batch": 32,
2341
+ "status": "NotImplementedError: aneforge: tensor (32, 32000) (op 'matmul') exceeds ANE family 2's max dimension 16384; tile the graph or target a higher chip."
2342
+ }
2343
+ ]
2344
+ }
2345
+ },
2346
+ {
2347
+ "script": "roofline_analysis.py",
2348
+ "result_file": "roofline_analysis_results.json",
2349
+ "returncode": 1,
2350
+ "seconds": 0.1,
2351
+ "error": [
2352
+ "KeyError: 'ane'"
2353
+ ]
2354
+ }
2355
+ ]
2356
+ }
raw/roofline-apple-m1-max-MacBookPro18_2-8dc9588b5db6-2d0173cb.json ADDED
@@ -0,0 +1,2440 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "suite": "roofline",
3
+ "schema_version": 2,
4
+ "contributor": "sbryngelson",
5
+ "machine": {
6
+ "hardware": {
7
+ "model_identifier": "MacBookPro18,2",
8
+ "chip": "Apple M1 Max",
9
+ "physical_cpu": 10,
10
+ "p_cores": 8,
11
+ "e_cores": 2,
12
+ "gpu_cores": 32,
13
+ "memory_architecture": "unified",
14
+ "ram_gb": 32,
15
+ "ram_bytes": 34359738368,
16
+ "ane_rated_tops": 11.0
17
+ },
18
+ "hardware_hash": "8dc9588b5db6",
19
+ "environment": {
20
+ "model_name": "MacBook Pro",
21
+ "macos_version": "26.5.1",
22
+ "macos_build": "25F80",
23
+ "aneforge_version": "0.2.0",
24
+ "aneforge_git": {
25
+ "commit": "d6de5315b05940a2f698f8da27fa35ab69440eee",
26
+ "short": "d6de5315b059",
27
+ "branch": "main",
28
+ "dirty": false,
29
+ "main": {
30
+ "ref": "origin/main",
31
+ "merge_base": "d6de5315b05940a2f698f8da27fa35ab69440eee",
32
+ "merge_base_short": "d6de5315b059",
33
+ "commits_ahead": 0,
34
+ "commits_behind": 0
35
+ }
36
+ },
37
+ "power": {
38
+ "source": "ac",
39
+ "is_laptop": true,
40
+ "energy_mode": {
41
+ "mode": "high_power",
42
+ "raw": 2,
43
+ "key": "powermode"
44
+ },
45
+ "battery_pct": 60,
46
+ "battery_state": "charging"
47
+ },
48
+ "gpu_wired_limit_mb": 0,
49
+ "thermal_state": "nominal",
50
+ "have_sudo": true,
51
+ "timestamp_utc": "2026-08-01T23:53:56Z",
52
+ "sudo_authorized": true
53
+ },
54
+ "run_id": "2d0173cb"
55
+ },
56
+ "numeric_cliffs": {
57
+ "plane": "numeric",
58
+ "matmul_saturation": {
59
+ "metric": "output_magnitude_inf_cliff",
60
+ "expected": 32752,
61
+ "by_K": [
62
+ {
63
+ "cliff": 32758.8,
64
+ "K": 4,
65
+ "expected": 32752
66
+ },
67
+ {
68
+ "cliff": 32758.8,
69
+ "K": 8,
70
+ "expected": 32752
71
+ },
72
+ {
73
+ "cliff": 32758.8,
74
+ "K": 32,
75
+ "expected": 32752
76
+ },
77
+ {
78
+ "cliff": 32758.8,
79
+ "K": 64,
80
+ "expected": 32752
81
+ },
82
+ {
83
+ "cliff": 32758.8,
84
+ "K": 128,
85
+ "expected": 32752
86
+ }
87
+ ]
88
+ },
89
+ "slice_saturation": {
90
+ "metric": "sliced_value_inf_cliff",
91
+ "cliff": 4094.1,
92
+ "expected_pre_a16": 4094,
93
+ "interpretation": "None == exact (A16/M5); a number == the pre-A16 clamp"
94
+ },
95
+ "reduce_exactness": {
96
+ "metric": "last_all_exact_integer_row_sum",
97
+ "expected_boundary": 2048,
98
+ "n_terms": 8,
99
+ "last_all_exact": 2048,
100
+ "first_wrong": {
101
+ "target": 2049,
102
+ "got": 2050.0
103
+ }
104
+ }
105
+ },
106
+ "perf_rooflines": [
107
+ {
108
+ "script": "device_saturation_sweep.py",
109
+ "result_file": "device_saturation_sweep_results.json",
110
+ "returncode": 0,
111
+ "seconds": 250.5,
112
+ "summary": {
113
+ "gemm": [
114
+ {
115
+ "N": 512,
116
+ "gflop": 0.268435456,
117
+ "devices": {
118
+ "CPU": {
119
+ "dtype": "fp32",
120
+ "lat_ms": 0.777167035266757,
121
+ "gflops": 345.4025245780805,
122
+ "relerr": 4.0286235201448194e-07,
123
+ "power": {
124
+ "active_pkg_W": 27.797,
125
+ "active_pkg_cv_pct": 0.7748318837019047,
126
+ "iter_ms": 1.0536291444623604,
127
+ "n_pm_samples": 8,
128
+ "ane_active_mW": 0.0,
129
+ "gpu_active_mW": 17.0,
130
+ "cpu_active_mW": 27847.0,
131
+ "flags": [
132
+ "only 8 pm samples - short window, treat as indicative"
133
+ ],
134
+ "gflops_sustained": 254.77223880037567,
135
+ "perf_per_W": 9.165458099808456
136
+ }
137
+ },
138
+ "ANE": {
139
+ "dtype": "fp16",
140
+ "lat_ms": 0.4769589868374169,
141
+ "gflops": 562.8061602946644,
142
+ "relerr": 0.0025780039702379184,
143
+ "power": {
144
+ "active_pkg_W": 3.7005,
145
+ "active_pkg_cv_pct": 4.830577898218006,
146
+ "iter_ms": 0.36870689663929385,
147
+ "n_pm_samples": 8,
148
+ "ane_active_mW": 1198.0,
149
+ "gpu_active_mW": 45.5,
150
+ "cpu_active_mW": 2449.0,
151
+ "flags": [
152
+ "only 8 pm samples - short window, treat as indicative"
153
+ ],
154
+ "gflops_sustained": 728.0456602432652,
155
+ "perf_per_W": 196.74251053729637
156
+ }
157
+ }
158
+ }
159
+ },
160
+ {
161
+ "N": 1024,
162
+ "gflop": 2.147483648,
163
+ "devices": {
164
+ "CPU": {
165
+ "dtype": "fp32",
166
+ "lat_ms": 4.869958036579192,
167
+ "gflops": 440.9655343782918,
168
+ "relerr": 4.063342037754029e-07,
169
+ "power": {
170
+ "active_pkg_W": 31.6355,
171
+ "active_pkg_cv_pct": 1.0562364975656844,
172
+ "iter_ms": 6.11520061815945,
173
+ "n_pm_samples": 8,
174
+ "ane_active_mW": 0.0,
175
+ "gpu_active_mW": 42.5,
176
+ "cpu_active_mW": 31580.0,
177
+ "flags": [
178
+ "only 8 pm samples - short window, treat as indicative"
179
+ ],
180
+ "gflops_sustained": 351.17141400445973,
181
+ "perf_per_W": 11.100548877193651
182
+ }
183
+ },
184
+ "ANE": {
185
+ "dtype": "fp16",
186
+ "lat_ms": 0.9977910085581243,
187
+ "gflops": 2152.2379231531254,
188
+ "relerr": 0.005528352999597524,
189
+ "power": {
190
+ "active_pkg_W": 5.01,
191
+ "active_pkg_cv_pct": 7.368484648672897,
192
+ "iter_ms": 1.0159699708606686,
193
+ "n_pm_samples": 8,
194
+ "ane_active_mW": 2137.0,
195
+ "gpu_active_mW": 54.0,
196
+ "cpu_active_mW": 2811.0,
197
+ "flags": [
198
+ "only 8 pm samples - short window, treat as indicative"
199
+ ],
200
+ "gflops_sustained": 2113.727481709702,
201
+ "perf_per_W": 421.90169295602834
202
+ }
203
+ }
204
+ }
205
+ },
206
+ {
207
+ "N": 2048,
208
+ "gflop": 17.179869184,
209
+ "devices": {
210
+ "CPU": {
211
+ "dtype": "fp32",
212
+ "lat_ms": 34.19183299411088,
213
+ "gflops": 502.45534326747025,
214
+ "relerr": 4.211573548868625e-07,
215
+ "power": {
216
+ "active_pkg_W": 34.0905,
217
+ "active_pkg_cv_pct": 1.6317573677516548,
218
+ "iter_ms": 46.09770795354119,
219
+ "n_pm_samples": 8,
220
+ "ane_active_mW": 0.0,
221
+ "gpu_active_mW": 63.0,
222
+ "cpu_active_mW": 34011.0,
223
+ "flags": [
224
+ "only 8 pm samples - short window, treat as indicative"
225
+ ],
226
+ "gflops_sustained": 372.6838046115969,
227
+ "perf_per_W": 10.932189454880302
228
+ }
229
+ },
230
+ "ANE": {
231
+ "dtype": "fp16",
232
+ "lat_ms": 4.296583007089794,
233
+ "gflops": 3998.495817641947,
234
+ "relerr": 0.012131920427695626,
235
+ "power": {
236
+ "active_pkg_W": 5.311,
237
+ "active_pkg_cv_pct": 5.963995854210202,
238
+ "iter_ms": 4.595219065355728,
239
+ "n_pm_samples": 8,
240
+ "ane_active_mW": 3017.0,
241
+ "gpu_active_mW": 81.0,
242
+ "cpu_active_mW": 2194.5,
243
+ "flags": [
244
+ "only 8 pm samples - short window, treat as indicative"
245
+ ],
246
+ "gflops_sustained": 3738.6398645327827,
247
+ "perf_per_W": 703.9427348018796
248
+ }
249
+ }
250
+ }
251
+ },
252
+ {
253
+ "N": 4096,
254
+ "gflop": 137.438953472,
255
+ "devices": {
256
+ "CPU": {
257
+ "dtype": "fp32",
258
+ "lat_ms": 269.62491701124236,
259
+ "gflops": 509.7412917006825,
260
+ "relerr": 4.410294839666285e-07,
261
+ "power": {
262
+ "active_pkg_W": 38.813,
263
+ "active_pkg_cv_pct": 1.7369694913682499,
264
+ "iter_ms": 298.33819605889454,
265
+ "n_pm_samples": 8,
266
+ "ane_active_mW": 0.0,
267
+ "gpu_active_mW": 82.5,
268
+ "cpu_active_mW": 38722.5,
269
+ "flags": [
270
+ "only 8 pm samples - short window, treat as indicative"
271
+ ],
272
+ "gflops_sustained": 460.68172056945855,
273
+ "perf_per_W": 11.869263405803688
274
+ }
275
+ },
276
+ "ANE": {
277
+ "dtype": "fp16",
278
+ "lat_ms": 30.129666964057833,
279
+ "gflops": 4561.582231756931,
280
+ "relerr": 0.027237621125542205,
281
+ "power": {
282
+ "active_pkg_W": 4.76,
283
+ "active_pkg_cv_pct": 1.3620782420283244,
284
+ "iter_ms": 31.452654720051218,
285
+ "n_pm_samples": 8,
286
+ "ane_active_mW": 3518.0,
287
+ "gpu_active_mW": 105.5,
288
+ "cpu_active_mW": 1076.5,
289
+ "flags": [
290
+ "only 8 pm samples - short window, treat as indicative"
291
+ ],
292
+ "gflops_sustained": 4369.709161127885,
293
+ "perf_per_W": 918.0061262873708
294
+ }
295
+ }
296
+ }
297
+ }
298
+ ],
299
+ "conv": [
300
+ {
301
+ "C": 64,
302
+ "B": 8,
303
+ "HxW": "64x64",
304
+ "gflop": 2.415919104,
305
+ "devices": {
306
+ "CPU": {
307
+ "dtype": "fp32",
308
+ "lat_ms": 70.26704103918746,
309
+ "gflops": 4.297745906670273,
310
+ "relerr": 0.0,
311
+ "note": "B=1 timed, per-element GFLOP/s",
312
+ "power": {
313
+ "active_pkg_W": 4.766,
314
+ "active_pkg_cv_pct": 0.776207527224188,
315
+ "iter_ms": 569.2128565537537,
316
+ "n_pm_samples": 8,
317
+ "ane_active_mW": 0.0,
318
+ "gpu_active_mW": 90.0,
319
+ "cpu_active_mW": 4663.0,
320
+ "flags": [
321
+ "only 8 pm samples - short window, treat as indicative"
322
+ ],
323
+ "gflops_sustained": 4.244315770776784,
324
+ "perf_per_W": 0.890540447078637
325
+ }
326
+ },
327
+ "ANE": {
328
+ "dtype": "fp16",
329
+ "lat_ms": 1.3824999914504588,
330
+ "gflops": 1747.5002668646116,
331
+ "relerr": 0.0003671660721200674,
332
+ "power": {
333
+ "active_pkg_W": 5.5045,
334
+ "active_pkg_cv_pct": 0.6031566725849693,
335
+ "iter_ms": 1.3899038744797854,
336
+ "n_pm_samples": 8,
337
+ "ane_active_mW": 1844.0,
338
+ "gpu_active_mW": 86.0,
339
+ "cpu_active_mW": 3563.0,
340
+ "flags": [
341
+ "only 8 pm samples - short window, treat as indicative"
342
+ ],
343
+ "gflops_sustained": 1738.1915025628896,
344
+ "perf_per_W": 315.7764560928131
345
+ }
346
+ }
347
+ }
348
+ },
349
+ {
350
+ "C": 128,
351
+ "B": 8,
352
+ "HxW": "64x64",
353
+ "gflop": 9.663676416,
354
+ "devices": {
355
+ "CPU": {
356
+ "dtype": "fp32",
357
+ "lat_ms": 280.43133398750797,
358
+ "gflops": 4.3075056372046125,
359
+ "relerr": 0.0,
360
+ "note": "B=1 timed, per-element GFLOP/s",
361
+ "power": {
362
+ "active_pkg_W": 5.178,
363
+ "active_pkg_cv_pct": 6.143078779469451,
364
+ "iter_ms": 2250.1118473204165,
365
+ "n_pm_samples": 8,
366
+ "ane_active_mW": 0.0,
367
+ "gpu_active_mW": 0.0,
368
+ "cpu_active_mW": 5169.0,
369
+ "flags": [
370
+ "only 8 pm samples - short window, treat as indicative"
371
+ ],
372
+ "gflops_sustained": 4.294753804131182,
373
+ "perf_per_W": 0.82942329164372
374
+ }
375
+ },
376
+ "ANE": {
377
+ "dtype": "fp16",
378
+ "lat_ms": 3.025042009539902,
379
+ "gflops": 3194.5594095963675,
380
+ "relerr": 0.0003752040423183182,
381
+ "power": {
382
+ "active_pkg_W": 4.766,
383
+ "active_pkg_cv_pct": 6.6843249768723325,
384
+ "iter_ms": 3.378567578247066,
385
+ "n_pm_samples": 8,
386
+ "ane_active_mW": 2331.0,
387
+ "gpu_active_mW": 0.0,
388
+ "cpu_active_mW": 3012.0,
389
+ "flags": [
390
+ "only 8 pm samples - short window, treat as indicative"
391
+ ],
392
+ "gflops_sustained": 2860.288033964351,
393
+ "perf_per_W": 600.1443629803506
394
+ }
395
+ }
396
+ }
397
+ },
398
+ {
399
+ "C": 256,
400
+ "B": 4,
401
+ "HxW": "64x64",
402
+ "gflop": 19.327352832,
403
+ "devices": {
404
+ "CPU": {
405
+ "dtype": "fp32",
406
+ "lat_ms": 1117.9126670467667,
407
+ "gflops": 4.32219649211459,
408
+ "relerr": 0.0,
409
+ "note": "B=1 timed, per-element GFLOP/s",
410
+ "power": {
411
+ "active_pkg_W": 5.669,
412
+ "active_pkg_cv_pct": 1.7050596010610326,
413
+ "iter_ms": 4494.1302289953455,
414
+ "n_pm_samples": 8,
415
+ "ane_active_mW": 0.0,
416
+ "gpu_active_mW": 104.5,
417
+ "cpu_active_mW": 5543.0,
418
+ "flags": [
419
+ "only 8 pm samples - short window, treat as indicative"
420
+ ],
421
+ "gflops_sustained": 4.300576940851265,
422
+ "perf_per_W": 0.7586129724556827
423
+ }
424
+ },
425
+ "ANE": {
426
+ "dtype": "fp16",
427
+ "lat_ms": 4.107708984520286,
428
+ "gflops": 4705.141699383828,
429
+ "relerr": 0.0003900783744201334,
430
+ "power": {
431
+ "active_pkg_W": 4.9055,
432
+ "active_pkg_cv_pct": 6.521534850272245,
433
+ "iter_ms": 4.415694028986365,
434
+ "n_pm_samples": 8,
435
+ "ane_active_mW": 3180.0,
436
+ "gpu_active_mW": 0.0,
437
+ "cpu_active_mW": 2232.5,
438
+ "flags": [
439
+ "only 8 pm samples - short window, treat as indicative"
440
+ ],
441
+ "gflops_sustained": 4376.968310106542,
442
+ "perf_per_W": 892.2573254727432
443
+ }
444
+ }
445
+ }
446
+ },
447
+ {
448
+ "C": 512,
449
+ "B": 2,
450
+ "HxW": "64x64",
451
+ "gflop": 38.654705664,
452
+ "devices": {
453
+ "CPU": {
454
+ "dtype": "fp32",
455
+ "lat_ms": 4467.2282909741625,
456
+ "gflops": 4.326475293651336,
457
+ "relerr": 0.0,
458
+ "note": "B=1 timed, per-element GFLOP/s",
459
+ "power": {
460
+ "active_pkg_W": 5.5225,
461
+ "active_pkg_cv_pct": 4.4185626425586975,
462
+ "iter_ms": 8941.676250018645,
463
+ "n_pm_samples": 8,
464
+ "ane_active_mW": 0.0,
465
+ "gpu_active_mW": 117.5,
466
+ "cpu_active_mW": 5399.0,
467
+ "flags": [
468
+ "only 8 pm samples - short window, treat as indicative"
469
+ ],
470
+ "gflops_sustained": 4.322982020727869,
471
+ "perf_per_W": 0.7827943903536204
472
+ }
473
+ },
474
+ "ANE": {
475
+ "dtype": "fp16",
476
+ "lat_ms": 5.64570800634101,
477
+ "gflops": 6846.741918034857,
478
+ "relerr": 0.0004190581983637058,
479
+ "power": {
480
+ "active_pkg_W": 6.657,
481
+ "active_pkg_cv_pct": 14.669477792332634,
482
+ "iter_ms": 5.995203944104534,
483
+ "n_pm_samples": 8,
484
+ "ane_active_mW": 4342.5,
485
+ "gpu_active_mW": 126.0,
486
+ "cpu_active_mW": 2096.0,
487
+ "flags": [
488
+ "only 8 pm samples - short window, treat as indicative"
489
+ ],
490
+ "gflops_sustained": 6447.604789493714,
491
+ "perf_per_W": 968.5451088318632
492
+ }
493
+ }
494
+ }
495
+ }
496
+ ],
497
+ "peaks": {
498
+ "gemm": {
499
+ "CPU": {
500
+ "peak_gflops": 509.7412917006825,
501
+ "peak_gflops_size": 4096,
502
+ "peak_gflops_relerr": 4.410294839666285e-07,
503
+ "peak_perf_per_W": 11.869263405803688,
504
+ "peak_perf_per_W_size": 4096
505
+ },
506
+ "ANE": {
507
+ "peak_gflops": 4561.582231756931,
508
+ "peak_gflops_size": 4096,
509
+ "peak_gflops_relerr": 0.027237621125542205,
510
+ "peak_perf_per_W": 918.0061262873708,
511
+ "peak_perf_per_W_size": 4096
512
+ }
513
+ },
514
+ "conv": {
515
+ "CPU": {
516
+ "peak_gflops": 4.326475293651336,
517
+ "peak_gflops_size": 512,
518
+ "peak_gflops_relerr": 0.0,
519
+ "peak_perf_per_W": 0.890540447078637,
520
+ "peak_perf_per_W_size": 64
521
+ },
522
+ "ANE": {
523
+ "peak_gflops": 6846.741918034857,
524
+ "peak_gflops_size": 512,
525
+ "peak_gflops_relerr": 0.0004190581983637058,
526
+ "peak_perf_per_W": 968.5451088318632,
527
+ "peak_perf_per_W_size": 512
528
+ }
529
+ }
530
+ },
531
+ "meta": {
532
+ "backends": {
533
+ "ane": true,
534
+ "mlx": false,
535
+ "sudo": true
536
+ },
537
+ "gemm_ns": [
538
+ 512,
539
+ 1024,
540
+ 2048,
541
+ 4096
542
+ ],
543
+ "conv_configs": [
544
+ [
545
+ 64,
546
+ 8
547
+ ],
548
+ [
549
+ 128,
550
+ 8
551
+ ],
552
+ [
553
+ 256,
554
+ 4
555
+ ],
556
+ [
557
+ 512,
558
+ 2
559
+ ]
560
+ ],
561
+ "conv_spatial": 64,
562
+ "power_window_s": 2.5,
563
+ "reps": 8,
564
+ "idle_mW": {
565
+ "ane": 0.0,
566
+ "cpu": 716.0,
567
+ "gpu": 611.0
568
+ },
569
+ "idle_pkg_mW": 1315.5
570
+ }
571
+ }
572
+ },
573
+ {
574
+ "script": "device_bandwidth_roofline.py",
575
+ "result_file": "device_bandwidth_roofline_results.json",
576
+ "returncode": 0,
577
+ "seconds": 116.9,
578
+ "summary": {
579
+ "backends": {
580
+ "ane": true,
581
+ "mlx": false,
582
+ "sudo": true
583
+ },
584
+ "window_s": 2.0,
585
+ "pm_interval_ms": 500,
586
+ "sizes": [
587
+ 1048576,
588
+ 8388608,
589
+ 33554432
590
+ ],
591
+ "idle_mW": {
592
+ "ane": 0.0,
593
+ "cpu": 782.5,
594
+ "gpu": 762.5
595
+ },
596
+ "idle_pkg_mW": 1542.5,
597
+ "results": {
598
+ "roofline": {
599
+ "streaming (relu / x*2)": {
600
+ "byte_factor": 2,
601
+ "sizes": [
602
+ {
603
+ "nelem": 1048576,
604
+ "shape": [
605
+ 256,
606
+ 4096
607
+ ],
608
+ "ane_gbps": 4.48029453528996,
609
+ "ane_lat_ms": 0.9361670236103237,
610
+ "ane_relerr": 0.00020780100009547926,
611
+ "cpu_gbps": 86.44394037007775,
612
+ "cpu_lat_ms": 0.09704101830720901
613
+ },
614
+ {
615
+ "nelem": 8388608,
616
+ "shape": [
617
+ 2048,
618
+ 4096
619
+ ],
620
+ "ane_gbps": 6.5619844371166955,
621
+ "ane_lat_ms": 5.113458028063178,
622
+ "ane_relerr": 0.000207619501174141,
623
+ "cpu_gbps": 64.11164485796536,
624
+ "cpu_lat_ms": 1.04674999602139
625
+ },
626
+ {
627
+ "nelem": 33554432,
628
+ "shape": [
629
+ 8192,
630
+ 4096
631
+ ],
632
+ "ane_gbps": 6.918305849613406,
633
+ "ane_lat_ms": 19.400375022087246,
634
+ "ane_relerr": 0.00020772223594448558,
635
+ "cpu_gbps": 73.3096308966033,
636
+ "cpu_lat_ms": 3.6616669967770576
637
+ }
638
+ ],
639
+ "peak": {
640
+ "ane": {
641
+ "gbps": 6.918305849613406,
642
+ "at_nelem": 33554432
643
+ },
644
+ "cpu": {
645
+ "gbps": 86.44394037007775,
646
+ "at_nelem": 1048576
647
+ }
648
+ },
649
+ "power": {
650
+ "ane": {
651
+ "iter_ms": 19.314037431012537,
652
+ "iters": 246,
653
+ "n_pm_samples": 8,
654
+ "ane_loaded_mW": 244.0,
655
+ "ane_active_mW": 244.0,
656
+ "cpu_loaded_mW": 4762.5,
657
+ "cpu_active_mW": 3980.0,
658
+ "gpu_loaded_mW": 684.0,
659
+ "gpu_active_mW": 0.0,
660
+ "loaded_pkg_W": 5.691,
661
+ "active_pkg_W": 4.1485,
662
+ "active_pkg_mean_W": 4.144125,
663
+ "active_pkg_min_W": 3.9605,
664
+ "active_pkg_p90_W": 4.271100000000001,
665
+ "active_pkg_cv_pct": 1.8969722181435018,
666
+ "flags": [
667
+ "only 8 pm samples - short window, treat as indicative"
668
+ ],
669
+ "gbps_loop": 6.949232053598834,
670
+ "gbps_per_W": 1.6751192126307903
671
+ },
672
+ "cpu": {
673
+ "iter_ms": 3.8599550970705696,
674
+ "iters": 1236,
675
+ "n_pm_samples": 8,
676
+ "ane_loaded_mW": 0.0,
677
+ "ane_active_mW": 0.0,
678
+ "cpu_loaded_mW": 5527.0,
679
+ "cpu_active_mW": 4744.5,
680
+ "gpu_loaded_mW": 698.0,
681
+ "gpu_active_mW": 0.0,
682
+ "loaded_pkg_W": 6.22,
683
+ "active_pkg_W": 4.6775,
684
+ "active_pkg_mean_W": 4.69325,
685
+ "active_pkg_min_W": 4.5775,
686
+ "active_pkg_p90_W": 4.8247,
687
+ "active_pkg_cv_pct": 1.6236525443323349,
688
+ "flags": [
689
+ "only 8 pm samples - short window, treat as indicative"
690
+ ],
691
+ "gbps_loop": 69.5436732421378,
692
+ "gbps_per_W": 14.867701387950357
693
+ }
694
+ }
695
+ },
696
+ "gelu (light compute)": {
697
+ "byte_factor": 2,
698
+ "sizes": [
699
+ {
700
+ "nelem": 1048576,
701
+ "shape": [
702
+ 256,
703
+ 4096
704
+ ],
705
+ "ane_gbps": 3.1177648452673354,
706
+ "ane_lat_ms": 1.345291966572404,
707
+ "ane_relerr": 0.002399125839984875,
708
+ "cpu_gbps": 72.65503640226375,
709
+ "cpu_lat_ms": 0.11545803863555193
710
+ },
711
+ {
712
+ "nelem": 8388608,
713
+ "shape": [
714
+ 2048,
715
+ 4096
716
+ ],
717
+ "ane_gbps": 6.509368084810967,
718
+ "ane_lat_ms": 5.154790997039527,
719
+ "ane_relerr": 0.0024010734360187433,
720
+ "cpu_gbps": 100.25600540939688,
721
+ "cpu_lat_ms": 0.6693750037811697
722
+ },
723
+ {
724
+ "nelem": 33554432,
725
+ "shape": [
726
+ 8192,
727
+ 4096
728
+ ],
729
+ "ane_gbps": 6.812362319168898,
730
+ "ane_lat_ms": 19.702083023730665,
731
+ "ane_relerr": 0.002402333254135391,
732
+ "cpu_gbps": 97.25481736575972,
733
+ "cpu_lat_ms": 2.7601250330917537
734
+ }
735
+ ],
736
+ "peak": {
737
+ "ane": {
738
+ "gbps": 6.812362319168898,
739
+ "at_nelem": 33554432
740
+ },
741
+ "cpu": {
742
+ "gbps": 100.25600540939688,
743
+ "at_nelem": 8388608
744
+ }
745
+ },
746
+ "power": {
747
+ "ane": {
748
+ "iter_ms": 20.37702592703326,
749
+ "iters": 233,
750
+ "n_pm_samples": 8,
751
+ "ane_loaded_mW": 305.0,
752
+ "ane_active_mW": 305.0,
753
+ "cpu_loaded_mW": 4505.0,
754
+ "cpu_active_mW": 3722.5,
755
+ "gpu_loaded_mW": 698.0,
756
+ "gpu_active_mW": 0.0,
757
+ "loaded_pkg_W": 5.5035,
758
+ "active_pkg_W": 3.961,
759
+ "active_pkg_mean_W": 3.990625,
760
+ "active_pkg_min_W": 3.6735,
761
+ "active_pkg_p90_W": 4.1463,
762
+ "active_pkg_cv_pct": 3.702119317581768,
763
+ "flags": [
764
+ "only 8 pm samples - short window, treat as indicative"
765
+ ],
766
+ "gbps_loop": 6.586718222797153,
767
+ "gbps_per_W": 1.6628927601103642
768
+ },
769
+ "cpu": {
770
+ "iter_ms": 2.8857574969512436,
771
+ "iters": 1634,
772
+ "n_pm_samples": 8,
773
+ "ane_loaded_mW": 0.0,
774
+ "ane_active_mW": 0.0,
775
+ "cpu_loaded_mW": 5774.0,
776
+ "cpu_active_mW": 4991.5,
777
+ "gpu_loaded_mW": 717.0,
778
+ "gpu_active_mW": 0.0,
779
+ "loaded_pkg_W": 6.4915,
780
+ "active_pkg_W": 4.949,
781
+ "active_pkg_mean_W": 4.957125,
782
+ "active_pkg_min_W": 4.8265,
783
+ "active_pkg_p90_W": 5.035399999999999,
784
+ "active_pkg_cv_pct": 1.0269733221753898,
785
+ "flags": [
786
+ "only 8 pm samples - short window, treat as indicative"
787
+ ],
788
+ "gbps_loop": 93.02079481162146,
789
+ "gbps_per_W": 18.79587690677338
790
+ }
791
+ }
792
+ },
793
+ "reduction (sum)": {
794
+ "byte_factor": 1,
795
+ "sizes": [
796
+ {
797
+ "nelem": 1048576,
798
+ "shape": [
799
+ 256,
800
+ 4096
801
+ ],
802
+ "ane_gbps": 4.099002465281776,
803
+ "ane_lat_ms": 0.5116249667480588,
804
+ "ane_relerr": 0.0007224220967624156,
805
+ "cpu_gbps": 13.278366879177003,
806
+ "cpu_lat_ms": 0.31587498961016536
807
+ },
808
+ {
809
+ "nelem": 8388608,
810
+ "shape": [
811
+ 2048,
812
+ 4096
813
+ ],
814
+ "ane_gbps": 10.235208358880309,
815
+ "ane_lat_ms": 1.6391670214943588,
816
+ "ane_relerr": 0.000809213207233167,
817
+ "cpu_gbps": 24.043290391418612,
818
+ "cpu_lat_ms": 1.3955840258859098
819
+ },
820
+ {
821
+ "nelem": 33554432,
822
+ "shape": [
823
+ 8192,
824
+ 4096
825
+ ],
826
+ "ane_gbps": 12.637509322242892,
827
+ "ane_lat_ms": 5.310291948262602,
828
+ "ane_relerr": 0.0008128390012191241,
829
+ "cpu_gbps": 23.373037487437976,
830
+ "cpu_lat_ms": 5.742417008150369
831
+ }
832
+ ],
833
+ "peak": {
834
+ "ane": {
835
+ "gbps": 12.637509322242892,
836
+ "at_nelem": 33554432
837
+ },
838
+ "cpu": {
839
+ "gbps": 24.043290391418612,
840
+ "at_nelem": 8388608
841
+ }
842
+ },
843
+ "power": {
844
+ "ane": {
845
+ "iter_ms": 5.686856247876937,
846
+ "iters": 831,
847
+ "n_pm_samples": 8,
848
+ "ane_loaded_mW": 936.0,
849
+ "ane_active_mW": 936.0,
850
+ "cpu_loaded_mW": 3687.5,
851
+ "cpu_active_mW": 2905.0,
852
+ "gpu_loaded_mW": 708.0,
853
+ "gpu_active_mW": 0.0,
854
+ "loaded_pkg_W": 5.3315,
855
+ "active_pkg_W": 3.789,
856
+ "active_pkg_mean_W": 3.761875,
857
+ "active_pkg_min_W": 3.4215,
858
+ "active_pkg_p90_W": 3.8644,
859
+ "active_pkg_cv_pct": 2.5504734259414676,
860
+ "flags": [
861
+ "only 8 pm samples - short window, treat as indicative"
862
+ ],
863
+ "gbps_loop": 11.80069639091961,
864
+ "gbps_per_W": 3.1144619664607047
865
+ },
866
+ "cpu": {
867
+ "iter_ms": 5.781728048842945,
868
+ "iters": 820,
869
+ "n_pm_samples": 8,
870
+ "ane_loaded_mW": 0.0,
871
+ "ane_active_mW": 0.0,
872
+ "cpu_loaded_mW": 6945.5,
873
+ "cpu_active_mW": 6163.0,
874
+ "gpu_loaded_mW": 713.5,
875
+ "gpu_active_mW": 0.0,
876
+ "loaded_pkg_W": 7.6555,
877
+ "active_pkg_W": 6.113,
878
+ "active_pkg_mean_W": 6.11975,
879
+ "active_pkg_min_W": 6.0275,
880
+ "active_pkg_p90_W": 6.1896,
881
+ "active_pkg_cv_pct": 0.9034398742769782,
882
+ "flags": [
883
+ "only 8 pm samples - short window, treat as indicative"
884
+ ],
885
+ "gbps_loop": 23.214119873185666,
886
+ "gbps_per_W": 3.7975003882194773
887
+ }
888
+ }
889
+ },
890
+ "softmax": {
891
+ "byte_factor": 2,
892
+ "sizes": [
893
+ {
894
+ "nelem": 1048576,
895
+ "shape": [
896
+ 256,
897
+ 4096
898
+ ],
899
+ "ane_gbps": 2.7845225780473113,
900
+ "ane_lat_ms": 1.5062919701449573,
901
+ "ane_relerr": 0.0010240666804474938,
902
+ "cpu_gbps": 3.0332139828562936,
903
+ "cpu_lat_ms": 2.7655839803628623
904
+ },
905
+ {
906
+ "nelem": 8388608,
907
+ "shape": [
908
+ 2048,
909
+ 4096
910
+ ],
911
+ "ane_gbps": 5.142015339514829,
912
+ "ane_lat_ms": 6.52554101543501,
913
+ "ane_relerr": 0.0010582602743864904,
914
+ "cpu_gbps": 2.880425090664484,
915
+ "cpu_lat_ms": 23.298250045627356
916
+ },
917
+ {
918
+ "nelem": 33554432,
919
+ "shape": [
920
+ 8192,
921
+ 4096
922
+ ],
923
+ "ane_gbps": 4.046775878355852,
924
+ "ane_lat_ms": 33.16658298717812,
925
+ "ane_relerr": 0.0010575844059769537,
926
+ "cpu_gbps": 2.8858028154671387,
927
+ "cpu_lat_ms": 93.01933401729912
928
+ }
929
+ ],
930
+ "peak": {
931
+ "ane": {
932
+ "gbps": 5.142015339514829,
933
+ "at_nelem": 8388608
934
+ },
935
+ "cpu": {
936
+ "gbps": 3.0332139828562936,
937
+ "at_nelem": 1048576
938
+ }
939
+ },
940
+ "power": {
941
+ "ane": {
942
+ "iter_ms": 25.994074677850012,
943
+ "iters": 183,
944
+ "n_pm_samples": 8,
945
+ "ane_loaded_mW": 587.0,
946
+ "ane_active_mW": 587.0,
947
+ "cpu_loaded_mW": 3969.5,
948
+ "cpu_active_mW": 3187.0,
949
+ "gpu_loaded_mW": 712.0,
950
+ "gpu_active_mW": 0.0,
951
+ "loaded_pkg_W": 5.274,
952
+ "active_pkg_W": 3.7315,
953
+ "active_pkg_mean_W": 3.713375,
954
+ "active_pkg_min_W": 3.4435,
955
+ "active_pkg_p90_W": 4.0121,
956
+ "active_pkg_cv_pct": 4.261721546703404,
957
+ "flags": [
958
+ "only 8 pm samples - short window, treat as indicative"
959
+ ],
960
+ "gbps_loop": 5.163397030415134,
961
+ "gbps_per_W": 1.3837322873951854
962
+ },
963
+ "cpu": {
964
+ "iter_ms": 94.25616011767667,
965
+ "iters": 51,
966
+ "n_pm_samples": 8,
967
+ "ane_loaded_mW": 0.0,
968
+ "ane_active_mW": 0.0,
969
+ "cpu_loaded_mW": 5891.0,
970
+ "cpu_active_mW": 5108.5,
971
+ "gpu_loaded_mW": 718.0,
972
+ "gpu_active_mW": 0.0,
973
+ "loaded_pkg_W": 6.6045,
974
+ "active_pkg_W": 5.062,
975
+ "active_pkg_mean_W": 5.022625,
976
+ "active_pkg_min_W": 4.6545,
977
+ "active_pkg_p90_W": 5.1085,
978
+ "active_pkg_cv_pct": 2.165804321909658,
979
+ "flags": [
980
+ "only 8 pm samples - short window, treat as indicative"
981
+ ],
982
+ "gbps_loop": 2.84793540989644,
983
+ "gbps_per_W": 0.5626107091853891
984
+ }
985
+ }
986
+ },
987
+ "layer_norm": {
988
+ "byte_factor": 2,
989
+ "sizes": [
990
+ {
991
+ "nelem": 1048576,
992
+ "shape": [
993
+ 256,
994
+ 4096
995
+ ],
996
+ "ane_err": "RuntimeError: ane_e5rt_program_compile failed (mil=/Users/spencer/Models/.aneforge-cache/be7f77f75c7f8bb1d93ab898/model.mil, mask=0x4). See stderr for the actual Espresso error.",
997
+ "cpu_gbps": 4.208596478954501,
998
+ "cpu_lat_ms": 1.993207959458232
999
+ },
1000
+ {
1001
+ "nelem": 8388608,
1002
+ "shape": [
1003
+ 2048,
1004
+ 4096
1005
+ ],
1006
+ "ane_err": "RuntimeError: ane_e5rt_program_compile failed (mil=/Users/spencer/Models/.aneforge-cache/f4e66bff1746589c0ee1c4a8/model.mil, mask=0x4). See stderr for the actual Espresso error.",
1007
+ "cpu_gbps": 3.8384936258301043,
1008
+ "cpu_lat_ms": 17.48312503332272
1009
+ },
1010
+ {
1011
+ "nelem": 33554432,
1012
+ "shape": [
1013
+ 8192,
1014
+ 4096
1015
+ ],
1016
+ "ane_err": "RuntimeError: ane_e5rt_program_compile failed (mil=/Users/spencer/Models/.aneforge-cache/b0b6bcd88301a762baa4cc10/model.mil, mask=0x4). See stderr for the actual Espresso error.",
1017
+ "cpu_gbps": 3.8033174932469347,
1018
+ "cpu_lat_ms": 70.57929201982915
1019
+ }
1020
+ ],
1021
+ "peak": {
1022
+ "cpu": {
1023
+ "gbps": 4.208596478954501,
1024
+ "at_nelem": 1048576
1025
+ }
1026
+ },
1027
+ "power": {
1028
+ "cpu": {
1029
+ "iter_ms": 72.21409531881693,
1030
+ "iters": 66,
1031
+ "n_pm_samples": 8,
1032
+ "ane_loaded_mW": 0.0,
1033
+ "ane_active_mW": 0.0,
1034
+ "cpu_loaded_mW": 5625.5,
1035
+ "cpu_active_mW": 4843.0,
1036
+ "gpu_loaded_mW": 724.0,
1037
+ "gpu_active_mW": 0.0,
1038
+ "loaded_pkg_W": 6.3475,
1039
+ "active_pkg_W": 4.805,
1040
+ "active_pkg_mean_W": 4.9595,
1041
+ "active_pkg_min_W": 4.7225,
1042
+ "active_pkg_p90_W": 5.356599999999999,
1043
+ "active_pkg_cv_pct": 5.294724405931004,
1044
+ "flags": [
1045
+ "only 8 pm samples - short window, treat as indicative"
1046
+ ],
1047
+ "gbps_loop": 3.7172169064070983,
1048
+ "gbps_per_W": 0.773614340563392
1049
+ }
1050
+ }
1051
+ }
1052
+ },
1053
+ "coverage": {
1054
+ "rows": [
1055
+ {
1056
+ "op": "abs",
1057
+ "set": "_EMIT",
1058
+ "class": "bandwidth-bound",
1059
+ "where": "THIS bandwidth roofline"
1060
+ },
1061
+ {
1062
+ "op": "add",
1063
+ "set": "_EMIT",
1064
+ "class": "bandwidth-bound",
1065
+ "where": "THIS bandwidth roofline"
1066
+ },
1067
+ {
1068
+ "op": "adds",
1069
+ "set": "_EMIT",
1070
+ "class": "dispatch/latency-bound",
1071
+ "where": "floor finding (CPU wins tiny)"
1072
+ },
1073
+ {
1074
+ "op": "affine",
1075
+ "set": "_EMIT",
1076
+ "class": "UNCLASSIFIED",
1077
+ "where": "!! add to a class"
1078
+ },
1079
+ {
1080
+ "op": "atan",
1081
+ "set": "_EMIT",
1082
+ "class": "UNCLASSIFIED",
1083
+ "where": "!! add to a class"
1084
+ },
1085
+ {
1086
+ "op": "avg_pool",
1087
+ "set": "_EMIT",
1088
+ "class": "bandwidth-bound",
1089
+ "where": "THIS bandwidth roofline"
1090
+ },
1091
+ {
1092
+ "op": "batch_norm",
1093
+ "set": "_EMIT",
1094
+ "class": "bandwidth-bound",
1095
+ "where": "THIS bandwidth roofline"
1096
+ },
1097
+ {
1098
+ "op": "bmm",
1099
+ "set": "_EMIT",
1100
+ "class": "compute-bound",
1101
+ "where": "saturation sweep (GEMM/conv peaks)"
1102
+ },
1103
+ {
1104
+ "op": "bmm_w",
1105
+ "set": "_EMIT",
1106
+ "class": "UNCLASSIFIED",
1107
+ "where": "!! add to a class"
1108
+ },
1109
+ {
1110
+ "op": "cast",
1111
+ "set": "_EMIT",
1112
+ "class": "UNCLASSIFIED",
1113
+ "where": "!! add to a class"
1114
+ },
1115
+ {
1116
+ "op": "ceil",
1117
+ "set": "_EMIT",
1118
+ "class": "UNCLASSIFIED",
1119
+ "where": "!! add to a class"
1120
+ },
1121
+ {
1122
+ "op": "channel_layer_norm",
1123
+ "set": "_EMIT",
1124
+ "class": "UNCLASSIFIED",
1125
+ "where": "!! add to a class"
1126
+ },
1127
+ {
1128
+ "op": "clamped_relu",
1129
+ "set": "_EMIT",
1130
+ "class": "UNCLASSIFIED",
1131
+ "where": "!! add to a class"
1132
+ },
1133
+ {
1134
+ "op": "clip",
1135
+ "set": "_EMIT",
1136
+ "class": "bandwidth-bound",
1137
+ "where": "THIS bandwidth roofline"
1138
+ },
1139
+ {
1140
+ "op": "concat",
1141
+ "set": "_EMIT",
1142
+ "class": "bandwidth-bound",
1143
+ "where": "THIS bandwidth roofline"
1144
+ },
1145
+ {
1146
+ "op": "const_array",
1147
+ "set": "_EMIT",
1148
+ "class": "UNCLASSIFIED",
1149
+ "where": "!! add to a class"
1150
+ },
1151
+ {
1152
+ "op": "conv",
1153
+ "set": "_EMIT",
1154
+ "class": "compute-bound",
1155
+ "where": "saturation sweep (GEMM/conv peaks)"
1156
+ },
1157
+ {
1158
+ "op": "conv_transpose",
1159
+ "set": "_EMIT",
1160
+ "class": "compute-bound",
1161
+ "where": "saturation sweep (GEMM/conv peaks)"
1162
+ },
1163
+ {
1164
+ "op": "cos",
1165
+ "set": "_EMIT",
1166
+ "class": "bandwidth-bound",
1167
+ "where": "THIS bandwidth roofline"
1168
+ },
1169
+ {
1170
+ "op": "crop",
1171
+ "set": "_EMIT",
1172
+ "class": "UNCLASSIFIED",
1173
+ "where": "!! add to a class"
1174
+ },
1175
+ {
1176
+ "op": "depth_to_space",
1177
+ "set": "_EMIT",
1178
+ "class": "UNCLASSIFIED",
1179
+ "where": "!! add to a class"
1180
+ },
1181
+ {
1182
+ "op": "dynamic_conv",
1183
+ "set": "_EMIT",
1184
+ "class": "UNCLASSIFIED",
1185
+ "where": "!! add to a class"
1186
+ },
1187
+ {
1188
+ "op": "einsum",
1189
+ "set": "_EMIT",
1190
+ "class": "UNCLASSIFIED",
1191
+ "where": "!! add to a class"
1192
+ },
1193
+ {
1194
+ "op": "elu",
1195
+ "set": "_EMIT",
1196
+ "class": "bandwidth-bound",
1197
+ "where": "THIS bandwidth roofline"
1198
+ },
1199
+ {
1200
+ "op": "equal",
1201
+ "set": "_EMIT",
1202
+ "class": "UNCLASSIFIED",
1203
+ "where": "!! add to a class"
1204
+ },
1205
+ {
1206
+ "op": "erf",
1207
+ "set": "_EMIT",
1208
+ "class": "bandwidth-bound",
1209
+ "where": "THIS bandwidth roofline"
1210
+ },
1211
+ {
1212
+ "op": "exp",
1213
+ "set": "_EMIT",
1214
+ "class": "bandwidth-bound",
1215
+ "where": "THIS bandwidth roofline"
1216
+ },
1217
+ {
1218
+ "op": "exp2",
1219
+ "set": "_EMIT",
1220
+ "class": "UNCLASSIFIED",
1221
+ "where": "!! add to a class"
1222
+ },
1223
+ {
1224
+ "op": "expand_dims",
1225
+ "set": "_EMIT",
1226
+ "class": "UNCLASSIFIED",
1227
+ "where": "!! add to a class"
1228
+ },
1229
+ {
1230
+ "op": "flatten2d",
1231
+ "set": "_EMIT",
1232
+ "class": "UNCLASSIFIED",
1233
+ "where": "!! add to a class"
1234
+ },
1235
+ {
1236
+ "op": "floor",
1237
+ "set": "_EMIT",
1238
+ "class": "UNCLASSIFIED",
1239
+ "where": "!! add to a class"
1240
+ },
1241
+ {
1242
+ "op": "gelu",
1243
+ "set": "_EMIT",
1244
+ "class": "bandwidth-bound",
1245
+ "where": "THIS bandwidth roofline"
1246
+ },
1247
+ {
1248
+ "op": "greater",
1249
+ "set": "_EMIT",
1250
+ "class": "UNCLASSIFIED",
1251
+ "where": "!! add to a class"
1252
+ },
1253
+ {
1254
+ "op": "greater_equal",
1255
+ "set": "_EMIT",
1256
+ "class": "UNCLASSIFIED",
1257
+ "where": "!! add to a class"
1258
+ },
1259
+ {
1260
+ "op": "group_norm",
1261
+ "set": "_EMIT",
1262
+ "class": "bandwidth-bound",
1263
+ "where": "THIS bandwidth roofline"
1264
+ },
1265
+ {
1266
+ "op": "instance_norm",
1267
+ "set": "_EMIT",
1268
+ "class": "UNCLASSIFIED",
1269
+ "where": "!! add to a class"
1270
+ },
1271
+ {
1272
+ "op": "inverse",
1273
+ "set": "_EMIT",
1274
+ "class": "UNCLASSIFIED",
1275
+ "where": "!! add to a class"
1276
+ },
1277
+ {
1278
+ "op": "l2_norm",
1279
+ "set": "_EMIT",
1280
+ "class": "bandwidth-bound",
1281
+ "where": "THIS bandwidth roofline"
1282
+ },
1283
+ {
1284
+ "op": "layer_norm",
1285
+ "set": "_EMIT",
1286
+ "class": "bandwidth-bound",
1287
+ "where": "THIS bandwidth roofline"
1288
+ },
1289
+ {
1290
+ "op": "leaky_relu",
1291
+ "set": "_EMIT",
1292
+ "class": "bandwidth-bound",
1293
+ "where": "THIS bandwidth roofline"
1294
+ },
1295
+ {
1296
+ "op": "less",
1297
+ "set": "_EMIT",
1298
+ "class": "UNCLASSIFIED",
1299
+ "where": "!! add to a class"
1300
+ },
1301
+ {
1302
+ "op": "less_equal",
1303
+ "set": "_EMIT",
1304
+ "class": "UNCLASSIFIED",
1305
+ "where": "!! add to a class"
1306
+ },
1307
+ {
1308
+ "op": "linear_activation",
1309
+ "set": "_EMIT",
1310
+ "class": "UNCLASSIFIED",
1311
+ "where": "!! add to a class"
1312
+ },
1313
+ {
1314
+ "op": "local_response_norm",
1315
+ "set": "_EMIT",
1316
+ "class": "UNCLASSIFIED",
1317
+ "where": "!! add to a class"
1318
+ },
1319
+ {
1320
+ "op": "log",
1321
+ "set": "_EMIT",
1322
+ "class": "bandwidth-bound",
1323
+ "where": "THIS bandwidth roofline"
1324
+ },
1325
+ {
1326
+ "op": "logical_not",
1327
+ "set": "_EMIT",
1328
+ "class": "UNCLASSIFIED",
1329
+ "where": "!! add to a class"
1330
+ },
1331
+ {
1332
+ "op": "matmul",
1333
+ "set": "_EMIT",
1334
+ "class": "compute-bound",
1335
+ "where": "saturation sweep (GEMM/conv peaks)"
1336
+ },
1337
+ {
1338
+ "op": "max_pool",
1339
+ "set": "_EMIT",
1340
+ "class": "bandwidth-bound",
1341
+ "where": "THIS bandwidth roofline"
1342
+ },
1343
+ {
1344
+ "op": "maximum",
1345
+ "set": "_EMIT",
1346
+ "class": "bandwidth-bound",
1347
+ "where": "THIS bandwidth roofline"
1348
+ },
1349
+ {
1350
+ "op": "minimum",
1351
+ "set": "_EMIT",
1352
+ "class": "bandwidth-bound",
1353
+ "where": "THIS bandwidth roofline"
1354
+ },
1355
+ {
1356
+ "op": "mul",
1357
+ "set": "_EMIT",
1358
+ "class": "bandwidth-bound",
1359
+ "where": "THIS bandwidth roofline"
1360
+ },
1361
+ {
1362
+ "op": "muls",
1363
+ "set": "_EMIT",
1364
+ "class": "dispatch/latency-bound",
1365
+ "where": "floor finding (CPU wins tiny)"
1366
+ },
1367
+ {
1368
+ "op": "not_equal",
1369
+ "set": "_EMIT",
1370
+ "class": "UNCLASSIFIED",
1371
+ "where": "!! add to a class"
1372
+ },
1373
+ {
1374
+ "op": "pixel_shuffle",
1375
+ "set": "_EMIT",
1376
+ "class": "bandwidth-bound",
1377
+ "where": "THIS bandwidth roofline"
1378
+ },
1379
+ {
1380
+ "op": "pixel_unshuffle",
1381
+ "set": "_EMIT",
1382
+ "class": "bandwidth-bound",
1383
+ "where": "THIS bandwidth roofline"
1384
+ },
1385
+ {
1386
+ "op": "pow",
1387
+ "set": "_EMIT",
1388
+ "class": "bandwidth-bound",
1389
+ "where": "THIS bandwidth roofline"
1390
+ },
1391
+ {
1392
+ "op": "prelu",
1393
+ "set": "_EMIT",
1394
+ "class": "UNCLASSIFIED",
1395
+ "where": "!! add to a class"
1396
+ },
1397
+ {
1398
+ "op": "real_div",
1399
+ "set": "_EMIT",
1400
+ "class": "bandwidth-bound",
1401
+ "where": "THIS bandwidth roofline"
1402
+ },
1403
+ {
1404
+ "op": "reduce_l1_norm",
1405
+ "set": "_EMIT",
1406
+ "class": "UNCLASSIFIED",
1407
+ "where": "!! add to a class"
1408
+ },
1409
+ {
1410
+ "op": "reduce_log_sum",
1411
+ "set": "_EMIT",
1412
+ "class": "UNCLASSIFIED",
1413
+ "where": "!! add to a class"
1414
+ },
1415
+ {
1416
+ "op": "reduce_log_sum_exp",
1417
+ "set": "_EMIT",
1418
+ "class": "UNCLASSIFIED",
1419
+ "where": "!! add to a class"
1420
+ },
1421
+ {
1422
+ "op": "reduce_max",
1423
+ "set": "_EMIT",
1424
+ "class": "bandwidth-bound",
1425
+ "where": "THIS bandwidth roofline"
1426
+ },
1427
+ {
1428
+ "op": "reduce_mean",
1429
+ "set": "_EMIT",
1430
+ "class": "bandwidth-bound",
1431
+ "where": "THIS bandwidth roofline"
1432
+ },
1433
+ {
1434
+ "op": "reduce_min",
1435
+ "set": "_EMIT",
1436
+ "class": "bandwidth-bound",
1437
+ "where": "THIS bandwidth roofline"
1438
+ },
1439
+ {
1440
+ "op": "reduce_sum",
1441
+ "set": "_EMIT",
1442
+ "class": "bandwidth-bound",
1443
+ "where": "THIS bandwidth roofline"
1444
+ },
1445
+ {
1446
+ "op": "reduce_sum_square",
1447
+ "set": "_EMIT",
1448
+ "class": "UNCLASSIFIED",
1449
+ "where": "!! add to a class"
1450
+ },
1451
+ {
1452
+ "op": "relu",
1453
+ "set": "_EMIT",
1454
+ "class": "bandwidth-bound",
1455
+ "where": "THIS bandwidth roofline"
1456
+ },
1457
+ {
1458
+ "op": "relu6",
1459
+ "set": "_EMIT",
1460
+ "class": "bandwidth-bound",
1461
+ "where": "THIS bandwidth roofline"
1462
+ },
1463
+ {
1464
+ "op": "reshape",
1465
+ "set": "_EMIT",
1466
+ "class": "bandwidth-bound",
1467
+ "where": "THIS bandwidth roofline"
1468
+ },
1469
+ {
1470
+ "op": "resize_bilinear",
1471
+ "set": "_EMIT",
1472
+ "class": "UNCLASSIFIED",
1473
+ "where": "!! add to a class"
1474
+ },
1475
+ {
1476
+ "op": "resize_nearest_neighbor",
1477
+ "set": "_EMIT",
1478
+ "class": "UNCLASSIFIED",
1479
+ "where": "!! add to a class"
1480
+ },
1481
+ {
1482
+ "op": "reverse",
1483
+ "set": "_EMIT",
1484
+ "class": "UNCLASSIFIED",
1485
+ "where": "!! add to a class"
1486
+ },
1487
+ {
1488
+ "op": "rms_norm",
1489
+ "set": "_EMIT",
1490
+ "class": "bandwidth-bound",
1491
+ "where": "THIS bandwidth roofline"
1492
+ },
1493
+ {
1494
+ "op": "round",
1495
+ "set": "_EMIT",
1496
+ "class": "UNCLASSIFIED",
1497
+ "where": "!! add to a class"
1498
+ },
1499
+ {
1500
+ "op": "rsqrt",
1501
+ "set": "_EMIT",
1502
+ "class": "bandwidth-bound",
1503
+ "where": "THIS bandwidth roofline"
1504
+ },
1505
+ {
1506
+ "op": "scaled_tanh",
1507
+ "set": "_EMIT",
1508
+ "class": "UNCLASSIFIED",
1509
+ "where": "!! add to a class"
1510
+ },
1511
+ {
1512
+ "op": "select",
1513
+ "set": "_EMIT",
1514
+ "class": "UNCLASSIFIED",
1515
+ "where": "!! add to a class"
1516
+ },
1517
+ {
1518
+ "op": "sigmoid",
1519
+ "set": "_EMIT",
1520
+ "class": "bandwidth-bound",
1521
+ "where": "THIS bandwidth roofline"
1522
+ },
1523
+ {
1524
+ "op": "sigmoid_hard",
1525
+ "set": "_EMIT",
1526
+ "class": "UNCLASSIFIED",
1527
+ "where": "!! add to a class"
1528
+ },
1529
+ {
1530
+ "op": "sign",
1531
+ "set": "_EMIT",
1532
+ "class": "UNCLASSIFIED",
1533
+ "where": "!! add to a class"
1534
+ },
1535
+ {
1536
+ "op": "silu",
1537
+ "set": "_EMIT",
1538
+ "class": "bandwidth-bound",
1539
+ "where": "THIS bandwidth roofline"
1540
+ },
1541
+ {
1542
+ "op": "sin",
1543
+ "set": "_EMIT",
1544
+ "class": "bandwidth-bound",
1545
+ "where": "THIS bandwidth roofline"
1546
+ },
1547
+ {
1548
+ "op": "slice_by_size",
1549
+ "set": "_EMIT",
1550
+ "class": "UNCLASSIFIED",
1551
+ "where": "!! add to a class"
1552
+ },
1553
+ {
1554
+ "op": "softmax",
1555
+ "set": "_EMIT",
1556
+ "class": "bandwidth-bound",
1557
+ "where": "THIS bandwidth roofline"
1558
+ },
1559
+ {
1560
+ "op": "softplus",
1561
+ "set": "_EMIT",
1562
+ "class": "bandwidth-bound",
1563
+ "where": "THIS bandwidth roofline"
1564
+ },
1565
+ {
1566
+ "op": "softsign",
1567
+ "set": "_EMIT",
1568
+ "class": "UNCLASSIFIED",
1569
+ "where": "!! add to a class"
1570
+ },
1571
+ {
1572
+ "op": "space_to_depth",
1573
+ "set": "_EMIT",
1574
+ "class": "UNCLASSIFIED",
1575
+ "where": "!! add to a class"
1576
+ },
1577
+ {
1578
+ "op": "split",
1579
+ "set": "_EMIT",
1580
+ "class": "UNCLASSIFIED",
1581
+ "where": "!! add to a class"
1582
+ },
1583
+ {
1584
+ "op": "sqrt",
1585
+ "set": "_EMIT",
1586
+ "class": "bandwidth-bound",
1587
+ "where": "THIS bandwidth roofline"
1588
+ },
1589
+ {
1590
+ "op": "square",
1591
+ "set": "_EMIT",
1592
+ "class": "bandwidth-bound",
1593
+ "where": "THIS bandwidth roofline"
1594
+ },
1595
+ {
1596
+ "op": "squeeze",
1597
+ "set": "_EMIT",
1598
+ "class": "UNCLASSIFIED",
1599
+ "where": "!! add to a class"
1600
+ },
1601
+ {
1602
+ "op": "stack",
1603
+ "set": "_EMIT",
1604
+ "class": "UNCLASSIFIED",
1605
+ "where": "!! add to a class"
1606
+ },
1607
+ {
1608
+ "op": "sub",
1609
+ "set": "_EMIT",
1610
+ "class": "bandwidth-bound",
1611
+ "where": "THIS bandwidth roofline"
1612
+ },
1613
+ {
1614
+ "op": "tanh",
1615
+ "set": "_EMIT",
1616
+ "class": "bandwidth-bound",
1617
+ "where": "THIS bandwidth roofline"
1618
+ },
1619
+ {
1620
+ "op": "threshold",
1621
+ "set": "_EMIT",
1622
+ "class": "UNCLASSIFIED",
1623
+ "where": "!! add to a class"
1624
+ },
1625
+ {
1626
+ "op": "thresholded_relu",
1627
+ "set": "_EMIT",
1628
+ "class": "UNCLASSIFIED",
1629
+ "where": "!! add to a class"
1630
+ },
1631
+ {
1632
+ "op": "tile",
1633
+ "set": "_EMIT",
1634
+ "class": "UNCLASSIFIED",
1635
+ "where": "!! add to a class"
1636
+ },
1637
+ {
1638
+ "op": "transpose",
1639
+ "set": "_EMIT",
1640
+ "class": "bandwidth-bound",
1641
+ "where": "THIS bandwidth roofline"
1642
+ },
1643
+ {
1644
+ "op": "upsample",
1645
+ "set": "_EMIT",
1646
+ "class": "bandwidth-bound",
1647
+ "where": "THIS bandwidth roofline"
1648
+ },
1649
+ {
1650
+ "op": "upsample_bilinear",
1651
+ "set": "_EMIT",
1652
+ "class": "UNCLASSIFIED",
1653
+ "where": "!! add to a class"
1654
+ },
1655
+ {
1656
+ "op": "argmax",
1657
+ "set": "NETPLIST_OPS",
1658
+ "class": "bridge:worker-raceable",
1659
+ "where": "bridge:worker (raceable silicon via persistent worker)"
1660
+ },
1661
+ {
1662
+ "op": "batch_to_space",
1663
+ "set": "NETPLIST_OPS",
1664
+ "class": "bridge:subprocess-not-raceable",
1665
+ "where": "subprocess-per-call: dispatch-bound ARTIFACT, NOT a fair speed race (needs a persistent worker to benchmark silicon)"
1666
+ },
1667
+ {
1668
+ "op": "channel_to_space",
1669
+ "set": "NETPLIST_OPS",
1670
+ "class": "bridge:subprocess-not-raceable",
1671
+ "where": "subprocess-per-call: dispatch-bound ARTIFACT, NOT a fair speed race (needs a persistent worker to benchmark silicon)"
1672
+ },
1673
+ {
1674
+ "op": "cost_volume",
1675
+ "set": "NETPLIST_OPS",
1676
+ "class": "bridge:subprocess-not-raceable",
1677
+ "where": "subprocess-per-call: dispatch-bound ARTIFACT, NOT a fair speed race (needs a persistent worker to benchmark silicon)"
1678
+ },
1679
+ {
1680
+ "op": "cross_correlation",
1681
+ "set": "NETPLIST_OPS",
1682
+ "class": "bridge:subprocess-not-raceable",
1683
+ "where": "subprocess-per-call: dispatch-bound ARTIFACT, NOT a fair speed race (needs a persistent worker to benchmark silicon)"
1684
+ },
1685
+ {
1686
+ "op": "cross_product",
1687
+ "set": "NETPLIST_OPS",
1688
+ "class": "bridge:subprocess-not-raceable",
1689
+ "where": "subprocess-per-call: dispatch-bound ARTIFACT, NOT a fair speed race (needs a persistent worker to benchmark silicon)"
1690
+ },
1691
+ {
1692
+ "op": "dynamic_slice",
1693
+ "set": "NETPLIST_OPS",
1694
+ "class": "bridge:subprocess-not-raceable",
1695
+ "where": "subprocess-per-call: dispatch-bound ARTIFACT, NOT a fair speed race (needs a persistent worker to benchmark silicon)"
1696
+ },
1697
+ {
1698
+ "op": "flatten",
1699
+ "set": "NETPLIST_OPS",
1700
+ "class": "bridge:subprocess-not-raceable",
1701
+ "where": "subprocess-per-call: dispatch-bound ARTIFACT, NOT a fair speed race (needs a persistent worker to benchmark silicon)"
1702
+ },
1703
+ {
1704
+ "op": "fps",
1705
+ "set": "NETPLIST_OPS",
1706
+ "class": "bridge:subprocess-not-raceable",
1707
+ "where": "subprocess-per-call: dispatch-bound ARTIFACT, NOT a fair speed race (needs a persistent worker to benchmark silicon)"
1708
+ },
1709
+ {
1710
+ "op": "input_view",
1711
+ "set": "NETPLIST_OPS",
1712
+ "class": "bridge:subprocess-not-raceable",
1713
+ "where": "subprocess-per-call: dispatch-bound ARTIFACT, NOT a fair speed race (needs a persistent worker to benchmark silicon)"
1714
+ },
1715
+ {
1716
+ "op": "lrn",
1717
+ "set": "NETPLIST_OPS",
1718
+ "class": "bridge:subprocess-not-raceable",
1719
+ "where": "subprocess-per-call: dispatch-bound ARTIFACT, NOT a fair speed race (needs a persistent worker to benchmark silicon)"
1720
+ },
1721
+ {
1722
+ "op": "minmax_norm",
1723
+ "set": "NETPLIST_OPS",
1724
+ "class": "bridge:subprocess-not-raceable",
1725
+ "where": "subprocess-per-call: dispatch-bound ARTIFACT, NOT a fair speed race (needs a persistent worker to benchmark silicon)"
1726
+ },
1727
+ {
1728
+ "op": "radius_search",
1729
+ "set": "NETPLIST_OPS",
1730
+ "class": "bridge:subprocess-not-raceable",
1731
+ "where": "subprocess-per-call: dispatch-bound ARTIFACT, NOT a fair speed race (needs a persistent worker to benchmark silicon)"
1732
+ },
1733
+ {
1734
+ "op": "scaled_elementwise",
1735
+ "set": "NETPLIST_OPS",
1736
+ "class": "bridge:subprocess-not-raceable",
1737
+ "where": "subprocess-per-call: dispatch-bound ARTIFACT, NOT a fair speed race (needs a persistent worker to benchmark silicon)"
1738
+ },
1739
+ {
1740
+ "op": "sdpa",
1741
+ "set": "NETPLIST_OPS",
1742
+ "class": "bridge:worker-raceable",
1743
+ "where": "bridge:worker (raceable - covered as attention class)"
1744
+ },
1745
+ {
1746
+ "op": "sort",
1747
+ "set": "NETPLIST_OPS",
1748
+ "class": "bridge:subprocess-not-raceable",
1749
+ "where": "subprocess-per-call: dispatch-bound ARTIFACT, NOT a fair speed race (needs a persistent worker to benchmark silicon)"
1750
+ },
1751
+ {
1752
+ "op": "space_to_batch",
1753
+ "set": "NETPLIST_OPS",
1754
+ "class": "bridge:subprocess-not-raceable",
1755
+ "where": "subprocess-per-call: dispatch-bound ARTIFACT, NOT a fair speed race (needs a persistent worker to benchmark silicon)"
1756
+ },
1757
+ {
1758
+ "op": "space_to_channel",
1759
+ "set": "NETPLIST_OPS",
1760
+ "class": "bridge:subprocess-not-raceable",
1761
+ "where": "subprocess-per-call: dispatch-bound ARTIFACT, NOT a fair speed race (needs a persistent worker to benchmark silicon)"
1762
+ },
1763
+ {
1764
+ "op": "topk",
1765
+ "set": "NETPLIST_OPS",
1766
+ "class": "bridge:worker-raceable",
1767
+ "where": "bridge:worker (raceable silicon via persistent worker)"
1768
+ }
1769
+ ],
1770
+ "counts": {
1771
+ "compute-bound": 4,
1772
+ "bandwidth-bound": 44,
1773
+ "dispatch/latency-bound": 2,
1774
+ "bridge:worker-raceable": 3,
1775
+ "bridge:subprocess-not-raceable": 16,
1776
+ "UNCLASSIFIED": 50
1777
+ },
1778
+ "n_emit": 100,
1779
+ "n_netplist": 19,
1780
+ "worker_ops": [
1781
+ "argmax",
1782
+ "sdpa",
1783
+ "topk"
1784
+ ],
1785
+ "a1_only_ops": [
1786
+ "batch_to_space",
1787
+ "channel_to_space",
1788
+ "cost_volume",
1789
+ "cross_correlation",
1790
+ "cross_product",
1791
+ "dynamic_slice",
1792
+ "flatten",
1793
+ "fps",
1794
+ "input_view",
1795
+ "lrn",
1796
+ "minmax_norm",
1797
+ "radius_search",
1798
+ "scaled_elementwise",
1799
+ "sort",
1800
+ "space_to_batch",
1801
+ "space_to_channel"
1802
+ ],
1803
+ "unclassified": [
1804
+ "affine",
1805
+ "atan",
1806
+ "bmm_w",
1807
+ "cast",
1808
+ "ceil",
1809
+ "channel_layer_norm",
1810
+ "clamped_relu",
1811
+ "const_array",
1812
+ "crop",
1813
+ "depth_to_space",
1814
+ "dynamic_conv",
1815
+ "einsum",
1816
+ "equal",
1817
+ "exp2",
1818
+ "expand_dims",
1819
+ "flatten2d",
1820
+ "floor",
1821
+ "greater",
1822
+ "greater_equal",
1823
+ "instance_norm",
1824
+ "inverse",
1825
+ "less",
1826
+ "less_equal",
1827
+ "linear_activation",
1828
+ "local_response_norm",
1829
+ "logical_not",
1830
+ "not_equal",
1831
+ "prelu",
1832
+ "reduce_l1_norm",
1833
+ "reduce_log_sum",
1834
+ "reduce_log_sum_exp",
1835
+ "reduce_sum_square",
1836
+ "resize_bilinear",
1837
+ "resize_nearest_neighbor",
1838
+ "reverse",
1839
+ "round",
1840
+ "scaled_tanh",
1841
+ "select",
1842
+ "sigmoid_hard",
1843
+ "sign",
1844
+ "slice_by_size",
1845
+ "softsign",
1846
+ "space_to_depth",
1847
+ "split",
1848
+ "squeeze",
1849
+ "stack",
1850
+ "threshold",
1851
+ "thresholded_relu",
1852
+ "tile",
1853
+ "upsample_bilinear"
1854
+ ]
1855
+ }
1856
+ }
1857
+ }
1858
+ },
1859
+ {
1860
+ "script": "decode_measurement.py",
1861
+ "result_file": "decode_measurement_results.json",
1862
+ "returncode": 0,
1863
+ "seconds": 26.9,
1864
+ "summary": {
1865
+ "config": {
1866
+ "d_model": 1024,
1867
+ "n_layers": 4,
1868
+ "n_heads": 16,
1869
+ "d_head": 64,
1870
+ "d_ff": 4096,
1871
+ "vocab": 32000,
1872
+ "s_kv": 128
1873
+ },
1874
+ "quick": true,
1875
+ "batch": 32,
1876
+ "flops_per_token": {
1877
+ "1": 201850880.0,
1878
+ "32": 6459228160.0
1879
+ },
1880
+ "have": {
1881
+ "ane": true,
1882
+ "mlx": false,
1883
+ "sudo": true
1884
+ },
1885
+ "idle_pkg_W": 1.1465,
1886
+ "rows": [
1887
+ {
1888
+ "device": "CPU",
1889
+ "batch": 1,
1890
+ "status": "ok",
1891
+ "latency_per_step_ms": 39.25704100402072,
1892
+ "latency_per_token_ms": 39.25704100402072,
1893
+ "tokens_per_s": 25.473137414956458,
1894
+ "relerr": 8.415643295642995e-07,
1895
+ "active_pkg_W": 6.7935,
1896
+ "active_pkg_cv_pct": 0.5770479279645463,
1897
+ "ane_active_mW": 0.0,
1898
+ "gpu_active_mW": 0.0,
1899
+ "cpu_active_mW": 6825.0,
1900
+ "energy_iter_ms": 39.51066115694044,
1901
+ "flags": [
1902
+ "only 8 pm samples - short window, treat as indicative"
1903
+ ],
1904
+ "tokens_per_s_sustained": 25.309624560011702,
1905
+ "tokens_per_s_per_W": 3.7255648134263195,
1906
+ "mJ_per_token": 268.4156765696749
1907
+ },
1908
+ {
1909
+ "device": "ANE",
1910
+ "batch": 1,
1911
+ "status": "NotImplementedError: aneforge: tensor (1, 32000) (op 'matmul') exceeds ANE family 2's max dimension 16384; tile the graph or target a higher chip."
1912
+ },
1913
+ {
1914
+ "device": "ANE8",
1915
+ "batch": 1,
1916
+ "status": "NotImplementedError: aneforge: tensor (1, 32000) (op 'matmul') exceeds ANE family 2's max dimension 16384; tile the graph or target a higher chip."
1917
+ },
1918
+ {
1919
+ "device": "CPU",
1920
+ "batch": 32,
1921
+ "status": "ok",
1922
+ "latency_per_step_ms": 133.45074997050688,
1923
+ "latency_per_token_ms": 4.17033593657834,
1924
+ "tokens_per_s": 239.7888360093302,
1925
+ "relerr": 1.6604349836602382e-06,
1926
+ "active_pkg_W": 17.843,
1927
+ "active_pkg_cv_pct": 1.6346754666472114,
1928
+ "ane_active_mW": 0.0,
1929
+ "gpu_active_mW": 0.0,
1930
+ "cpu_active_mW": 17885.0,
1931
+ "energy_iter_ms": 163.83389723293175,
1932
+ "flags": [
1933
+ "only 8 pm samples - short window, treat as indicative"
1934
+ ],
1935
+ "tokens_per_s_sustained": 195.31977533625917,
1936
+ "tokens_per_s_per_W": 10.946577107899971,
1937
+ "mJ_per_token": 91.35275713522503
1938
+ },
1939
+ {
1940
+ "device": "ANE",
1941
+ "batch": 32,
1942
+ "status": "NotImplementedError: aneforge: tensor (32, 32000) (op 'matmul') exceeds ANE family 2's max dimension 16384; tile the graph or target a higher chip."
1943
+ },
1944
+ {
1945
+ "device": "ANE8",
1946
+ "batch": 32,
1947
+ "status": "NotImplementedError: aneforge: tensor (32, 32000) (op 'matmul') exceeds ANE family 2's max dimension 16384; tile the graph or target a higher chip."
1948
+ }
1949
+ ]
1950
+ }
1951
+ },
1952
+ {
1953
+ "script": "roofline_analysis.py",
1954
+ "result_file": "roofline_analysis_results.json",
1955
+ "returncode": 0,
1956
+ "seconds": 2.4,
1957
+ "summary": {
1958
+ "ceilings": {
1959
+ "compute": {
1960
+ "CPU": {
1961
+ "gemm_peak_gflops": 509.7412917006825,
1962
+ "gemm_peak_at_N": 4096,
1963
+ "conv_peak_gflops": 4.326475293651336,
1964
+ "conv_peak_at_C": 512
1965
+ },
1966
+ "ANE": {
1967
+ "gemm_peak_gflops": 4561.582231756931,
1968
+ "gemm_peak_at_N": 4096,
1969
+ "conv_peak_gflops": 6846.741918034857,
1970
+ "conv_peak_at_C": 512
1971
+ }
1972
+ },
1973
+ "bandwidth_gbps": {
1974
+ "CPU": 86.44394037007775,
1975
+ "ANE": 6.918305849613406
1976
+ },
1977
+ "ridge_flop_per_byte": {
1978
+ "CPU": 5.896784546359337,
1979
+ "ANE": 659.3496053678853
1980
+ },
1981
+ "archetype_achieved_gbps": {
1982
+ "streaming (relu / x*2)": {
1983
+ "CPU": 86.44394037007775,
1984
+ "ANE": 6.918305849613406
1985
+ },
1986
+ "gelu (light compute)": {
1987
+ "CPU": 100.25600540939688,
1988
+ "ANE": 6.812362319168898
1989
+ },
1990
+ "reduction (sum)": {
1991
+ "CPU": 24.043290391418612,
1992
+ "ANE": 12.637509322242892
1993
+ },
1994
+ "softmax": {
1995
+ "CPU": 3.0332139828562936,
1996
+ "ANE": 5.142015339514829
1997
+ },
1998
+ "layer_norm": {
1999
+ "CPU": 4.208596478954501
2000
+ }
2001
+ }
2002
+ },
2003
+ "archetype_ai": [
2004
+ {
2005
+ "archetype": "matmul square N=512",
2006
+ "class": "compute",
2007
+ "formula": "AI = 2N^3 / (3N^2 * 2B) = N/3",
2008
+ "flops": 268435456.0,
2009
+ "bytes_fp16": 1572864,
2010
+ "ai_fp16": 170.66666666666666,
2011
+ "note": "AI = 2N^3 / (3N^2 * 2) = N/3. Grows with N -> large GEMM is compute-bound.",
2012
+ "represents": [
2013
+ "matmul(large)",
2014
+ "bmm",
2015
+ "linear"
2016
+ ]
2017
+ },
2018
+ {
2019
+ "archetype": "matmul square N=2048",
2020
+ "class": "compute",
2021
+ "formula": "AI = 2N^3 / (3N^2 * 2B) = N/3",
2022
+ "flops": 17179869184.0,
2023
+ "bytes_fp16": 25165824,
2024
+ "ai_fp16": 682.6666666666666,
2025
+ "note": "AI = 2N^3 / (3N^2 * 2) = N/3. Grows with N -> large GEMM is compute-bound.",
2026
+ "represents": [
2027
+ "matmul(large)",
2028
+ "bmm",
2029
+ "linear"
2030
+ ]
2031
+ },
2032
+ {
2033
+ "archetype": "matmul square N=8192",
2034
+ "class": "compute",
2035
+ "formula": "AI = 2N^3 / (3N^2 * 2B) = N/3",
2036
+ "flops": 1099511627776.0,
2037
+ "bytes_fp16": 402653184,
2038
+ "ai_fp16": 2730.6666666666665,
2039
+ "note": "AI = 2N^3 / (3N^2 * 2) = N/3. Grows with N -> large GEMM is compute-bound.",
2040
+ "represents": [
2041
+ "matmul(large)",
2042
+ "bmm",
2043
+ "linear"
2044
+ ]
2045
+ },
2046
+ {
2047
+ "archetype": "matmul GEMV M=1 (decode), K=N=4096",
2048
+ "class": "memory",
2049
+ "formula": "2*1*K*N / (1*K + K*N + 1*N)*2B ~ 2KN/(KN*2B) = 1/bpe = 1.0 FLOP/byte (fp16)",
2050
+ "flops": 33554432.0,
2051
+ "bytes_fp16": 33570816,
2052
+ "ai_fp16": 0.9995119570522206,
2053
+ "note": "weight matrix (KxN) read once, used once -> the AI floor. With the standard 2-flop/MAC count it is 1.0 FLOP/byte fp16 (the often-quoted '~0.5' uses a 1-flop/MAC convention; same physics, factor-2 bookkeeping). Memory-bound on EVERY device: well below the lowest ridge (CPU ~15).",
2054
+ "represents": [
2055
+ "GEMV",
2056
+ "LLM decode matmul",
2057
+ "M=1 projection"
2058
+ ]
2059
+ },
2060
+ {
2061
+ "archetype": "conv 3x3 (C=512,B=4,64x64)",
2062
+ "class": "compute",
2063
+ "formula": "2*B*Cout*Cin*9*H*W / (in+wt+out)*2B",
2064
+ "flops": 77309411328.0,
2065
+ "bytes_fp16": 38273024,
2066
+ "ai_fp16": 2019.945205479452,
2067
+ "note": "reuse: each input elem in ~9*Cout MACs -> high AI, clears every ridge.",
2068
+ "represents": [
2069
+ "conv",
2070
+ "conv_transpose"
2071
+ ]
2072
+ },
2073
+ {
2074
+ "archetype": "conv 3x3 (C=64,B=16,64x64)",
2075
+ "class": "compute",
2076
+ "formula": "2*B*Cout*Cin*9*H*W / (in+wt+out)*2B",
2077
+ "flops": 4831838208.0,
2078
+ "bytes_fp16": 16850944,
2079
+ "ai_fp16": 286.7399124939232,
2080
+ "note": "fewer channels -> lower reuse -> lower AI than the C=512 config, still >> ridge.",
2081
+ "represents": [
2082
+ "conv (small-channel)"
2083
+ ]
2084
+ },
2085
+ {
2086
+ "archetype": "relu / copy (1R+1W, ~1 flop)",
2087
+ "class": "memory",
2088
+ "formula": "1 flop / (2 elem * 2B) = 0.25; counting copy as ~0 flop -> ~0.2",
2089
+ "flops": 16777216,
2090
+ "bytes_fp16": 67108864,
2091
+ "ai_fp16": 0.25,
2092
+ "bw_archetype": "streaming (relu / x*2)",
2093
+ "represents": [
2094
+ "relu",
2095
+ "abs",
2096
+ "copy",
2097
+ "reshape",
2098
+ "transpose",
2099
+ "add",
2100
+ "sub",
2101
+ "mul"
2102
+ ]
2103
+ },
2104
+ {
2105
+ "archetype": "gelu / silu (~10 flop, 1R+1W)",
2106
+ "class": "memory",
2107
+ "formula": "~10 flop / (2 elem * 2B) = 2.5 FLOP/byte",
2108
+ "flops": 167772160,
2109
+ "bytes_fp16": 67108864,
2110
+ "ai_fp16": 2.5,
2111
+ "bw_archetype": "gelu (light compute)",
2112
+ "represents": [
2113
+ "gelu",
2114
+ "silu",
2115
+ "erf",
2116
+ "tanh",
2117
+ "sigmoid",
2118
+ "exp"
2119
+ ]
2120
+ },
2121
+ {
2122
+ "archetype": "softmax (~5 flop, 1R+1W)",
2123
+ "class": "memory",
2124
+ "formula": "~5 flop / (2 elem * 2B) = 1.25 FLOP/byte",
2125
+ "flops": 83886080,
2126
+ "bytes_fp16": 67108864,
2127
+ "ai_fp16": 1.25,
2128
+ "bw_archetype": "softmax",
2129
+ "represents": [
2130
+ "softmax"
2131
+ ]
2132
+ },
2133
+ {
2134
+ "archetype": "layer_norm (~10 flop, 1R+1W)",
2135
+ "class": "memory",
2136
+ "formula": "~10 flop / (2 elem * 2B) = 2.5 FLOP/byte",
2137
+ "flops": 167772160,
2138
+ "bytes_fp16": 67108864,
2139
+ "ai_fp16": 2.5,
2140
+ "bw_archetype": "layer_norm",
2141
+ "represents": [
2142
+ "layer_norm",
2143
+ "rms_norm",
2144
+ "group_norm",
2145
+ "batch_norm",
2146
+ "l2_norm"
2147
+ ]
2148
+ }
2149
+ ],
2150
+ "gap_measurements": {
2151
+ "attention": {
2152
+ "config": {
2153
+ "S": 512,
2154
+ "D": 64,
2155
+ "H": 12,
2156
+ "flops": 821035008.0
2157
+ },
2158
+ "ANE": {
2159
+ "dtype": "fp16",
2160
+ "lat_ms": 1.4415000332519412,
2161
+ "gflops": 569.5698848842842
2162
+ },
2163
+ "CPU": {
2164
+ "dtype": "fp32",
2165
+ "lat_ms": 73.70987499598414,
2166
+ "gflops": 11.138738303988871
2167
+ }
2168
+ },
2169
+ "fused_block": {
2170
+ "ANE": {
2171
+ "config": {
2172
+ "B": 4,
2173
+ "C": 256,
2174
+ "HxW": "64x64",
2175
+ "n_conv": 3
2176
+ },
2177
+ "dtype": "fp16",
2178
+ "lat_ms": 7.361208030488342,
2179
+ "gflops": 7876.704238740754,
2180
+ "fused_flops": 57982058496.0,
2181
+ "ai_one_conv_standalone": 1076.3211678832117,
2182
+ "ai_fused_est": 2853.9870967741936,
2183
+ "ai_3conv_standalone_est": 1076.3211678832117,
2184
+ "note": "fused AI is an ESTIMATE: intermediates stay on-chip so not counted in fused_bytes; standalone-3x would spill each intermediate."
2185
+ }
2186
+ },
2187
+ "gemv": {
2188
+ "ANE": {
2189
+ "dtype": "fp16",
2190
+ "lat_ms": 0.7418330060318112,
2191
+ "gflops": 45.23178630118963
2192
+ },
2193
+ "CPU": {
2194
+ "dtype": "fp32",
2195
+ "lat_ms": 1.0349579970352352,
2196
+ "gflops": 32.42105679275952
2197
+ }
2198
+ },
2199
+ "available": {
2200
+ "mlx_err": "No module named 'mlx'",
2201
+ "ane": true,
2202
+ "mlx": false
2203
+ }
2204
+ },
2205
+ "placement": {
2206
+ "CPU": [
2207
+ {
2208
+ "archetype": "matmul square N=512",
2209
+ "class": "compute",
2210
+ "ai": 85.33333333333333,
2211
+ "applicable_roof_gflops": 509.7412917006825,
2212
+ "achieved_gflops": 345.4025245780805,
2213
+ "pct_roof": 67.76035808786295,
2214
+ "source": "saturation sweep (size-specific)"
2215
+ },
2216
+ {
2217
+ "archetype": "matmul square N=2048",
2218
+ "class": "compute",
2219
+ "ai": 341.3333333333333,
2220
+ "applicable_roof_gflops": 509.7412917006825,
2221
+ "achieved_gflops": 502.45534326747025,
2222
+ "pct_roof": 98.57065759595349,
2223
+ "source": "saturation sweep (size-specific)"
2224
+ },
2225
+ {
2226
+ "archetype": "matmul square N=8192",
2227
+ "class": "compute",
2228
+ "ai": 1365.3333333333333,
2229
+ "applicable_roof_gflops": 509.7412917006825,
2230
+ "achieved_gflops": null,
2231
+ "pct_roof": null,
2232
+ "source": "saturation sweep (size-specific)"
2233
+ },
2234
+ {
2235
+ "archetype": "matmul GEMV M=1 (decode), K=N=4096",
2236
+ "class": "memory",
2237
+ "ai": 0.4997559785261103,
2238
+ "applicable_roof_gflops": 43.20087600730094,
2239
+ "achieved_gflops": null,
2240
+ "pct_roof": null,
2241
+ "source": null
2242
+ },
2243
+ {
2244
+ "archetype": "conv 3x3 (C=512,B=4,64x64)",
2245
+ "class": "compute",
2246
+ "ai": 1009.972602739726,
2247
+ "applicable_roof_gflops": 4.326475293651336,
2248
+ "achieved_gflops": 4.326475293651336,
2249
+ "pct_roof": 100.0,
2250
+ "source": "saturation sweep (size-specific)"
2251
+ },
2252
+ {
2253
+ "archetype": "conv 3x3 (C=64,B=16,64x64)",
2254
+ "class": "compute",
2255
+ "ai": 143.3699562469616,
2256
+ "applicable_roof_gflops": 4.326475293651336,
2257
+ "achieved_gflops": 4.297745906670273,
2258
+ "pct_roof": 99.33596322569504,
2259
+ "source": "saturation sweep (size-specific)"
2260
+ },
2261
+ {
2262
+ "archetype": "relu / copy (1R+1W, ~1 flop)",
2263
+ "class": "memory",
2264
+ "ai": 0.125,
2265
+ "applicable_roof_gflops": 10.80549254625972,
2266
+ "achieved_gflops": 10.80549254625972,
2267
+ "pct_roof": 100.0,
2268
+ "source": "DERIVED: AI x achieved 86.4 GB/s (streaming (relu / x*2))"
2269
+ },
2270
+ {
2271
+ "archetype": "gelu / silu (~10 flop, 1R+1W)",
2272
+ "class": "memory",
2273
+ "ai": 1.25,
2274
+ "applicable_roof_gflops": 108.0549254625972,
2275
+ "achieved_gflops": 125.3200067617461,
2276
+ "pct_roof": 115.97806044031296,
2277
+ "source": "DERIVED: AI x achieved 100.3 GB/s (gelu (light compute))"
2278
+ },
2279
+ {
2280
+ "archetype": "softmax (~5 flop, 1R+1W)",
2281
+ "class": "memory",
2282
+ "ai": 0.625,
2283
+ "applicable_roof_gflops": 54.0274627312986,
2284
+ "achieved_gflops": 1.8957587392851836,
2285
+ "pct_roof": 3.508879824162006,
2286
+ "source": "DERIVED: AI x achieved 3.0 GB/s (softmax)"
2287
+ },
2288
+ {
2289
+ "archetype": "layer_norm (~10 flop, 1R+1W)",
2290
+ "class": "memory",
2291
+ "ai": 1.25,
2292
+ "applicable_roof_gflops": 108.0549254625972,
2293
+ "achieved_gflops": 5.260745598693126,
2294
+ "pct_roof": 4.868584727786531,
2295
+ "source": "DERIVED: AI x achieved 4.2 GB/s (layer_norm)"
2296
+ },
2297
+ {
2298
+ "archetype": "attention block [1,12,512,64]",
2299
+ "class": "composite (matmul-dom)",
2300
+ "ai": 26.1,
2301
+ "applicable_roof_gflops": 509.7412917006825,
2302
+ "achieved_gflops": 11.138738303988871,
2303
+ "pct_roof": 2.1851748103093604,
2304
+ "source": "MEASURED attention"
2305
+ },
2306
+ {
2307
+ "archetype": "GEMV M=1 K=N=4096 (decode)",
2308
+ "class": "memory",
2309
+ "ai": 0.4997559785261103,
2310
+ "applicable_roof_gflops": 43.20087600730094,
2311
+ "achieved_gflops": 32.42105679275952,
2312
+ "pct_roof": 75.04722077228334,
2313
+ "source": "MEASURED GEMV"
2314
+ }
2315
+ ],
2316
+ "ANE": [
2317
+ {
2318
+ "archetype": "matmul square N=512",
2319
+ "class": "compute",
2320
+ "ai": 170.66666666666666,
2321
+ "applicable_roof_gflops": 1180.7241983340211,
2322
+ "achieved_gflops": 562.8061602946644,
2323
+ "pct_roof": 47.66618327029911,
2324
+ "source": "saturation sweep (size-specific)"
2325
+ },
2326
+ {
2327
+ "archetype": "matmul square N=2048",
2328
+ "class": "compute",
2329
+ "ai": 682.6666666666666,
2330
+ "applicable_roof_gflops": 4561.582231756931,
2331
+ "achieved_gflops": 3998.495817641947,
2332
+ "pct_roof": 87.65589689045008,
2333
+ "source": "saturation sweep (size-specific)"
2334
+ },
2335
+ {
2336
+ "archetype": "matmul square N=8192",
2337
+ "class": "compute",
2338
+ "ai": 2730.6666666666665,
2339
+ "applicable_roof_gflops": 4561.582231756931,
2340
+ "achieved_gflops": null,
2341
+ "pct_roof": null,
2342
+ "source": "saturation sweep (size-specific)"
2343
+ },
2344
+ {
2345
+ "archetype": "matmul GEMV M=1 (decode), K=N=4096",
2346
+ "class": "memory",
2347
+ "ai": 0.9995119570522206,
2348
+ "applicable_roof_gflops": 6.914929419232921,
2349
+ "achieved_gflops": null,
2350
+ "pct_roof": null,
2351
+ "source": null
2352
+ },
2353
+ {
2354
+ "archetype": "conv 3x3 (C=512,B=4,64x64)",
2355
+ "class": "compute",
2356
+ "ai": 2019.945205479452,
2357
+ "applicable_roof_gflops": 6846.741918034857,
2358
+ "achieved_gflops": 6846.741918034857,
2359
+ "pct_roof": 100.0,
2360
+ "source": "saturation sweep (size-specific)"
2361
+ },
2362
+ {
2363
+ "archetype": "conv 3x3 (C=64,B=16,64x64)",
2364
+ "class": "compute",
2365
+ "ai": 286.7399124939232,
2366
+ "applicable_roof_gflops": 1983.754413924345,
2367
+ "achieved_gflops": 1747.5002668646116,
2368
+ "pct_roof": 88.09055468754494,
2369
+ "source": "saturation sweep (size-specific)"
2370
+ },
2371
+ {
2372
+ "archetype": "relu / copy (1R+1W, ~1 flop)",
2373
+ "class": "memory",
2374
+ "ai": 0.25,
2375
+ "applicable_roof_gflops": 1.7295764624033514,
2376
+ "achieved_gflops": 1.7295764624033514,
2377
+ "pct_roof": 100.0,
2378
+ "source": "DERIVED: AI x achieved 6.9 GB/s (streaming (relu / x*2))"
2379
+ },
2380
+ {
2381
+ "archetype": "gelu / silu (~10 flop, 1R+1W)",
2382
+ "class": "memory",
2383
+ "ai": 2.5,
2384
+ "applicable_roof_gflops": 17.295764624033513,
2385
+ "achieved_gflops": 17.030905797922244,
2386
+ "pct_roof": 98.46864922211516,
2387
+ "source": "DERIVED: AI x achieved 6.8 GB/s (gelu (light compute))"
2388
+ },
2389
+ {
2390
+ "archetype": "softmax (~5 flop, 1R+1W)",
2391
+ "class": "memory",
2392
+ "ai": 1.25,
2393
+ "applicable_roof_gflops": 8.647882312016757,
2394
+ "achieved_gflops": 6.427519174393536,
2395
+ "pct_roof": 74.32477619939519,
2396
+ "source": "DERIVED: AI x achieved 5.1 GB/s (softmax)"
2397
+ },
2398
+ {
2399
+ "archetype": "layer_norm (~10 flop, 1R+1W)",
2400
+ "class": "memory",
2401
+ "ai": 2.5,
2402
+ "applicable_roof_gflops": 17.295764624033513,
2403
+ "achieved_gflops": null,
2404
+ "pct_roof": null,
2405
+ "source": null
2406
+ },
2407
+ {
2408
+ "archetype": "attention block [1,12,512,64]",
2409
+ "class": "composite (matmul-dom)",
2410
+ "ai": 52.2,
2411
+ "applicable_roof_gflops": 361.1355653498198,
2412
+ "achieved_gflops": 569.5698848842842,
2413
+ "pct_roof": 157.7163645825249,
2414
+ "source": "MEASURED attention"
2415
+ },
2416
+ {
2417
+ "archetype": "GEMV M=1 K=N=4096 (decode)",
2418
+ "class": "memory",
2419
+ "ai": 0.9995119570522206,
2420
+ "applicable_roof_gflops": 6.914929419232921,
2421
+ "achieved_gflops": 45.23178630118963,
2422
+ "pct_roof": 654.1178305505717,
2423
+ "source": "MEASURED GEMV"
2424
+ }
2425
+ ]
2426
+ },
2427
+ "ascii_rooflines": {
2428
+ "CPU": " CPU roofline (compute roof gemm=510 GF/s conv=4 GF/s, bw=86 GB/s, ridge R=6 FLOP/byte)\n y=GFLOP/s [1..765] x=AI [0.1..2731] (log-log)\n | R________________________1_____________\n | /// 0 \n | /// \n | // \n | 7// \n | /// \n | // \n | //b \n | // \n | /// a \n |/6 \n | 9 \n | 5 4 \n | \n | 8 \n | \n | \n | \n +---------------------------------------------------------------- AI->\n [0] matmul square N=512 AI= 85.333 345.4 GFLOP/s 67.8%roof\n [1] matmul square N=2048 AI= 341.333 502.5 GFLOP/s 98.6%roof\n [4] conv 3x3 (C=512,B=4,64x64) AI=1009.973 4.3 GFLOP/s 100.0%roof\n [5] conv 3x3 (C=64,B=16,64x64) AI= 143.370 4.3 GFLOP/s 99.3%roof\n [6] relu / copy (1R+1W, ~1 flop) AI= 0.125 10.8 GFLOP/s 100.0%roof\n [7] gelu / silu (~10 flop, 1R+1W) AI= 1.250 125.3 GFLOP/s 116.0%roof\n [8] softmax (~5 flop, 1R+1W) AI= 0.625 1.9 GFLOP/s 3.5%roof\n [9] layer_norm (~10 flop, 1R+1W) AI= 1.250 5.3 GFLOP/s 4.9%roof\n [a] attention block [1,12,512,64] AI= 26.100 11.1 GFLOP/s 2.2%roof\n [b] GEMV M=1 K=N=4096 (decode) AI= 0.500 32.4 GFLOP/s 75.0%roof",
2429
+ "ANE": " ANE roofline (compute roof gemm=4.6 TF/s conv=6.8 TF/s, bw=7 GB/s, ridge R=659 FLOP/byte)\n y=GFLOP/s [1..10270] x=AI [0.1..5461] (log-log)\n | 4 \n | /1_____________\n | /// \n | //5 \n | a ///0 \n | /// \n | //// \n | /// \n | /// \n | b //// \n | /// \n | //7 \n | //8/ \n | /// \n | 6/// \n | //// \n |// \n | \n +---------------------------------------------------------------- AI->\n [0] matmul square N=512 AI= 170.667 562.8 GFLOP/s 47.7%roof\n [1] matmul square N=2048 AI= 682.667 3998.5 GFLOP/s 87.7%roof\n [4] conv 3x3 (C=512,B=4,64x64) AI=2019.945 6846.7 GFLOP/s 100.0%roof\n [5] conv 3x3 (C=64,B=16,64x64) AI= 286.740 1747.5 GFLOP/s 88.1%roof\n [6] relu / copy (1R+1W, ~1 flop) AI= 0.250 1.7 GFLOP/s 100.0%roof\n [7] gelu / silu (~10 flop, 1R+1W) AI= 2.500 17.0 GFLOP/s 98.5%roof\n [8] softmax (~5 flop, 1R+1W) AI= 1.250 6.4 GFLOP/s 74.3%roof\n [a] attention block [1,12,512,64] AI= 52.200 569.6 GFLOP/s 157.7%roof\n [b] GEMV M=1 K=N=4096 (decode) AI= 1.000 45.2 GFLOP/s 654.1%roof"
2430
+ },
2431
+ "meta": {
2432
+ "source_compute_json": "/Users/spencer/Downloads/aneforge-new/bench/results/device_saturation_sweep_results.json",
2433
+ "source_bandwidth_json": "/Users/spencer/Downloads/aneforge-new/bench/results/device_bandwidth_roofline_results.json",
2434
+ "fp16_bytes": 2,
2435
+ "cpu_fp32_bytes": 4
2436
+ }
2437
+ }
2438
+ }
2439
+ ]
2440
+ }
raw/roofline-apple-m2-pro-Mac14_12-723396ad9091-370b3d53.json ADDED
@@ -0,0 +1,2347 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "suite": "roofline",
3
+ "schema_version": 2,
4
+ "contributor": "axiom-of-choice",
5
+ "machine": {
6
+ "hardware": {
7
+ "model_identifier": "Mac14,12",
8
+ "chip": "Apple M2 Pro",
9
+ "physical_cpu": 10,
10
+ "p_cores": 6,
11
+ "e_cores": 4,
12
+ "gpu_cores": 16,
13
+ "memory_architecture": "unified",
14
+ "ram_gb": 32,
15
+ "ram_bytes": 34359738368,
16
+ "ane_rated_tops": 15.8
17
+ },
18
+ "hardware_hash": "723396ad9091",
19
+ "environment": {
20
+ "model_name": "Mac mini",
21
+ "macos_version": "26.5.2",
22
+ "macos_build": "25F84",
23
+ "aneforge_version": "0.2.1.dev33",
24
+ "aneforge_git": {
25
+ "commit": "1942279257ef1d7919a982b0cfae107ed535545a",
26
+ "short": "1942279257ef",
27
+ "branch": "roofline-m2-pro",
28
+ "dirty": false,
29
+ "main": {
30
+ "ref": "origin/main",
31
+ "merge_base": "263e02ff189874793481252ec0c5ffaef877e114",
32
+ "merge_base_short": "263e02ff1898",
33
+ "commits_ahead": 1,
34
+ "commits_behind": 0
35
+ }
36
+ },
37
+ "power": {
38
+ "source": "ac",
39
+ "is_laptop": false,
40
+ "energy_mode": {
41
+ "mode": "automatic",
42
+ "raw": 0,
43
+ "key": "lowpowermode"
44
+ }
45
+ },
46
+ "gpu_wired_limit_mb": 0,
47
+ "thermal_state": "nominal",
48
+ "have_sudo": true,
49
+ "timestamp_utc": "2026-08-01T19:52:48Z",
50
+ "sudo_authorized": true
51
+ },
52
+ "run_id": "370b3d53"
53
+ },
54
+ "numeric_cliffs": {
55
+ "plane": "numeric",
56
+ "matmul_saturation": {
57
+ "metric": "output_magnitude_inf_cliff",
58
+ "expected": 32752,
59
+ "by_K": [
60
+ {
61
+ "cliff": 32758.8,
62
+ "K": 4,
63
+ "expected": 32752
64
+ },
65
+ {
66
+ "cliff": 32758.8,
67
+ "K": 8,
68
+ "expected": 32752
69
+ },
70
+ {
71
+ "cliff": 32758.8,
72
+ "K": 32,
73
+ "expected": 32752
74
+ },
75
+ {
76
+ "cliff": 32758.8,
77
+ "K": 64,
78
+ "expected": 32752
79
+ },
80
+ {
81
+ "cliff": 32758.8,
82
+ "K": 128,
83
+ "expected": 32752
84
+ }
85
+ ]
86
+ },
87
+ "slice_saturation": {
88
+ "metric": "sliced_value_inf_cliff",
89
+ "cliff": 4094.1,
90
+ "expected_pre_a16": 4094,
91
+ "interpretation": "None == exact (A16/M5); a number == the pre-A16 clamp"
92
+ },
93
+ "reduce_exactness": {
94
+ "metric": "last_all_exact_integer_row_sum",
95
+ "expected_boundary": 2048,
96
+ "n_terms": 8,
97
+ "last_all_exact": 2048,
98
+ "first_wrong": {
99
+ "target": 2049,
100
+ "got": 2050.0
101
+ }
102
+ }
103
+ },
104
+ "perf_rooflines": [
105
+ {
106
+ "script": "device_saturation_sweep.py",
107
+ "result_file": "device_saturation_sweep_results.json",
108
+ "returncode": 0,
109
+ "seconds": 295.2,
110
+ "summary": {
111
+ "gemm": [
112
+ {
113
+ "N": 512,
114
+ "gflop": 0.268435456,
115
+ "devices": {
116
+ "CPU": {
117
+ "dtype": "fp32",
118
+ "lat_ms": 17.098290962167084,
119
+ "gflops": 15.6995489545686,
120
+ "relerr": 2.891481968747392e-07,
121
+ "power": {
122
+ "active_pkg_W": 10.586,
123
+ "active_pkg_cv_pct": 1.45645226978759,
124
+ "iter_ms": 12.85422867615362,
125
+ "n_pm_samples": 8,
126
+ "ane_active_mW": 0.0,
127
+ "gpu_active_mW": 0.0,
128
+ "cpu_active_mW": 10595.0,
129
+ "flags": [
130
+ "only 8 pm samples - short window, treat as indicative"
131
+ ],
132
+ "gflops_sustained": 20.88304656490086,
133
+ "perf_per_W": 1.9727041909031606
134
+ }
135
+ },
136
+ "GPU": {
137
+ "dtype": "fp16",
138
+ "lat_ms": 0.6399580743163824,
139
+ "gflops": 419.4578782160828,
140
+ "relerr": 0.0003590542849354685,
141
+ "power": {
142
+ "active_pkg_W": 4.835,
143
+ "active_pkg_cv_pct": 18.949804468835886,
144
+ "iter_ms": 0.42875541136093176,
145
+ "n_pm_samples": 8,
146
+ "ane_active_mW": 0.0,
147
+ "gpu_active_mW": 2161.5,
148
+ "cpu_active_mW": 2375.5,
149
+ "flags": [
150
+ "only 8 pm samples - short window, treat as indicative"
151
+ ],
152
+ "gflops_sustained": 626.0806251936202,
153
+ "perf_per_W": 129.48927098110036
154
+ }
155
+ },
156
+ "ANE": {
157
+ "dtype": "fp16",
158
+ "lat_ms": 0.6674160249531269,
159
+ "gflops": 402.20109491505303,
160
+ "relerr": 0.002578003970237922,
161
+ "power": {
162
+ "active_pkg_W": 5.1525,
163
+ "active_pkg_cv_pct": 24.483776427446262,
164
+ "iter_ms": 0.599801034261912,
165
+ "n_pm_samples": 8,
166
+ "ane_active_mW": 1694.0,
167
+ "gpu_active_mW": 25.0,
168
+ "cpu_active_mW": 3442.0,
169
+ "flags": [
170
+ "only 8 pm samples - short window, treat as indicative"
171
+ ],
172
+ "gflops_sustained": 447.54083548776225,
173
+ "perf_per_W": 86.85896855657685
174
+ }
175
+ }
176
+ }
177
+ },
178
+ {
179
+ "N": 1024,
180
+ "gflop": 2.147483648,
181
+ "devices": {
182
+ "CPU": {
183
+ "dtype": "fp32",
184
+ "lat_ms": 15.545375063084066,
185
+ "gflops": 138.14292928188496,
186
+ "relerr": 3.3343612585537265e-07,
187
+ "power": {
188
+ "active_pkg_W": 10.6135,
189
+ "active_pkg_cv_pct": 10.55003327409519,
190
+ "iter_ms": 43.6831150660353,
191
+ "n_pm_samples": 8,
192
+ "ane_active_mW": 0.0,
193
+ "gpu_active_mW": 0.0,
194
+ "cpu_active_mW": 10619.5,
195
+ "flags": [
196
+ "only 8 pm samples - short window, treat as indicative"
197
+ ],
198
+ "gflops_sustained": 49.16049701935569,
199
+ "perf_per_W": 4.63188364058564
200
+ }
201
+ },
202
+ "GPU": {
203
+ "dtype": "fp16",
204
+ "lat_ms": 1.7329159891232848,
205
+ "gflops": 1239.2312503772632,
206
+ "relerr": 0.00035907137743485277,
207
+ "power": {
208
+ "active_pkg_W": 8.4355,
209
+ "active_pkg_cv_pct": 22.946803398439833,
210
+ "iter_ms": 0.832707624962094,
211
+ "n_pm_samples": 8,
212
+ "ane_active_mW": 0.0,
213
+ "gpu_active_mW": 9408.0,
214
+ "cpu_active_mW": 0.0,
215
+ "flags": [
216
+ "only 8 pm samples - short window, treat as indicative"
217
+ ],
218
+ "gflops_sustained": 2578.9167573645746,
219
+ "perf_per_W": 305.72186086948903
220
+ }
221
+ },
222
+ "ANE": {
223
+ "dtype": "fp16",
224
+ "lat_ms": 2.067832974717021,
225
+ "gflops": 1038.5189105004379,
226
+ "relerr": 0.0055283529995975205,
227
+ "power": {
228
+ "active_pkg_W": 2.664,
229
+ "active_pkg_cv_pct": 24.27491274964596,
230
+ "iter_ms": 2.560352540553309,
231
+ "n_pm_samples": 8,
232
+ "ane_active_mW": 706.0,
233
+ "gpu_active_mW": 0.0,
234
+ "cpu_active_mW": 2222.5,
235
+ "flags": [
236
+ "only 8 pm samples - short window, treat as indicative"
237
+ ],
238
+ "gflops_sustained": 838.7452954177609,
239
+ "perf_per_W": 314.8443301117721
240
+ }
241
+ }
242
+ }
243
+ },
244
+ {
245
+ "N": 2048,
246
+ "gflop": 17.179869184,
247
+ "devices": {
248
+ "CPU": {
249
+ "dtype": "fp32",
250
+ "lat_ms": 63.37387498933822,
251
+ "gflops": 271.087560716309,
252
+ "relerr": 3.3597726136327955e-07,
253
+ "power": {
254
+ "active_pkg_W": 12.4955,
255
+ "active_pkg_cv_pct": 9.976841685144143,
256
+ "iter_ms": 138.00496748853018,
257
+ "n_pm_samples": 8,
258
+ "ane_active_mW": 0.0,
259
+ "gpu_active_mW": 0.0,
260
+ "cpu_active_mW": 12502.5,
261
+ "flags": [
262
+ "only 8 pm samples - short window, treat as indicative"
263
+ ],
264
+ "gflops_sustained": 124.4873245988616,
265
+ "perf_per_W": 9.962572494006771
266
+ }
267
+ },
268
+ "GPU": {
269
+ "dtype": "fp16",
270
+ "lat_ms": 4.662291030399501,
271
+ "gflops": 3684.855593952035,
272
+ "relerr": 0.0003589978150147423,
273
+ "power": {
274
+ "active_pkg_W": 22.0875,
275
+ "active_pkg_cv_pct": 9.399501049638632,
276
+ "iter_ms": 3.770542657163503,
277
+ "n_pm_samples": 8,
278
+ "ane_active_mW": 0.0,
279
+ "gpu_active_mW": 22152.5,
280
+ "cpu_active_mW": 0.0,
281
+ "flags": [
282
+ "only 8 pm samples - short window, treat as indicative"
283
+ ],
284
+ "gflops_sustained": 4556.338635066402,
285
+ "perf_per_W": 206.28584652253096
286
+ }
287
+ },
288
+ "ANE": {
289
+ "dtype": "fp16",
290
+ "lat_ms": 9.561292012222111,
291
+ "gflops": 1796.8146106236616,
292
+ "relerr": 0.012131920427695522,
293
+ "power": {
294
+ "active_pkg_W": 1.5895,
295
+ "active_pkg_cv_pct": 23.118313087953833,
296
+ "iter_ms": 10.11138832992059,
297
+ "n_pm_samples": 8,
298
+ "ane_active_mW": 830.5,
299
+ "gpu_active_mW": 0.0,
300
+ "cpu_active_mW": 894.5,
301
+ "flags": [
302
+ "only 8 pm samples - short window, treat as indicative"
303
+ ],
304
+ "gflops_sustained": 1699.0613576933924,
305
+ "perf_per_W": 1068.9281898039587
306
+ }
307
+ }
308
+ }
309
+ },
310
+ {
311
+ "N": 4096,
312
+ "gflop": 137.438953472,
313
+ "devices": {
314
+ "CPU": {
315
+ "dtype": "fp32",
316
+ "lat_ms": 372.3922080826014,
317
+ "gflops": 369.0704329708055,
318
+ "relerr": 3.39259436032721e-07,
319
+ "power": {
320
+ "active_pkg_W": 11.548,
321
+ "active_pkg_cv_pct": 21.980768734444545,
322
+ "iter_ms": 821.0017618590167,
323
+ "n_pm_samples": 8,
324
+ "ane_active_mW": 0.0,
325
+ "gpu_active_mW": 18.0,
326
+ "cpu_active_mW": 11543.5,
327
+ "flags": [
328
+ "only 8 pm samples - short window, treat as indicative"
329
+ ],
330
+ "gflops_sustained": 167.40396897662342,
331
+ "perf_per_W": 14.496360320109405
332
+ }
333
+ },
334
+ "GPU": {
335
+ "dtype": "fp16",
336
+ "lat_ms": 27.41929201874882,
337
+ "gflops": 5012.490963589494,
338
+ "relerr": 0.000359763213237879,
339
+ "power": {
340
+ "active_pkg_W": 26.2165,
341
+ "active_pkg_cv_pct": 8.040902935369193,
342
+ "iter_ms": 28.150285814569614,
343
+ "n_pm_samples": 8,
344
+ "ane_active_mW": 0.0,
345
+ "gpu_active_mW": 24922.5,
346
+ "cpu_active_mW": 1655.0,
347
+ "flags": [
348
+ "only 8 pm samples - short window, treat as indicative"
349
+ ],
350
+ "gflops_sustained": 4882.328882105572,
351
+ "perf_per_W": 186.23114764005769
352
+ }
353
+ },
354
+ "ANE": {
355
+ "dtype": "fp16",
356
+ "lat_ms": 42.11416689213365,
357
+ "gflops": 3263.4850363779065,
358
+ "relerr": 0.027237621125542084,
359
+ "power": {
360
+ "active_pkg_W": 2.135,
361
+ "active_pkg_cv_pct": 14.798528785886718,
362
+ "iter_ms": 46.68890278165539,
363
+ "n_pm_samples": 8,
364
+ "ane_active_mW": 1682.5,
365
+ "gpu_active_mW": 4.0,
366
+ "cpu_active_mW": 288.5,
367
+ "flags": [
368
+ "only 8 pm samples - short window, treat as indicative"
369
+ ],
370
+ "gflops_sustained": 2943.717784818052,
371
+ "perf_per_W": 1378.7905315307037
372
+ }
373
+ }
374
+ }
375
+ }
376
+ ],
377
+ "conv": [
378
+ {
379
+ "C": 64,
380
+ "B": 8,
381
+ "HxW": "64x64",
382
+ "gflop": 2.415919104,
383
+ "devices": {
384
+ "CPU": {
385
+ "dtype": "fp32",
386
+ "lat_ms": 11.256958940066397,
387
+ "gflops": 26.82695118706889,
388
+ "relerr": 0.0,
389
+ "note": "B=1 timed, per-element GFLOP/s",
390
+ "power": {
391
+ "active_pkg_W": 6.324,
392
+ "active_pkg_cv_pct": 14.635817558891844,
393
+ "iter_ms": 641.8108645011671,
394
+ "n_pm_samples": 8,
395
+ "ane_active_mW": 0.0,
396
+ "gpu_active_mW": 55.0,
397
+ "cpu_active_mW": 6279.0,
398
+ "flags": [
399
+ "only 8 pm samples - short window, treat as indicative"
400
+ ],
401
+ "gflops_sustained": 3.764222822681131,
402
+ "perf_per_W": 0.5952281503290846
403
+ }
404
+ },
405
+ "GPU": {
406
+ "dtype": "fp16",
407
+ "lat_ms": 1.124209025874734,
408
+ "gflops": 2148.994580540929,
409
+ "relerr": 0.000358796446528688,
410
+ "power": {
411
+ "active_pkg_W": 12.3315,
412
+ "active_pkg_cv_pct": 22.908111627490435,
413
+ "iter_ms": 1.0216411270487478,
414
+ "n_pm_samples": 8,
415
+ "ane_active_mW": 0.0,
416
+ "gpu_active_mW": 12616.5,
417
+ "cpu_active_mW": 0.0,
418
+ "flags": [
419
+ "only 8 pm samples - short window, treat as indicative"
420
+ ],
421
+ "gflops_sustained": 2364.743391819938,
422
+ "perf_per_W": 191.76445621537835
423
+ }
424
+ },
425
+ "ANE": {
426
+ "dtype": "fp16",
427
+ "lat_ms": 3.4545829985290766,
428
+ "gflops": 699.3374033938892,
429
+ "relerr": 0.00036719206236946063,
430
+ "power": {
431
+ "active_pkg_W": 5.263,
432
+ "active_pkg_cv_pct": 20.372329561828966,
433
+ "iter_ms": 4.267936370458948,
434
+ "n_pm_samples": 8,
435
+ "ane_active_mW": 973.5,
436
+ "gpu_active_mW": 39.0,
437
+ "cpu_active_mW": 4401.5,
438
+ "flags": [
439
+ "only 8 pm samples - short window, treat as indicative"
440
+ ],
441
+ "gflops_sustained": 566.0625872311698,
442
+ "perf_per_W": 107.5551182274691
443
+ }
444
+ }
445
+ }
446
+ },
447
+ {
448
+ "C": 128,
449
+ "B": 8,
450
+ "HxW": "64x64",
451
+ "gflop": 9.663676416,
452
+ "devices": {
453
+ "CPU": {
454
+ "dtype": "fp32",
455
+ "lat_ms": 44.6183750173077,
456
+ "gflops": 27.073140864754176,
457
+ "relerr": 0.0,
458
+ "note": "B=1 timed, per-element GFLOP/s",
459
+ "power": {
460
+ "active_pkg_W": 8.725,
461
+ "active_pkg_cv_pct": 12.813794393957625,
462
+ "iter_ms": 2570.3861946628117,
463
+ "n_pm_samples": 8,
464
+ "ane_active_mW": 0.0,
465
+ "gpu_active_mW": 27.0,
466
+ "cpu_active_mW": 8677.5,
467
+ "flags": [
468
+ "only 8 pm samples - short window, treat as indicative"
469
+ ],
470
+ "gflops_sustained": 3.7596204165995766,
471
+ "perf_per_W": 0.4309020534784615
472
+ }
473
+ },
474
+ "GPU": {
475
+ "dtype": "fp16",
476
+ "lat_ms": 2.3197910049930215,
477
+ "gflops": 4165.753033441506,
478
+ "relerr": 0.007292329779816631,
479
+ "power": {
480
+ "active_pkg_W": 13.375,
481
+ "active_pkg_cv_pct": 12.146451345589005,
482
+ "iter_ms": 2.0335311634240503,
483
+ "n_pm_samples": 8,
484
+ "ane_active_mW": 0.0,
485
+ "gpu_active_mW": 14447.0,
486
+ "cpu_active_mW": 0.0,
487
+ "flags": [
488
+ "only 8 pm samples - short window, treat as indicative"
489
+ ],
490
+ "gflops_sustained": 4752.165390830965,
491
+ "perf_per_W": 355.3020852957731
492
+ }
493
+ },
494
+ "ANE": {
495
+ "dtype": "fp16",
496
+ "lat_ms": 8.123166975565255,
497
+ "gflops": 1189.6439461442376,
498
+ "relerr": 0.0003751852371063253,
499
+ "power": {
500
+ "active_pkg_W": 5.993,
501
+ "active_pkg_cv_pct": 16.88101204120866,
502
+ "iter_ms": 10.329961749060905,
503
+ "n_pm_samples": 8,
504
+ "ane_active_mW": 474.5,
505
+ "gpu_active_mW": 29.0,
506
+ "cpu_active_mW": 5562.0,
507
+ "flags": [
508
+ "only 8 pm samples - short window, treat as indicative"
509
+ ],
510
+ "gflops_sustained": 935.4997289199567,
511
+ "perf_per_W": 156.09873667945214
512
+ }
513
+ }
514
+ }
515
+ },
516
+ {
517
+ "C": 256,
518
+ "B": 4,
519
+ "HxW": "64x64",
520
+ "gflop": 19.327352832,
521
+ "devices": {
522
+ "CPU": {
523
+ "dtype": "fp32",
524
+ "lat_ms": 184.72754198592156,
525
+ "gflops": 26.1565663466049,
526
+ "relerr": 0.0,
527
+ "note": "B=1 timed, per-element GFLOP/s",
528
+ "power": {
529
+ "active_pkg_W": 7.155,
530
+ "active_pkg_cv_pct": 15.028018530130577,
531
+ "iter_ms": 6078.380124992691,
532
+ "n_pm_samples": 8,
533
+ "ane_active_mW": 0.0,
534
+ "gpu_active_mW": 67.0,
535
+ "cpu_active_mW": 7094.5,
536
+ "flags": [
537
+ "only 8 pm samples - short window, treat as indicative"
538
+ ],
539
+ "gflops_sustained": 3.1796880804691763,
540
+ "perf_per_W": 0.444400849820989
541
+ }
542
+ },
543
+ "GPU": {
544
+ "dtype": "fp16",
545
+ "lat_ms": 2.538457978516817,
546
+ "gflops": 7613.816338725718,
547
+ "relerr": 0.0073013232216837375,
548
+ "power": {
549
+ "active_pkg_W": 15.5445,
550
+ "active_pkg_cv_pct": 11.778164086917448,
551
+ "iter_ms": 3.243151367869137,
552
+ "n_pm_samples": 8,
553
+ "ane_active_mW": 0.0,
554
+ "gpu_active_mW": 12251.0,
555
+ "cpu_active_mW": 6801.5,
556
+ "flags": [
557
+ "only 8 pm samples - short window, treat as indicative"
558
+ ],
559
+ "gflops_sustained": 5959.435943533755,
560
+ "perf_per_W": 383.379069351459
561
+ }
562
+ },
563
+ "ANE": {
564
+ "dtype": "fp16",
565
+ "lat_ms": 9.183041984215379,
566
+ "gflops": 2104.6786963646205,
567
+ "relerr": 0.0003901075540107346,
568
+ "power": {
569
+ "active_pkg_W": 6.1075,
570
+ "active_pkg_cv_pct": 18.874739138415325,
571
+ "iter_ms": 12.561562313563988,
572
+ "n_pm_samples": 8,
573
+ "ane_active_mW": 461.5,
574
+ "gpu_active_mW": 26.5,
575
+ "cpu_active_mW": 5709.0,
576
+ "flags": [
577
+ "only 8 pm samples - short window, treat as indicative"
578
+ ],
579
+ "gflops_sustained": 1538.6105923409148,
580
+ "perf_per_W": 251.92150509061233
581
+ }
582
+ }
583
+ }
584
+ },
585
+ {
586
+ "C": 512,
587
+ "B": 2,
588
+ "HxW": "64x64",
589
+ "gflop": 38.654705664,
590
+ "devices": {
591
+ "CPU": {
592
+ "dtype": "fp32",
593
+ "lat_ms": 761.958459042944,
594
+ "gflops": 25.365362904791517,
595
+ "relerr": 0.0,
596
+ "note": "B=1 timed, per-element GFLOP/s",
597
+ "power": {
598
+ "active_pkg_W": 7.583,
599
+ "active_pkg_cv_pct": 11.907737367440545,
600
+ "iter_ms": 10248.06883407291,
601
+ "n_pm_samples": 8,
602
+ "ane_active_mW": 0.0,
603
+ "gpu_active_mW": 40.5,
604
+ "cpu_active_mW": 7528.5,
605
+ "flags": [
606
+ "only 8 pm samples - short window, treat as indicative"
607
+ ],
608
+ "gflops_sustained": 3.771901446980951,
609
+ "perf_per_W": 0.49741546181998564
610
+ }
611
+ },
612
+ "GPU": {
613
+ "dtype": "fp16",
614
+ "lat_ms": 6.531750084832311,
615
+ "gflops": 5917.970706466854,
616
+ "relerr": 0.007389113870275627,
617
+ "power": {
618
+ "active_pkg_W": 17.8175,
619
+ "active_pkg_cv_pct": 6.889441026943448,
620
+ "iter_ms": 5.978696771741342,
621
+ "n_pm_samples": 8,
622
+ "ane_active_mW": 0.0,
623
+ "gpu_active_mW": 12153.5,
624
+ "cpu_active_mW": 5785.5,
625
+ "flags": [
626
+ "only 8 pm samples - short window, treat as indicative"
627
+ ],
628
+ "gflops_sustained": 6465.40661615483,
629
+ "perf_per_W": 362.8683382155089
630
+ }
631
+ },
632
+ "ANE": {
633
+ "dtype": "fp16",
634
+ "lat_ms": 12.928584008477628,
635
+ "gflops": 2989.8638272105472,
636
+ "relerr": 0.00041904779177991044,
637
+ "power": {
638
+ "active_pkg_W": 5.4375,
639
+ "active_pkg_cv_pct": 16.260173016064392,
640
+ "iter_ms": 15.161821291855835,
641
+ "n_pm_samples": 8,
642
+ "ane_active_mW": 751.0,
643
+ "gpu_active_mW": 63.0,
644
+ "cpu_active_mW": 4461.0,
645
+ "flags": [
646
+ "only 8 pm samples - short window, treat as indicative"
647
+ ],
648
+ "gflops_sustained": 2549.476406555679,
649
+ "perf_per_W": 468.8692241941479
650
+ }
651
+ }
652
+ }
653
+ }
654
+ ],
655
+ "peaks": {
656
+ "gemm": {
657
+ "CPU": {
658
+ "peak_gflops": 369.0704329708055,
659
+ "peak_gflops_size": 4096,
660
+ "peak_gflops_relerr": 3.39259436032721e-07,
661
+ "peak_perf_per_W": 14.496360320109405,
662
+ "peak_perf_per_W_size": 4096
663
+ },
664
+ "GPU": {
665
+ "peak_gflops": 5012.490963589494,
666
+ "peak_gflops_size": 4096,
667
+ "peak_gflops_relerr": 0.000359763213237879,
668
+ "peak_perf_per_W": 305.72186086948903,
669
+ "peak_perf_per_W_size": 1024
670
+ },
671
+ "ANE": {
672
+ "peak_gflops": 3263.4850363779065,
673
+ "peak_gflops_size": 4096,
674
+ "peak_gflops_relerr": 0.027237621125542084,
675
+ "peak_perf_per_W": 1378.7905315307037,
676
+ "peak_perf_per_W_size": 4096
677
+ }
678
+ },
679
+ "conv": {
680
+ "CPU": {
681
+ "peak_gflops": 27.073140864754176,
682
+ "peak_gflops_size": 128,
683
+ "peak_gflops_relerr": 0.0,
684
+ "peak_perf_per_W": 0.5952281503290846,
685
+ "peak_perf_per_W_size": 64
686
+ },
687
+ "GPU": {
688
+ "peak_gflops": 7613.816338725718,
689
+ "peak_gflops_size": 256,
690
+ "peak_gflops_relerr": 0.0073013232216837375,
691
+ "peak_perf_per_W": 383.379069351459,
692
+ "peak_perf_per_W_size": 256
693
+ },
694
+ "ANE": {
695
+ "peak_gflops": 2989.8638272105472,
696
+ "peak_gflops_size": 512,
697
+ "peak_gflops_relerr": 0.00041904779177991044,
698
+ "peak_perf_per_W": 468.8692241941479,
699
+ "peak_perf_per_W_size": 512
700
+ }
701
+ }
702
+ },
703
+ "meta": {
704
+ "backends": {
705
+ "ane": true,
706
+ "mlx": true,
707
+ "sudo": true
708
+ },
709
+ "gemm_ns": [
710
+ 512,
711
+ 1024,
712
+ 2048,
713
+ 4096
714
+ ],
715
+ "conv_configs": [
716
+ [
717
+ 64,
718
+ 8
719
+ ],
720
+ [
721
+ 128,
722
+ 8
723
+ ],
724
+ [
725
+ 256,
726
+ 4
727
+ ],
728
+ [
729
+ 512,
730
+ 2
731
+ ]
732
+ ],
733
+ "conv_spatial": 64,
734
+ "power_window_s": 2.5,
735
+ "reps": 8,
736
+ "idle_mW": {
737
+ "ane": 0.0,
738
+ "cpu": 9053.0,
739
+ "gpu": 58.0
740
+ },
741
+ "idle_pkg_mW": 9113.0
742
+ }
743
+ }
744
+ },
745
+ {
746
+ "script": "device_bandwidth_roofline.py",
747
+ "result_file": "device_bandwidth_roofline_results.json",
748
+ "returncode": 0,
749
+ "seconds": 173.3,
750
+ "summary": {
751
+ "backends": {
752
+ "ane": true,
753
+ "mlx": true,
754
+ "sudo": true
755
+ },
756
+ "window_s": 2.0,
757
+ "pm_interval_ms": 500,
758
+ "sizes": [
759
+ 1048576,
760
+ 8388608,
761
+ 33554432
762
+ ],
763
+ "idle_mW": {
764
+ "ane": 0.0,
765
+ "cpu": 10876.5,
766
+ "gpu": 80.0
767
+ },
768
+ "idle_pkg_mW": 10973.5,
769
+ "results": {
770
+ "roofline": {
771
+ "streaming (relu / x*2)": {
772
+ "byte_factor": 2,
773
+ "sizes": [
774
+ {
775
+ "nelem": 1048576,
776
+ "shape": [
777
+ 256,
778
+ 4096
779
+ ],
780
+ "gpu_gbps": 23.15171855294291,
781
+ "gpu_lat_ms": 0.18116598948836327,
782
+ "gpu_relerr": 0.00020780100009546728,
783
+ "ane_gbps": 0.8500748062249347,
784
+ "ane_lat_ms": 4.934041062369943,
785
+ "ane_relerr": 0.00020780100009546728,
786
+ "cpu_gbps": 114.52037475116167,
787
+ "cpu_lat_ms": 0.07324991747736931
788
+ },
789
+ {
790
+ "nelem": 8388608,
791
+ "shape": [
792
+ 2048,
793
+ 4096
794
+ ],
795
+ "gpu_gbps": 96.21344721676746,
796
+ "gpu_lat_ms": 0.3487499197944999,
797
+ "gpu_relerr": 0.00020761950117408252,
798
+ "ane_gbps": 0.9456092587860266,
799
+ "ane_lat_ms": 35.48445797059685,
800
+ "ane_relerr": 0.00020761950117408252,
801
+ "cpu_gbps": 92.23534371059706,
802
+ "cpu_lat_ms": 0.7275829557329416
803
+ },
804
+ {
805
+ "nelem": 33554432,
806
+ "shape": [
807
+ 8192,
808
+ 4096
809
+ ],
810
+ "gpu_gbps": 140.37059197892995,
811
+ "gpu_lat_ms": 0.9561670012772083,
812
+ "gpu_relerr": 0.00020772223594419786,
813
+ "ane_gbps": 0.9586683792350782,
814
+ "ane_lat_ms": 140.00433403998613,
815
+ "ane_relerr": 0.00020772223594419786,
816
+ "cpu_gbps": 90.5169256668715,
817
+ "cpu_lat_ms": 2.965583000332117
818
+ }
819
+ ],
820
+ "peak": {
821
+ "ane": {
822
+ "gbps": 0.9586683792350782,
823
+ "at_nelem": 33554432
824
+ },
825
+ "gpu": {
826
+ "gbps": 140.37059197892995,
827
+ "at_nelem": 33554432
828
+ },
829
+ "cpu": {
830
+ "gbps": 114.52037475116167,
831
+ "at_nelem": 1048576
832
+ }
833
+ },
834
+ "power": {
835
+ "ane": {
836
+ "iter_ms": 147.48946842243612,
837
+ "iters": 33,
838
+ "n_pm_samples": 8,
839
+ "ane_loaded_mW": 32.5,
840
+ "ane_active_mW": 32.5,
841
+ "cpu_loaded_mW": 10835.0,
842
+ "cpu_active_mW": 0.0,
843
+ "gpu_loaded_mW": 42.0,
844
+ "gpu_active_mW": 0.0,
845
+ "loaded_pkg_W": 10.9155,
846
+ "active_pkg_W": 0.0,
847
+ "active_pkg_mean_W": 0.157875,
848
+ "active_pkg_min_W": 0.0,
849
+ "active_pkg_p90_W": 3.3412999999999995,
850
+ "active_pkg_cv_pct": 27.16343185353435,
851
+ "flags": [
852
+ "only 8 pm samples - short window, treat as indicative"
853
+ ]
854
+ },
855
+ "gpu": {
856
+ "iter_ms": 1.1768482772496123,
857
+ "iters": 6240,
858
+ "n_pm_samples": 8,
859
+ "ane_loaded_mW": 0.0,
860
+ "ane_active_mW": 0.0,
861
+ "cpu_loaded_mW": 12073.0,
862
+ "cpu_active_mW": 1196.5,
863
+ "gpu_loaded_mW": 1940.5,
864
+ "gpu_active_mW": 1860.5,
865
+ "loaded_pkg_W": 13.9735,
866
+ "active_pkg_W": 3.0,
867
+ "active_pkg_mean_W": 3.010875,
868
+ "active_pkg_min_W": 1.1975,
869
+ "active_pkg_p90_W": 4.0196000000000005,
870
+ "active_pkg_cv_pct": 6.8242216981288575,
871
+ "flags": [
872
+ "only 8 pm samples - short window, treat as indicative"
873
+ ],
874
+ "gbps_loop": 114.0484551786722,
875
+ "gbps_per_W": 38.01615172622407
876
+ },
877
+ "cpu": {
878
+ "iter_ms": 3.272146308337695,
879
+ "iters": 1492,
880
+ "n_pm_samples": 8,
881
+ "ane_loaded_mW": 0.0,
882
+ "ane_active_mW": 0.0,
883
+ "cpu_loaded_mW": 15673.0,
884
+ "cpu_active_mW": 4796.5,
885
+ "gpu_loaded_mW": 37.0,
886
+ "gpu_active_mW": 0.0,
887
+ "loaded_pkg_W": 15.708,
888
+ "active_pkg_W": 4.7345,
889
+ "active_pkg_mean_W": 4.46925,
890
+ "active_pkg_min_W": 1.1615,
891
+ "active_pkg_p90_W": 6.094599999999999,
892
+ "active_pkg_cv_pct": 11.157713969989652,
893
+ "flags": [
894
+ "only 8 pm samples - short window, treat as indicative"
895
+ ],
896
+ "gbps_loop": 82.03650775517116,
897
+ "gbps_per_W": 17.327385733482135
898
+ }
899
+ }
900
+ },
901
+ "gelu (light compute)": {
902
+ "byte_factor": 2,
903
+ "sizes": [
904
+ {
905
+ "nelem": 1048576,
906
+ "shape": [
907
+ 256,
908
+ 4096
909
+ ],
910
+ "gpu_gbps": 11.437724232424337,
911
+ "gpu_lat_ms": 0.3667079145088792,
912
+ "gpu_relerr": 0.00044965022705371123,
913
+ "ane_gbps": 2.2930131420811213,
914
+ "ane_lat_ms": 1.8291670130565763,
915
+ "ane_relerr": 0.0023991256786575874,
916
+ "cpu_gbps": 117.80257035599918,
917
+ "cpu_lat_ms": 0.07120904047042131
918
+ },
919
+ {
920
+ "nelem": 8388608,
921
+ "shape": [
922
+ 2048,
923
+ 4096
924
+ ],
925
+ "gpu_gbps": 28.275222151126393,
926
+ "gpu_lat_ms": 1.1867079883813858,
927
+ "gpu_relerr": 0.0004494711439825247,
928
+ "ane_gbps": 2.561985526073631,
929
+ "ane_lat_ms": 13.097041985020041,
930
+ "ane_relerr": 0.002401073282622596,
931
+ "cpu_gbps": 85.33506950632315,
932
+ "cpu_lat_ms": 0.7864159997552633
933
+ },
934
+ {
935
+ "nelem": 33554432,
936
+ "shape": [
937
+ 8192,
938
+ 4096
939
+ ],
940
+ "gpu_gbps": 27.569783492802518,
941
+ "gpu_lat_ms": 4.86829096917063,
942
+ "gpu_relerr": 0.0004495454643067537,
943
+ "ane_gbps": 2.7906479977440126,
944
+ "ane_lat_ms": 48.09554200619459,
945
+ "ane_relerr": 0.002402333092679968,
946
+ "cpu_gbps": 84.18863119841087,
947
+ "cpu_lat_ms": 3.1885000644251704
948
+ }
949
+ ],
950
+ "peak": {
951
+ "ane": {
952
+ "gbps": 2.7906479977440126,
953
+ "at_nelem": 33554432
954
+ },
955
+ "gpu": {
956
+ "gbps": 28.275222151126393,
957
+ "at_nelem": 8388608
958
+ },
959
+ "cpu": {
960
+ "gbps": 117.80257035599918,
961
+ "at_nelem": 1048576
962
+ }
963
+ },
964
+ "power": {
965
+ "ane": {
966
+ "iter_ms": 51.8649388019791,
967
+ "iters": 96,
968
+ "n_pm_samples": 8,
969
+ "ane_loaded_mW": 134.0,
970
+ "ane_active_mW": 134.0,
971
+ "cpu_loaded_mW": 10219.5,
972
+ "cpu_active_mW": 0.0,
973
+ "gpu_loaded_mW": 45.0,
974
+ "gpu_active_mW": 0.0,
975
+ "loaded_pkg_W": 10.3995,
976
+ "active_pkg_W": 0.0,
977
+ "active_pkg_mean_W": 0.0,
978
+ "active_pkg_min_W": 0.0,
979
+ "active_pkg_p90_W": 2.0882999999999994,
980
+ "active_pkg_cv_pct": 25.31414931117728,
981
+ "flags": [
982
+ "only 8 pm samples - short window, treat as indicative"
983
+ ]
984
+ },
985
+ "gpu": {
986
+ "iter_ms": 5.017591989599168,
987
+ "iters": 1059,
988
+ "n_pm_samples": 8,
989
+ "ane_loaded_mW": 0.0,
990
+ "ane_active_mW": 0.0,
991
+ "cpu_loaded_mW": 7153.0,
992
+ "cpu_active_mW": 0.0,
993
+ "gpu_loaded_mW": 8594.5,
994
+ "gpu_active_mW": 8514.5,
995
+ "loaded_pkg_W": 16.546,
996
+ "active_pkg_W": 5.5725,
997
+ "active_pkg_mean_W": 4.68475,
998
+ "active_pkg_min_W": 2.2095,
999
+ "active_pkg_p90_W": 6.467400000000001,
1000
+ "active_pkg_cv_pct": 12.281888139415994,
1001
+ "flags": [
1002
+ "only 8 pm samples - short window, treat as indicative"
1003
+ ],
1004
+ "gbps_loop": 26.749430459514507,
1005
+ "gbps_per_W": 4.800256699778288
1006
+ },
1007
+ "cpu": {
1008
+ "iter_ms": 3.1622753517184266,
1009
+ "iters": 1683,
1010
+ "n_pm_samples": 8,
1011
+ "ane_loaded_mW": 0.0,
1012
+ "ane_active_mW": 0.0,
1013
+ "cpu_loaded_mW": 14436.5,
1014
+ "cpu_active_mW": 3560.0,
1015
+ "gpu_loaded_mW": 42.0,
1016
+ "gpu_active_mW": 0.0,
1017
+ "loaded_pkg_W": 14.476,
1018
+ "active_pkg_W": 3.5025,
1019
+ "active_pkg_mean_W": 3.041375,
1020
+ "active_pkg_min_W": 0.0625,
1021
+ "active_pkg_p90_W": 4.6116,
1022
+ "active_pkg_cv_pct": 11.16457937443694,
1023
+ "flags": [
1024
+ "only 8 pm samples - short window, treat as indicative"
1025
+ ],
1026
+ "gbps_loop": 84.88680653761801,
1027
+ "gbps_per_W": 24.236061823731053
1028
+ }
1029
+ }
1030
+ },
1031
+ "reduction (sum)": {
1032
+ "byte_factor": 1,
1033
+ "sizes": [
1034
+ {
1035
+ "nelem": 1048576,
1036
+ "shape": [
1037
+ 256,
1038
+ 4096
1039
+ ],
1040
+ "gpu_gbps": 10.654471040625548,
1041
+ "gpu_lat_ms": 0.19683304708451033,
1042
+ "gpu_relerr": 0.0008662560456038065,
1043
+ "ane_gbps": 6.84319593409115,
1044
+ "ane_lat_ms": 0.30645797960460186,
1045
+ "ane_relerr": 0.0007224220967624157,
1046
+ "cpu_gbps": 23.156956457917573,
1047
+ "cpu_lat_ms": 0.18112501129508018
1048
+ },
1049
+ {
1050
+ "nelem": 8388608,
1051
+ "shape": [
1052
+ 2048,
1053
+ 4096
1054
+ ],
1055
+ "gpu_gbps": 36.063824008031766,
1056
+ "gpu_lat_ms": 0.4652090137824416,
1057
+ "gpu_relerr": 0.0008213662302940088,
1058
+ "ane_gbps": 14.348195914555877,
1059
+ "ane_lat_ms": 1.1692909756675363,
1060
+ "ane_relerr": 0.0008092132072331682,
1061
+ "cpu_gbps": 23.914071753215513,
1062
+ "cpu_lat_ms": 1.4031250029802322
1063
+ },
1064
+ {
1065
+ "nelem": 33554432,
1066
+ "shape": [
1067
+ 8192,
1068
+ 4096
1069
+ ],
1070
+ "gpu_gbps": 94.56400439033618,
1071
+ "gpu_lat_ms": 0.7096660556271672,
1072
+ "gpu_relerr": 0.0008194761396582728,
1073
+ "ane_gbps": 13.516161313517616,
1074
+ "ane_lat_ms": 4.965083091519773,
1075
+ "ane_relerr": 0.0008128390012191236,
1076
+ "cpu_gbps": 23.86552886666721,
1077
+ "cpu_lat_ms": 5.623915931209922
1078
+ }
1079
+ ],
1080
+ "peak": {
1081
+ "ane": {
1082
+ "gbps": 14.348195914555877,
1083
+ "at_nelem": 8388608
1084
+ },
1085
+ "gpu": {
1086
+ "gbps": 94.56400439033618,
1087
+ "at_nelem": 33554432
1088
+ },
1089
+ "cpu": {
1090
+ "gbps": 23.914071753215513,
1091
+ "at_nelem": 8388608
1092
+ }
1093
+ },
1094
+ "power": {
1095
+ "ane": {
1096
+ "iter_ms": 6.219053169227805,
1097
+ "iters": 786,
1098
+ "n_pm_samples": 8,
1099
+ "ane_loaded_mW": 298.0,
1100
+ "ane_active_mW": 298.0,
1101
+ "cpu_loaded_mW": 11670.0,
1102
+ "cpu_active_mW": 793.5,
1103
+ "gpu_loaded_mW": 50.0,
1104
+ "gpu_active_mW": 0.0,
1105
+ "loaded_pkg_W": 11.983,
1106
+ "active_pkg_W": 1.0095,
1107
+ "active_pkg_mean_W": 1.15025,
1108
+ "active_pkg_min_W": 0.0,
1109
+ "active_pkg_p90_W": 4.091,
1110
+ "active_pkg_cv_pct": 21.500483028056525,
1111
+ "flags": [
1112
+ "only 8 pm samples - short window, treat as indicative"
1113
+ ],
1114
+ "gbps_loop": 10.79084905272367,
1115
+ "gbps_per_W": 10.68930069611062
1116
+ },
1117
+ "gpu": {
1118
+ "iter_ms": 1.0063012301276093,
1119
+ "iters": 4993,
1120
+ "n_pm_samples": 8,
1121
+ "ane_loaded_mW": 0.0,
1122
+ "ane_active_mW": 0.0,
1123
+ "cpu_loaded_mW": 9580.5,
1124
+ "cpu_active_mW": 0.0,
1125
+ "gpu_loaded_mW": 3493.0,
1126
+ "gpu_active_mW": 3413.0,
1127
+ "loaded_pkg_W": 13.3035,
1128
+ "active_pkg_W": 2.33,
1129
+ "active_pkg_mean_W": 1.9845,
1130
+ "active_pkg_min_W": 0.0,
1131
+ "active_pkg_p90_W": 4.1769,
1132
+ "active_pkg_cv_pct": 15.770179167242674,
1133
+ "flags": [
1134
+ "only 8 pm samples - short window, treat as indicative"
1135
+ ],
1136
+ "gbps_loop": 66.68864351034323,
1137
+ "gbps_per_W": 28.621735412164472
1138
+ },
1139
+ "cpu": {
1140
+ "iter_ms": 5.639603251793505,
1141
+ "iters": 866,
1142
+ "n_pm_samples": 8,
1143
+ "ane_loaded_mW": 0.0,
1144
+ "ane_active_mW": 0.0,
1145
+ "cpu_loaded_mW": 15037.5,
1146
+ "cpu_active_mW": 4161.0,
1147
+ "gpu_loaded_mW": 60.0,
1148
+ "gpu_active_mW": 0.0,
1149
+ "loaded_pkg_W": 15.0765,
1150
+ "active_pkg_W": 4.103,
1151
+ "active_pkg_mean_W": 4.57425,
1152
+ "active_pkg_min_W": 1.5945,
1153
+ "active_pkg_p90_W": 7.695200000000001,
1154
+ "active_pkg_cv_pct": 15.877954735491478,
1155
+ "flags": [
1156
+ "only 8 pm samples - short window, treat as indicative"
1157
+ ],
1158
+ "gbps_loop": 23.799143664461877,
1159
+ "gbps_per_W": 5.8004249730591955
1160
+ }
1161
+ }
1162
+ },
1163
+ "softmax": {
1164
+ "byte_factor": 2,
1165
+ "sizes": [
1166
+ {
1167
+ "nelem": 1048576,
1168
+ "shape": [
1169
+ 256,
1170
+ 4096
1171
+ ],
1172
+ "gpu_gbps": 22.434360038334564,
1173
+ "gpu_lat_ms": 0.18695893231779337,
1174
+ "gpu_relerr": 0.0007649086623195728,
1175
+ "ane_gbps": 1.221079050307153,
1176
+ "ane_lat_ms": 3.434916026890278,
1177
+ "ane_relerr": 0.0010240666804472887,
1178
+ "cpu_gbps": 3.983904072056775,
1179
+ "cpu_lat_ms": 2.1056249970570207
1180
+ },
1181
+ {
1182
+ "nelem": 8388608,
1183
+ "shape": [
1184
+ 2048,
1185
+ 4096
1186
+ ],
1187
+ "gpu_gbps": 66.01408689985485,
1188
+ "gpu_lat_ms": 0.5082919960841537,
1189
+ "gpu_relerr": 0.0007690273652997765,
1190
+ "ane_gbps": 1.393555386720624,
1191
+ "ane_lat_ms": 24.078290909528732,
1192
+ "ane_relerr": 0.0010582602743791426,
1193
+ "cpu_gbps": 3.7654012689895433,
1194
+ "cpu_lat_ms": 17.822499969042838
1195
+ },
1196
+ {
1197
+ "nelem": 33554432,
1198
+ "shape": [
1199
+ 8192,
1200
+ 4096
1201
+ ],
1202
+ "gpu_gbps": 147.12822703735384,
1203
+ "gpu_lat_ms": 0.9122500196099281,
1204
+ "gpu_relerr": 0.0007703648855113323,
1205
+ "ane_gbps": 1.4253266922930332,
1206
+ "ane_lat_ms": 94.1662909463048,
1207
+ "ane_relerr": 0.0010575844059423666,
1208
+ "cpu_gbps": 3.684537622153285,
1209
+ "cpu_lat_ms": 72.85458408296108
1210
+ }
1211
+ ],
1212
+ "peak": {
1213
+ "ane": {
1214
+ "gbps": 1.4253266922930332,
1215
+ "at_nelem": 33554432
1216
+ },
1217
+ "gpu": {
1218
+ "gbps": 147.12822703735384,
1219
+ "at_nelem": 33554432
1220
+ },
1221
+ "cpu": {
1222
+ "gbps": 3.983904072056775,
1223
+ "at_nelem": 1048576
1224
+ }
1225
+ },
1226
+ "power": {
1227
+ "ane": {
1228
+ "iter_ms": 129.15039851139178,
1229
+ "iters": 39,
1230
+ "n_pm_samples": 8,
1231
+ "ane_loaded_mW": 151.0,
1232
+ "ane_active_mW": 151.0,
1233
+ "cpu_loaded_mW": 11944.0,
1234
+ "cpu_active_mW": 1067.5,
1235
+ "gpu_loaded_mW": 51.0,
1236
+ "gpu_active_mW": 0.0,
1237
+ "loaded_pkg_W": 12.1235,
1238
+ "active_pkg_W": 1.15,
1239
+ "active_pkg_mean_W": 1.33675,
1240
+ "active_pkg_min_W": 0.3225,
1241
+ "active_pkg_p90_W": 2.3817999999999993,
1242
+ "active_pkg_cv_pct": 7.549087463926833,
1243
+ "flags": [
1244
+ "only 8 pm samples - short window, treat as indicative"
1245
+ ],
1246
+ "gbps_loop": 1.0392358796179884,
1247
+ "gbps_per_W": 0.9036833735808595
1248
+ },
1249
+ "gpu": {
1250
+ "iter_ms": 1.00892769500946,
1251
+ "iters": 4836,
1252
+ "n_pm_samples": 8,
1253
+ "ane_loaded_mW": 0.0,
1254
+ "ane_active_mW": 0.0,
1255
+ "cpu_loaded_mW": 9346.0,
1256
+ "cpu_active_mW": 0.0,
1257
+ "gpu_loaded_mW": 9047.0,
1258
+ "gpu_active_mW": 8967.0,
1259
+ "loaded_pkg_W": 18.295,
1260
+ "active_pkg_W": 7.3215,
1261
+ "active_pkg_mean_W": 6.9945,
1262
+ "active_pkg_min_W": 2.6875,
1263
+ "active_pkg_p90_W": 9.004599999999998,
1264
+ "active_pkg_cv_pct": 11.045722282106956,
1265
+ "flags": [
1266
+ "only 8 pm samples - short window, treat as indicative"
1267
+ ],
1268
+ "gbps_loop": 133.03007605390547,
1269
+ "gbps_per_W": 18.169784341174005
1270
+ },
1271
+ "cpu": {
1272
+ "iter_ms": 100.51247596185512,
1273
+ "iters": 52,
1274
+ "n_pm_samples": 8,
1275
+ "ane_loaded_mW": 0.0,
1276
+ "ane_active_mW": 0.0,
1277
+ "cpu_loaded_mW": 12749.5,
1278
+ "cpu_active_mW": 1873.0,
1279
+ "gpu_loaded_mW": 85.0,
1280
+ "gpu_active_mW": 5.0,
1281
+ "loaded_pkg_W": 12.8335,
1282
+ "active_pkg_W": 1.86,
1283
+ "active_pkg_mean_W": 2.4425,
1284
+ "active_pkg_min_W": 0.0,
1285
+ "active_pkg_p90_W": 7.095200000000001,
1286
+ "active_pkg_cv_pct": 27.89567955206344,
1287
+ "flags": [
1288
+ "only 8 pm samples - short window, treat as indicative"
1289
+ ],
1290
+ "gbps_loop": 2.670668028333839,
1291
+ "gbps_per_W": 1.4358430259859347
1292
+ }
1293
+ }
1294
+ },
1295
+ "layer_norm": {
1296
+ "byte_factor": 2,
1297
+ "sizes": [
1298
+ {
1299
+ "nelem": 1048576,
1300
+ "shape": [
1301
+ 256,
1302
+ 4096
1303
+ ],
1304
+ "gpu_gbps": 8.649546974505425,
1305
+ "gpu_lat_ms": 0.4849160322919488,
1306
+ "gpu_relerr": 0.0005958694656335701,
1307
+ "ane_err": "RuntimeError: ane_e5rt_program_compile failed (mil=/Users/isaac/Models/.aneforge-cache/be7f77f75c7f8bb1d93ab898/model.mil, mask=0x4). See stderr for the actual Espresso error.",
1308
+ "cpu_gbps": 7.462894941584061,
1309
+ "cpu_lat_ms": 1.124042086303234
1310
+ },
1311
+ {
1312
+ "nelem": 8388608,
1313
+ "shape": [
1314
+ 2048,
1315
+ 4096
1316
+ ],
1317
+ "gpu_gbps": 19.724361333822472,
1318
+ "gpu_lat_ms": 1.7011669697239995,
1319
+ "gpu_relerr": 0.0005845055587579352,
1320
+ "ane_err": "RuntimeError: ane_e5rt_program_compile failed (mil=/Users/isaac/Models/.aneforge-cache/f4e66bff1746589c0ee1c4a8/model.mil, mask=0x4). See stderr for the actual Espresso error.",
1321
+ "cpu_gbps": 6.669286731016613,
1322
+ "cpu_lat_ms": 10.062374989502132
1323
+ },
1324
+ {
1325
+ "nelem": 33554432,
1326
+ "shape": [
1327
+ 8192,
1328
+ 4096
1329
+ ],
1330
+ "gpu_gbps": 21.48099552592592,
1331
+ "gpu_lat_ms": 6.248207995668054,
1332
+ "gpu_relerr": 0.0005816761130924396,
1333
+ "ane_err": "RuntimeError: ane_e5rt_program_compile failed (mil=/Users/isaac/Models/.aneforge-cache/b0b6bcd88301a762baa4cc10/model.mil, mask=0x4). See stderr for the actual Espresso error.",
1334
+ "cpu_gbps": 6.704907954911716,
1335
+ "cpu_lat_ms": 40.0356660829857
1336
+ }
1337
+ ],
1338
+ "peak": {
1339
+ "gpu": {
1340
+ "gbps": 21.48099552592592,
1341
+ "at_nelem": 33554432
1342
+ },
1343
+ "cpu": {
1344
+ "gbps": 7.462894941584061,
1345
+ "at_nelem": 1048576
1346
+ }
1347
+ },
1348
+ "power": {
1349
+ "gpu": {
1350
+ "iter_ms": 6.493043443109859,
1351
+ "iters": 774,
1352
+ "n_pm_samples": 8,
1353
+ "ane_loaded_mW": 0.0,
1354
+ "ane_active_mW": 0.0,
1355
+ "cpu_loaded_mW": 7894.5,
1356
+ "cpu_active_mW": 0.0,
1357
+ "gpu_loaded_mW": 8623.5,
1358
+ "gpu_active_mW": 8543.5,
1359
+ "loaded_pkg_W": 16.2255,
1360
+ "active_pkg_W": 5.252,
1361
+ "active_pkg_mean_W": 5.08525,
1362
+ "active_pkg_min_W": 1.7135,
1363
+ "active_pkg_p90_W": 7.5158,
1364
+ "active_pkg_cv_pct": 12.920643872591084,
1365
+ "flags": [
1366
+ "only 8 pm samples - short window, treat as indicative"
1367
+ ],
1368
+ "gbps_loop": 20.67100415636771,
1369
+ "gbps_per_W": 3.935834759399793
1370
+ },
1371
+ "cpu": {
1372
+ "iter_ms": 41.796864754267794,
1373
+ "iters": 118,
1374
+ "n_pm_samples": 8,
1375
+ "ane_loaded_mW": 0.0,
1376
+ "ane_active_mW": 0.0,
1377
+ "cpu_loaded_mW": 13390.0,
1378
+ "cpu_active_mW": 2513.5,
1379
+ "gpu_loaded_mW": 45.0,
1380
+ "gpu_active_mW": 0.0,
1381
+ "loaded_pkg_W": 13.441,
1382
+ "active_pkg_W": 2.4675,
1383
+ "active_pkg_mean_W": 3.03725,
1384
+ "active_pkg_min_W": 0.0,
1385
+ "active_pkg_p90_W": 6.572399999999998,
1386
+ "active_pkg_cv_pct": 20.934068625607903,
1387
+ "flags": [
1388
+ "only 8 pm samples - short window, treat as indicative"
1389
+ ],
1390
+ "gbps_loop": 6.422382577692997,
1391
+ "gbps_per_W": 2.602789291871529
1392
+ }
1393
+ }
1394
+ }
1395
+ },
1396
+ "coverage": {
1397
+ "rows": [
1398
+ {
1399
+ "op": "abs",
1400
+ "set": "_EMIT",
1401
+ "class": "bandwidth-bound",
1402
+ "where": "THIS bandwidth roofline"
1403
+ },
1404
+ {
1405
+ "op": "add",
1406
+ "set": "_EMIT",
1407
+ "class": "bandwidth-bound",
1408
+ "where": "THIS bandwidth roofline"
1409
+ },
1410
+ {
1411
+ "op": "adds",
1412
+ "set": "_EMIT",
1413
+ "class": "dispatch/latency-bound",
1414
+ "where": "floor finding (CPU wins tiny)"
1415
+ },
1416
+ {
1417
+ "op": "affine",
1418
+ "set": "_EMIT",
1419
+ "class": "UNCLASSIFIED",
1420
+ "where": "!! add to a class"
1421
+ },
1422
+ {
1423
+ "op": "atan",
1424
+ "set": "_EMIT",
1425
+ "class": "UNCLASSIFIED",
1426
+ "where": "!! add to a class"
1427
+ },
1428
+ {
1429
+ "op": "avg_pool",
1430
+ "set": "_EMIT",
1431
+ "class": "bandwidth-bound",
1432
+ "where": "THIS bandwidth roofline"
1433
+ },
1434
+ {
1435
+ "op": "batch_norm",
1436
+ "set": "_EMIT",
1437
+ "class": "bandwidth-bound",
1438
+ "where": "THIS bandwidth roofline"
1439
+ },
1440
+ {
1441
+ "op": "bmm",
1442
+ "set": "_EMIT",
1443
+ "class": "compute-bound",
1444
+ "where": "saturation sweep (GEMM/conv peaks)"
1445
+ },
1446
+ {
1447
+ "op": "bmm_w",
1448
+ "set": "_EMIT",
1449
+ "class": "UNCLASSIFIED",
1450
+ "where": "!! add to a class"
1451
+ },
1452
+ {
1453
+ "op": "cast",
1454
+ "set": "_EMIT",
1455
+ "class": "UNCLASSIFIED",
1456
+ "where": "!! add to a class"
1457
+ },
1458
+ {
1459
+ "op": "ceil",
1460
+ "set": "_EMIT",
1461
+ "class": "UNCLASSIFIED",
1462
+ "where": "!! add to a class"
1463
+ },
1464
+ {
1465
+ "op": "channel_layer_norm",
1466
+ "set": "_EMIT",
1467
+ "class": "UNCLASSIFIED",
1468
+ "where": "!! add to a class"
1469
+ },
1470
+ {
1471
+ "op": "clamped_relu",
1472
+ "set": "_EMIT",
1473
+ "class": "UNCLASSIFIED",
1474
+ "where": "!! add to a class"
1475
+ },
1476
+ {
1477
+ "op": "clip",
1478
+ "set": "_EMIT",
1479
+ "class": "bandwidth-bound",
1480
+ "where": "THIS bandwidth roofline"
1481
+ },
1482
+ {
1483
+ "op": "concat",
1484
+ "set": "_EMIT",
1485
+ "class": "bandwidth-bound",
1486
+ "where": "THIS bandwidth roofline"
1487
+ },
1488
+ {
1489
+ "op": "const_array",
1490
+ "set": "_EMIT",
1491
+ "class": "UNCLASSIFIED",
1492
+ "where": "!! add to a class"
1493
+ },
1494
+ {
1495
+ "op": "conv",
1496
+ "set": "_EMIT",
1497
+ "class": "compute-bound",
1498
+ "where": "saturation sweep (GEMM/conv peaks)"
1499
+ },
1500
+ {
1501
+ "op": "conv_transpose",
1502
+ "set": "_EMIT",
1503
+ "class": "compute-bound",
1504
+ "where": "saturation sweep (GEMM/conv peaks)"
1505
+ },
1506
+ {
1507
+ "op": "cos",
1508
+ "set": "_EMIT",
1509
+ "class": "bandwidth-bound",
1510
+ "where": "THIS bandwidth roofline"
1511
+ },
1512
+ {
1513
+ "op": "crop",
1514
+ "set": "_EMIT",
1515
+ "class": "UNCLASSIFIED",
1516
+ "where": "!! add to a class"
1517
+ },
1518
+ {
1519
+ "op": "depth_to_space",
1520
+ "set": "_EMIT",
1521
+ "class": "UNCLASSIFIED",
1522
+ "where": "!! add to a class"
1523
+ },
1524
+ {
1525
+ "op": "dynamic_conv",
1526
+ "set": "_EMIT",
1527
+ "class": "UNCLASSIFIED",
1528
+ "where": "!! add to a class"
1529
+ },
1530
+ {
1531
+ "op": "einsum",
1532
+ "set": "_EMIT",
1533
+ "class": "UNCLASSIFIED",
1534
+ "where": "!! add to a class"
1535
+ },
1536
+ {
1537
+ "op": "elu",
1538
+ "set": "_EMIT",
1539
+ "class": "bandwidth-bound",
1540
+ "where": "THIS bandwidth roofline"
1541
+ },
1542
+ {
1543
+ "op": "equal",
1544
+ "set": "_EMIT",
1545
+ "class": "UNCLASSIFIED",
1546
+ "where": "!! add to a class"
1547
+ },
1548
+ {
1549
+ "op": "erf",
1550
+ "set": "_EMIT",
1551
+ "class": "bandwidth-bound",
1552
+ "where": "THIS bandwidth roofline"
1553
+ },
1554
+ {
1555
+ "op": "exp",
1556
+ "set": "_EMIT",
1557
+ "class": "bandwidth-bound",
1558
+ "where": "THIS bandwidth roofline"
1559
+ },
1560
+ {
1561
+ "op": "exp2",
1562
+ "set": "_EMIT",
1563
+ "class": "UNCLASSIFIED",
1564
+ "where": "!! add to a class"
1565
+ },
1566
+ {
1567
+ "op": "expand_dims",
1568
+ "set": "_EMIT",
1569
+ "class": "UNCLASSIFIED",
1570
+ "where": "!! add to a class"
1571
+ },
1572
+ {
1573
+ "op": "flatten2d",
1574
+ "set": "_EMIT",
1575
+ "class": "UNCLASSIFIED",
1576
+ "where": "!! add to a class"
1577
+ },
1578
+ {
1579
+ "op": "floor",
1580
+ "set": "_EMIT",
1581
+ "class": "UNCLASSIFIED",
1582
+ "where": "!! add to a class"
1583
+ },
1584
+ {
1585
+ "op": "gelu",
1586
+ "set": "_EMIT",
1587
+ "class": "bandwidth-bound",
1588
+ "where": "THIS bandwidth roofline"
1589
+ },
1590
+ {
1591
+ "op": "greater",
1592
+ "set": "_EMIT",
1593
+ "class": "UNCLASSIFIED",
1594
+ "where": "!! add to a class"
1595
+ },
1596
+ {
1597
+ "op": "greater_equal",
1598
+ "set": "_EMIT",
1599
+ "class": "UNCLASSIFIED",
1600
+ "where": "!! add to a class"
1601
+ },
1602
+ {
1603
+ "op": "group_norm",
1604
+ "set": "_EMIT",
1605
+ "class": "bandwidth-bound",
1606
+ "where": "THIS bandwidth roofline"
1607
+ },
1608
+ {
1609
+ "op": "instance_norm",
1610
+ "set": "_EMIT",
1611
+ "class": "UNCLASSIFIED",
1612
+ "where": "!! add to a class"
1613
+ },
1614
+ {
1615
+ "op": "inverse",
1616
+ "set": "_EMIT",
1617
+ "class": "UNCLASSIFIED",
1618
+ "where": "!! add to a class"
1619
+ },
1620
+ {
1621
+ "op": "l2_norm",
1622
+ "set": "_EMIT",
1623
+ "class": "bandwidth-bound",
1624
+ "where": "THIS bandwidth roofline"
1625
+ },
1626
+ {
1627
+ "op": "layer_norm",
1628
+ "set": "_EMIT",
1629
+ "class": "bandwidth-bound",
1630
+ "where": "THIS bandwidth roofline"
1631
+ },
1632
+ {
1633
+ "op": "leaky_relu",
1634
+ "set": "_EMIT",
1635
+ "class": "bandwidth-bound",
1636
+ "where": "THIS bandwidth roofline"
1637
+ },
1638
+ {
1639
+ "op": "less",
1640
+ "set": "_EMIT",
1641
+ "class": "UNCLASSIFIED",
1642
+ "where": "!! add to a class"
1643
+ },
1644
+ {
1645
+ "op": "less_equal",
1646
+ "set": "_EMIT",
1647
+ "class": "UNCLASSIFIED",
1648
+ "where": "!! add to a class"
1649
+ },
1650
+ {
1651
+ "op": "linear_activation",
1652
+ "set": "_EMIT",
1653
+ "class": "UNCLASSIFIED",
1654
+ "where": "!! add to a class"
1655
+ },
1656
+ {
1657
+ "op": "local_response_norm",
1658
+ "set": "_EMIT",
1659
+ "class": "UNCLASSIFIED",
1660
+ "where": "!! add to a class"
1661
+ },
1662
+ {
1663
+ "op": "log",
1664
+ "set": "_EMIT",
1665
+ "class": "bandwidth-bound",
1666
+ "where": "THIS bandwidth roofline"
1667
+ },
1668
+ {
1669
+ "op": "logical_not",
1670
+ "set": "_EMIT",
1671
+ "class": "UNCLASSIFIED",
1672
+ "where": "!! add to a class"
1673
+ },
1674
+ {
1675
+ "op": "matmul",
1676
+ "set": "_EMIT",
1677
+ "class": "compute-bound",
1678
+ "where": "saturation sweep (GEMM/conv peaks)"
1679
+ },
1680
+ {
1681
+ "op": "max_pool",
1682
+ "set": "_EMIT",
1683
+ "class": "bandwidth-bound",
1684
+ "where": "THIS bandwidth roofline"
1685
+ },
1686
+ {
1687
+ "op": "maximum",
1688
+ "set": "_EMIT",
1689
+ "class": "bandwidth-bound",
1690
+ "where": "THIS bandwidth roofline"
1691
+ },
1692
+ {
1693
+ "op": "minimum",
1694
+ "set": "_EMIT",
1695
+ "class": "bandwidth-bound",
1696
+ "where": "THIS bandwidth roofline"
1697
+ },
1698
+ {
1699
+ "op": "mul",
1700
+ "set": "_EMIT",
1701
+ "class": "bandwidth-bound",
1702
+ "where": "THIS bandwidth roofline"
1703
+ },
1704
+ {
1705
+ "op": "muls",
1706
+ "set": "_EMIT",
1707
+ "class": "dispatch/latency-bound",
1708
+ "where": "floor finding (CPU wins tiny)"
1709
+ },
1710
+ {
1711
+ "op": "not_equal",
1712
+ "set": "_EMIT",
1713
+ "class": "UNCLASSIFIED",
1714
+ "where": "!! add to a class"
1715
+ },
1716
+ {
1717
+ "op": "pixel_shuffle",
1718
+ "set": "_EMIT",
1719
+ "class": "bandwidth-bound",
1720
+ "where": "THIS bandwidth roofline"
1721
+ },
1722
+ {
1723
+ "op": "pixel_unshuffle",
1724
+ "set": "_EMIT",
1725
+ "class": "bandwidth-bound",
1726
+ "where": "THIS bandwidth roofline"
1727
+ },
1728
+ {
1729
+ "op": "pow",
1730
+ "set": "_EMIT",
1731
+ "class": "bandwidth-bound",
1732
+ "where": "THIS bandwidth roofline"
1733
+ },
1734
+ {
1735
+ "op": "prelu",
1736
+ "set": "_EMIT",
1737
+ "class": "UNCLASSIFIED",
1738
+ "where": "!! add to a class"
1739
+ },
1740
+ {
1741
+ "op": "real_div",
1742
+ "set": "_EMIT",
1743
+ "class": "bandwidth-bound",
1744
+ "where": "THIS bandwidth roofline"
1745
+ },
1746
+ {
1747
+ "op": "reduce_l1_norm",
1748
+ "set": "_EMIT",
1749
+ "class": "UNCLASSIFIED",
1750
+ "where": "!! add to a class"
1751
+ },
1752
+ {
1753
+ "op": "reduce_log_sum",
1754
+ "set": "_EMIT",
1755
+ "class": "UNCLASSIFIED",
1756
+ "where": "!! add to a class"
1757
+ },
1758
+ {
1759
+ "op": "reduce_log_sum_exp",
1760
+ "set": "_EMIT",
1761
+ "class": "UNCLASSIFIED",
1762
+ "where": "!! add to a class"
1763
+ },
1764
+ {
1765
+ "op": "reduce_max",
1766
+ "set": "_EMIT",
1767
+ "class": "bandwidth-bound",
1768
+ "where": "THIS bandwidth roofline"
1769
+ },
1770
+ {
1771
+ "op": "reduce_mean",
1772
+ "set": "_EMIT",
1773
+ "class": "bandwidth-bound",
1774
+ "where": "THIS bandwidth roofline"
1775
+ },
1776
+ {
1777
+ "op": "reduce_min",
1778
+ "set": "_EMIT",
1779
+ "class": "bandwidth-bound",
1780
+ "where": "THIS bandwidth roofline"
1781
+ },
1782
+ {
1783
+ "op": "reduce_sum",
1784
+ "set": "_EMIT",
1785
+ "class": "bandwidth-bound",
1786
+ "where": "THIS bandwidth roofline"
1787
+ },
1788
+ {
1789
+ "op": "reduce_sum_square",
1790
+ "set": "_EMIT",
1791
+ "class": "UNCLASSIFIED",
1792
+ "where": "!! add to a class"
1793
+ },
1794
+ {
1795
+ "op": "relu",
1796
+ "set": "_EMIT",
1797
+ "class": "bandwidth-bound",
1798
+ "where": "THIS bandwidth roofline"
1799
+ },
1800
+ {
1801
+ "op": "relu6",
1802
+ "set": "_EMIT",
1803
+ "class": "bandwidth-bound",
1804
+ "where": "THIS bandwidth roofline"
1805
+ },
1806
+ {
1807
+ "op": "reshape",
1808
+ "set": "_EMIT",
1809
+ "class": "bandwidth-bound",
1810
+ "where": "THIS bandwidth roofline"
1811
+ },
1812
+ {
1813
+ "op": "resize_bilinear",
1814
+ "set": "_EMIT",
1815
+ "class": "UNCLASSIFIED",
1816
+ "where": "!! add to a class"
1817
+ },
1818
+ {
1819
+ "op": "resize_nearest_neighbor",
1820
+ "set": "_EMIT",
1821
+ "class": "UNCLASSIFIED",
1822
+ "where": "!! add to a class"
1823
+ },
1824
+ {
1825
+ "op": "reverse",
1826
+ "set": "_EMIT",
1827
+ "class": "UNCLASSIFIED",
1828
+ "where": "!! add to a class"
1829
+ },
1830
+ {
1831
+ "op": "rms_norm",
1832
+ "set": "_EMIT",
1833
+ "class": "bandwidth-bound",
1834
+ "where": "THIS bandwidth roofline"
1835
+ },
1836
+ {
1837
+ "op": "round",
1838
+ "set": "_EMIT",
1839
+ "class": "UNCLASSIFIED",
1840
+ "where": "!! add to a class"
1841
+ },
1842
+ {
1843
+ "op": "rsqrt",
1844
+ "set": "_EMIT",
1845
+ "class": "bandwidth-bound",
1846
+ "where": "THIS bandwidth roofline"
1847
+ },
1848
+ {
1849
+ "op": "scaled_tanh",
1850
+ "set": "_EMIT",
1851
+ "class": "UNCLASSIFIED",
1852
+ "where": "!! add to a class"
1853
+ },
1854
+ {
1855
+ "op": "select",
1856
+ "set": "_EMIT",
1857
+ "class": "UNCLASSIFIED",
1858
+ "where": "!! add to a class"
1859
+ },
1860
+ {
1861
+ "op": "sigmoid",
1862
+ "set": "_EMIT",
1863
+ "class": "bandwidth-bound",
1864
+ "where": "THIS bandwidth roofline"
1865
+ },
1866
+ {
1867
+ "op": "sigmoid_hard",
1868
+ "set": "_EMIT",
1869
+ "class": "UNCLASSIFIED",
1870
+ "where": "!! add to a class"
1871
+ },
1872
+ {
1873
+ "op": "sign",
1874
+ "set": "_EMIT",
1875
+ "class": "UNCLASSIFIED",
1876
+ "where": "!! add to a class"
1877
+ },
1878
+ {
1879
+ "op": "silu",
1880
+ "set": "_EMIT",
1881
+ "class": "bandwidth-bound",
1882
+ "where": "THIS bandwidth roofline"
1883
+ },
1884
+ {
1885
+ "op": "sin",
1886
+ "set": "_EMIT",
1887
+ "class": "bandwidth-bound",
1888
+ "where": "THIS bandwidth roofline"
1889
+ },
1890
+ {
1891
+ "op": "slice_by_size",
1892
+ "set": "_EMIT",
1893
+ "class": "UNCLASSIFIED",
1894
+ "where": "!! add to a class"
1895
+ },
1896
+ {
1897
+ "op": "softmax",
1898
+ "set": "_EMIT",
1899
+ "class": "bandwidth-bound",
1900
+ "where": "THIS bandwidth roofline"
1901
+ },
1902
+ {
1903
+ "op": "softplus",
1904
+ "set": "_EMIT",
1905
+ "class": "bandwidth-bound",
1906
+ "where": "THIS bandwidth roofline"
1907
+ },
1908
+ {
1909
+ "op": "softsign",
1910
+ "set": "_EMIT",
1911
+ "class": "UNCLASSIFIED",
1912
+ "where": "!! add to a class"
1913
+ },
1914
+ {
1915
+ "op": "space_to_depth",
1916
+ "set": "_EMIT",
1917
+ "class": "UNCLASSIFIED",
1918
+ "where": "!! add to a class"
1919
+ },
1920
+ {
1921
+ "op": "split",
1922
+ "set": "_EMIT",
1923
+ "class": "UNCLASSIFIED",
1924
+ "where": "!! add to a class"
1925
+ },
1926
+ {
1927
+ "op": "sqrt",
1928
+ "set": "_EMIT",
1929
+ "class": "bandwidth-bound",
1930
+ "where": "THIS bandwidth roofline"
1931
+ },
1932
+ {
1933
+ "op": "square",
1934
+ "set": "_EMIT",
1935
+ "class": "bandwidth-bound",
1936
+ "where": "THIS bandwidth roofline"
1937
+ },
1938
+ {
1939
+ "op": "squeeze",
1940
+ "set": "_EMIT",
1941
+ "class": "UNCLASSIFIED",
1942
+ "where": "!! add to a class"
1943
+ },
1944
+ {
1945
+ "op": "stack",
1946
+ "set": "_EMIT",
1947
+ "class": "UNCLASSIFIED",
1948
+ "where": "!! add to a class"
1949
+ },
1950
+ {
1951
+ "op": "sub",
1952
+ "set": "_EMIT",
1953
+ "class": "bandwidth-bound",
1954
+ "where": "THIS bandwidth roofline"
1955
+ },
1956
+ {
1957
+ "op": "tanh",
1958
+ "set": "_EMIT",
1959
+ "class": "bandwidth-bound",
1960
+ "where": "THIS bandwidth roofline"
1961
+ },
1962
+ {
1963
+ "op": "threshold",
1964
+ "set": "_EMIT",
1965
+ "class": "UNCLASSIFIED",
1966
+ "where": "!! add to a class"
1967
+ },
1968
+ {
1969
+ "op": "thresholded_relu",
1970
+ "set": "_EMIT",
1971
+ "class": "UNCLASSIFIED",
1972
+ "where": "!! add to a class"
1973
+ },
1974
+ {
1975
+ "op": "tile",
1976
+ "set": "_EMIT",
1977
+ "class": "UNCLASSIFIED",
1978
+ "where": "!! add to a class"
1979
+ },
1980
+ {
1981
+ "op": "transpose",
1982
+ "set": "_EMIT",
1983
+ "class": "bandwidth-bound",
1984
+ "where": "THIS bandwidth roofline"
1985
+ },
1986
+ {
1987
+ "op": "upsample",
1988
+ "set": "_EMIT",
1989
+ "class": "bandwidth-bound",
1990
+ "where": "THIS bandwidth roofline"
1991
+ },
1992
+ {
1993
+ "op": "upsample_bilinear",
1994
+ "set": "_EMIT",
1995
+ "class": "UNCLASSIFIED",
1996
+ "where": "!! add to a class"
1997
+ },
1998
+ {
1999
+ "op": "argmax",
2000
+ "set": "NETPLIST_OPS",
2001
+ "class": "bridge:worker-raceable",
2002
+ "where": "bridge:worker (raceable silicon via persistent worker)"
2003
+ },
2004
+ {
2005
+ "op": "batch_to_space",
2006
+ "set": "NETPLIST_OPS",
2007
+ "class": "bridge:subprocess-not-raceable",
2008
+ "where": "subprocess-per-call: dispatch-bound ARTIFACT, NOT a fair speed race (needs a persistent worker to benchmark silicon)"
2009
+ },
2010
+ {
2011
+ "op": "channel_to_space",
2012
+ "set": "NETPLIST_OPS",
2013
+ "class": "bridge:subprocess-not-raceable",
2014
+ "where": "subprocess-per-call: dispatch-bound ARTIFACT, NOT a fair speed race (needs a persistent worker to benchmark silicon)"
2015
+ },
2016
+ {
2017
+ "op": "cost_volume",
2018
+ "set": "NETPLIST_OPS",
2019
+ "class": "bridge:subprocess-not-raceable",
2020
+ "where": "subprocess-per-call: dispatch-bound ARTIFACT, NOT a fair speed race (needs a persistent worker to benchmark silicon)"
2021
+ },
2022
+ {
2023
+ "op": "cross_correlation",
2024
+ "set": "NETPLIST_OPS",
2025
+ "class": "bridge:subprocess-not-raceable",
2026
+ "where": "subprocess-per-call: dispatch-bound ARTIFACT, NOT a fair speed race (needs a persistent worker to benchmark silicon)"
2027
+ },
2028
+ {
2029
+ "op": "cross_product",
2030
+ "set": "NETPLIST_OPS",
2031
+ "class": "bridge:subprocess-not-raceable",
2032
+ "where": "subprocess-per-call: dispatch-bound ARTIFACT, NOT a fair speed race (needs a persistent worker to benchmark silicon)"
2033
+ },
2034
+ {
2035
+ "op": "dynamic_slice",
2036
+ "set": "NETPLIST_OPS",
2037
+ "class": "bridge:subprocess-not-raceable",
2038
+ "where": "subprocess-per-call: dispatch-bound ARTIFACT, NOT a fair speed race (needs a persistent worker to benchmark silicon)"
2039
+ },
2040
+ {
2041
+ "op": "flatten",
2042
+ "set": "NETPLIST_OPS",
2043
+ "class": "bridge:subprocess-not-raceable",
2044
+ "where": "subprocess-per-call: dispatch-bound ARTIFACT, NOT a fair speed race (needs a persistent worker to benchmark silicon)"
2045
+ },
2046
+ {
2047
+ "op": "fps",
2048
+ "set": "NETPLIST_OPS",
2049
+ "class": "bridge:subprocess-not-raceable",
2050
+ "where": "subprocess-per-call: dispatch-bound ARTIFACT, NOT a fair speed race (needs a persistent worker to benchmark silicon)"
2051
+ },
2052
+ {
2053
+ "op": "input_view",
2054
+ "set": "NETPLIST_OPS",
2055
+ "class": "bridge:subprocess-not-raceable",
2056
+ "where": "subprocess-per-call: dispatch-bound ARTIFACT, NOT a fair speed race (needs a persistent worker to benchmark silicon)"
2057
+ },
2058
+ {
2059
+ "op": "lrn",
2060
+ "set": "NETPLIST_OPS",
2061
+ "class": "bridge:subprocess-not-raceable",
2062
+ "where": "subprocess-per-call: dispatch-bound ARTIFACT, NOT a fair speed race (needs a persistent worker to benchmark silicon)"
2063
+ },
2064
+ {
2065
+ "op": "minmax_norm",
2066
+ "set": "NETPLIST_OPS",
2067
+ "class": "bridge:subprocess-not-raceable",
2068
+ "where": "subprocess-per-call: dispatch-bound ARTIFACT, NOT a fair speed race (needs a persistent worker to benchmark silicon)"
2069
+ },
2070
+ {
2071
+ "op": "radius_search",
2072
+ "set": "NETPLIST_OPS",
2073
+ "class": "bridge:subprocess-not-raceable",
2074
+ "where": "subprocess-per-call: dispatch-bound ARTIFACT, NOT a fair speed race (needs a persistent worker to benchmark silicon)"
2075
+ },
2076
+ {
2077
+ "op": "scaled_elementwise",
2078
+ "set": "NETPLIST_OPS",
2079
+ "class": "bridge:subprocess-not-raceable",
2080
+ "where": "subprocess-per-call: dispatch-bound ARTIFACT, NOT a fair speed race (needs a persistent worker to benchmark silicon)"
2081
+ },
2082
+ {
2083
+ "op": "sdpa",
2084
+ "set": "NETPLIST_OPS",
2085
+ "class": "bridge:worker-raceable",
2086
+ "where": "bridge:worker (raceable - covered as attention class)"
2087
+ },
2088
+ {
2089
+ "op": "sort",
2090
+ "set": "NETPLIST_OPS",
2091
+ "class": "bridge:subprocess-not-raceable",
2092
+ "where": "subprocess-per-call: dispatch-bound ARTIFACT, NOT a fair speed race (needs a persistent worker to benchmark silicon)"
2093
+ },
2094
+ {
2095
+ "op": "space_to_batch",
2096
+ "set": "NETPLIST_OPS",
2097
+ "class": "bridge:subprocess-not-raceable",
2098
+ "where": "subprocess-per-call: dispatch-bound ARTIFACT, NOT a fair speed race (needs a persistent worker to benchmark silicon)"
2099
+ },
2100
+ {
2101
+ "op": "space_to_channel",
2102
+ "set": "NETPLIST_OPS",
2103
+ "class": "bridge:subprocess-not-raceable",
2104
+ "where": "subprocess-per-call: dispatch-bound ARTIFACT, NOT a fair speed race (needs a persistent worker to benchmark silicon)"
2105
+ },
2106
+ {
2107
+ "op": "topk",
2108
+ "set": "NETPLIST_OPS",
2109
+ "class": "bridge:worker-raceable",
2110
+ "where": "bridge:worker (raceable silicon via persistent worker)"
2111
+ }
2112
+ ],
2113
+ "counts": {
2114
+ "compute-bound": 4,
2115
+ "bandwidth-bound": 44,
2116
+ "dispatch/latency-bound": 2,
2117
+ "bridge:worker-raceable": 3,
2118
+ "bridge:subprocess-not-raceable": 16,
2119
+ "UNCLASSIFIED": 50
2120
+ },
2121
+ "n_emit": 100,
2122
+ "n_netplist": 19,
2123
+ "worker_ops": [
2124
+ "argmax",
2125
+ "sdpa",
2126
+ "topk"
2127
+ ],
2128
+ "a1_only_ops": [
2129
+ "batch_to_space",
2130
+ "channel_to_space",
2131
+ "cost_volume",
2132
+ "cross_correlation",
2133
+ "cross_product",
2134
+ "dynamic_slice",
2135
+ "flatten",
2136
+ "fps",
2137
+ "input_view",
2138
+ "lrn",
2139
+ "minmax_norm",
2140
+ "radius_search",
2141
+ "scaled_elementwise",
2142
+ "sort",
2143
+ "space_to_batch",
2144
+ "space_to_channel"
2145
+ ],
2146
+ "unclassified": [
2147
+ "affine",
2148
+ "atan",
2149
+ "bmm_w",
2150
+ "cast",
2151
+ "ceil",
2152
+ "channel_layer_norm",
2153
+ "clamped_relu",
2154
+ "const_array",
2155
+ "crop",
2156
+ "depth_to_space",
2157
+ "dynamic_conv",
2158
+ "einsum",
2159
+ "equal",
2160
+ "exp2",
2161
+ "expand_dims",
2162
+ "flatten2d",
2163
+ "floor",
2164
+ "greater",
2165
+ "greater_equal",
2166
+ "instance_norm",
2167
+ "inverse",
2168
+ "less",
2169
+ "less_equal",
2170
+ "linear_activation",
2171
+ "local_response_norm",
2172
+ "logical_not",
2173
+ "not_equal",
2174
+ "prelu",
2175
+ "reduce_l1_norm",
2176
+ "reduce_log_sum",
2177
+ "reduce_log_sum_exp",
2178
+ "reduce_sum_square",
2179
+ "resize_bilinear",
2180
+ "resize_nearest_neighbor",
2181
+ "reverse",
2182
+ "round",
2183
+ "scaled_tanh",
2184
+ "select",
2185
+ "sigmoid_hard",
2186
+ "sign",
2187
+ "slice_by_size",
2188
+ "softsign",
2189
+ "space_to_depth",
2190
+ "split",
2191
+ "squeeze",
2192
+ "stack",
2193
+ "threshold",
2194
+ "thresholded_relu",
2195
+ "tile",
2196
+ "upsample_bilinear"
2197
+ ]
2198
+ }
2199
+ }
2200
+ }
2201
+ },
2202
+ {
2203
+ "script": "decode_measurement.py",
2204
+ "result_file": "decode_measurement_results.json",
2205
+ "returncode": 0,
2206
+ "seconds": 56.5,
2207
+ "summary": {
2208
+ "config": {
2209
+ "d_model": 1024,
2210
+ "n_layers": 4,
2211
+ "n_heads": 16,
2212
+ "d_head": 64,
2213
+ "d_ff": 4096,
2214
+ "vocab": 32000,
2215
+ "s_kv": 128
2216
+ },
2217
+ "quick": true,
2218
+ "batch": 32,
2219
+ "flops_per_token": {
2220
+ "1": 201850880.0,
2221
+ "32": 6459228160.0
2222
+ },
2223
+ "have": {
2224
+ "ane": true,
2225
+ "mlx": true,
2226
+ "sudo": true
2227
+ },
2228
+ "idle_pkg_W": 7.6135,
2229
+ "rows": [
2230
+ {
2231
+ "device": "CPU",
2232
+ "batch": 1,
2233
+ "status": "ok",
2234
+ "latency_per_step_ms": 21.92704100161791,
2235
+ "latency_per_token_ms": 21.92704100161791,
2236
+ "tokens_per_s": 45.60578875764468,
2237
+ "relerr": 9.651060780445236e-07,
2238
+ "active_pkg_W": 10.485,
2239
+ "active_pkg_cv_pct": 3.7604068370934782,
2240
+ "ane_active_mW": 0.0,
2241
+ "gpu_active_mW": 11.0,
2242
+ "cpu_active_mW": 10452.0,
2243
+ "energy_iter_ms": 132.00228124818145,
2244
+ "flags": [
2245
+ "only 8 pm samples - short window, treat as indicative"
2246
+ ],
2247
+ "tokens_per_s_sustained": 7.575626652389969,
2248
+ "tokens_per_s_per_W": 0.722520424643774,
2249
+ "mJ_per_token": 1384.0439188871824
2250
+ },
2251
+ {
2252
+ "device": "GPU",
2253
+ "batch": 1,
2254
+ "status": "ok",
2255
+ "latency_per_step_ms": 2.279708976857364,
2256
+ "latency_per_token_ms": 2.279708976857364,
2257
+ "tokens_per_s": 438.65248158934963,
2258
+ "relerr": 0.0024123376136696425,
2259
+ "active_pkg_W": 2.7975,
2260
+ "active_pkg_cv_pct": 24.26878937625842,
2261
+ "ane_active_mW": 0.0,
2262
+ "gpu_active_mW": 1851.0,
2263
+ "cpu_active_mW": 920.0,
2264
+ "energy_iter_ms": 2.5736816401418126,
2265
+ "flags": [
2266
+ "only 8 pm samples - short window, treat as indicative"
2267
+ ],
2268
+ "tokens_per_s_sustained": 388.5484453100031,
2269
+ "tokens_per_s_per_W": 138.8913119964265,
2270
+ "mJ_per_token": 7.19987438829672
2271
+ },
2272
+ {
2273
+ "device": "ANE",
2274
+ "batch": 1,
2275
+ "status": "NotImplementedError: aneforge: tensor (1, 32000) (op 'matmul') exceeds ANE family 3's max dimension 16384; tile the graph or target a higher chip."
2276
+ },
2277
+ {
2278
+ "device": "ANE8",
2279
+ "batch": 1,
2280
+ "status": "NotImplementedError: aneforge: tensor (1, 32000) (op 'matmul') exceeds ANE family 3's max dimension 16384; tile the graph or target a higher chip."
2281
+ },
2282
+ {
2283
+ "device": "CPU",
2284
+ "batch": 32,
2285
+ "status": "ok",
2286
+ "latency_per_step_ms": 153.28287496231496,
2287
+ "latency_per_token_ms": 4.790089842572343,
2288
+ "tokens_per_s": 208.7643515811358,
2289
+ "relerr": 1.351244050254188e-06,
2290
+ "active_pkg_W": 11.9045,
2291
+ "active_pkg_cv_pct": 8.994154298419982,
2292
+ "ane_active_mW": 0.0,
2293
+ "gpu_active_mW": 2.0,
2294
+ "cpu_active_mW": 11897.0,
2295
+ "energy_iter_ms": 644.7101897792891,
2296
+ "flags": [
2297
+ "only 8 pm samples - short window, treat as indicative"
2298
+ ],
2299
+ "tokens_per_s_sustained": 49.63470487562004,
2300
+ "tokens_per_s_per_W": 4.169406936504686,
2301
+ "mJ_per_token": 239.84226419461083
2302
+ },
2303
+ {
2304
+ "device": "GPU",
2305
+ "batch": 32,
2306
+ "status": "ok",
2307
+ "latency_per_step_ms": 4.584749927744269,
2308
+ "latency_per_token_ms": 0.14327343524200842,
2309
+ "tokens_per_s": 6979.660942106004,
2310
+ "relerr": 0.0023489272559743036,
2311
+ "active_pkg_W": 14.68,
2312
+ "active_pkg_cv_pct": 11.168197997766399,
2313
+ "ane_active_mW": 0.0,
2314
+ "gpu_active_mW": 13476.5,
2315
+ "cpu_active_mW": 1730.0,
2316
+ "energy_iter_ms": 5.120800264840429,
2317
+ "flags": [
2318
+ "only 8 pm samples - short window, treat as indicative"
2319
+ ],
2320
+ "tokens_per_s_sustained": 6249.023266873534,
2321
+ "tokens_per_s_per_W": 425.682783846971,
2322
+ "mJ_per_token": 2.3491671214955465
2323
+ },
2324
+ {
2325
+ "device": "ANE",
2326
+ "batch": 32,
2327
+ "status": "NotImplementedError: aneforge: tensor (32, 32000) (op 'matmul') exceeds ANE family 3's max dimension 16384; tile the graph or target a higher chip."
2328
+ },
2329
+ {
2330
+ "device": "ANE8",
2331
+ "batch": 32,
2332
+ "status": "NotImplementedError: aneforge: tensor (32, 32000) (op 'matmul') exceeds ANE family 3's max dimension 16384; tile the graph or target a higher chip."
2333
+ }
2334
+ ]
2335
+ }
2336
+ },
2337
+ {
2338
+ "script": "roofline_analysis.py",
2339
+ "result_file": "roofline_analysis_results.json",
2340
+ "returncode": 1,
2341
+ "seconds": 0.2,
2342
+ "error": [
2343
+ "KeyError: 'ane'"
2344
+ ]
2345
+ }
2346
+ ]
2347
+ }
raw/roofline-apple-m5-pro-Mac17_8-c38210cfc8ea-a154b89e.json ADDED
The diff for this file is too large to render. See raw diff
 
rooflines.csv ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ chip,model_identifier,hardware_hash,p_cores,e_cores,gpu_cores,ram_gb,macos_version,macos_build,aneforge_version,power,contributor,peak_fp16_gemm_tflops,bandwidth_gbps,ridge_flop_per_byte,peak_perf_per_w_gflops,decode_tok_s,matmul_inf_cliff,slice_x16_cliff,reduce_exact_sum,timestamp_utc
2
+ Apple M1,"MacBookPro17,1",dcf5b8a7dd09,4,4,8,16,26.5.2,25F84,0.2.1.dev42,ac,diegobauavi,2.69655578863585,0.8564273674361607,3148.6100178096603,441.94925131304194,,~32759,clamp @ 4094,<= 2048,2026-08-01T20:23:15Z
3
+ Apple M1 Max,"MacBookPro18,2",8dc9588b5db6,8,2,32,32,26.5.1,25F80,0.2.0,ac (high-power),sbryngelson,4.561582231756931,6.918305849613406,659.3496053678853,918.0061262873708,,~32759,clamp @ 4094,<= 2048,2026-08-01T23:53:56Z
4
+ Apple M2 Pro,"Mac14,12",723396ad9091,6,4,16,32,26.5.2,25F84,0.2.1.dev33,ac,axiom-of-choice,3.2634850363779067,0.9586683792350782,3404.1855422224753,1378.7905315307037,,~32759,clamp @ 4094,<= 2048,2026-08-01T19:52:48Z
5
+ Apple M5 Pro,"Mac17,8",c38210cfc8ea,6,12,20,48,26.5.1,25F80,0.1.4.dev32+gb8dc90fe6.d20260624,ac (high-power),sbryngelson,10.041569131237107,23.995035012385173,418.4852877294863,918.4642866526486,116.68043921079412,~32759,exact (no clamp),<= 2048,2026-08-01T16:39:18Z