Guard fixes: a private rustdoc link, the vector-word-phases cases' timing, unique gauge labels

The guard commits left three failures on every leg of the matrix at 100b92d608:

- rustdoc (exit 101): the vector_word_phases case's module doc linked `tests`, a private
  cfg(test) module rustdoc cannot see. It now says this module's tests in plain words.
- lavapipe, times::every_case_is_timed::every_case_carries_its_timing: the four
  vector-word-phases cases carried no timing. `conformance times --runs 8 --write` over the four
  on the M3 (job m3-max-42508, "4 case(s) carry their timing") adds each recording's times and
  changes nothing else in them.
- every device leg, "record gauge compute_translated/...@drop: recorded twice": the vector
  placement test reused the label compute_translated, which is the gauge record key; it is
  compute_vector_words now. push_window's test called each_device("push_window", ...) once per
  buffer count, repeating the key on lavapipe and the UHD 630; each count is
  push_window_{buffers} now.

Checked by clippy of rt and conformance (plain and --cfg m2v_gpu), rustdoc of the workspace with
warnings denied, and the rt and conformance suites on msi.
This commit is contained in:
Anees Iqbal committed 2026-11-17 14:01:59 -08:00
1 parent 8b15f6574b
commit 9c61460b3d
7 files changed
+708 -4

No files matched your search

@@ -519,5 +519,181 @@
],
"validated": "ran"
}
],
"times": [
{
"leg": "metal",
"venue": "native Metal",
"chip": "apple-m3-max",
"os_build": "26A434",
"rounds": 8,
"measured": "8 round(s) of the whole selection, in the case set's own order, each round on a fresh device, our shader cache carried over between the cases of a round; a figure is the median of the rounds' own medians; Metal's leg ran at a one-minute load average of 7.73 and ours at 7.53; the legs run one after the other, so the per-call margin is judged only when both are 26.0 or under and within 2.0x of each other",
"instrument": 357,
"times": {
"case": "vector-word-phases-0",
"calls": 12,
"in_calls": 29376334,
"on_cpu": 915252,
"blocked": 28445248,
"elsewhere": 3174083,
"spend": 32535750,
"spend_least": 31989667,
"spend_most": 378544501,
"per_call": [
{
"call": "buffer",
"least_calls": 4,
"most_calls": 4,
"wall": 2875,
"on_cpu": 3000,
"blocked": 0,
"wall_least": 2459,
"wall_most": 3000,
"wall_total": 31626,
"on_cpu_total": 32167,
"blocked_total": 0
},
{
"call": "compute_pass",
"least_calls": 1,
"most_calls": 1,
"wall": 3820583,
"on_cpu": 116583,
"blocked": 3701749,
"wall_least": 3625709,
"wall_most": 3999750,
"wall_total": 3820583,
"on_cpu_total": 116583,
"blocked_total": 3701749
},
{
"call": "compute_pipeline",
"least_calls": 2,
"most_calls": 2,
"wall": 28708,
"on_cpu": 28917,
"blocked": 0,
"wall_least": 27042,
"wall_most": 53375,
"wall_total": 114000,
"on_cpu_total": 114376,
"blocked_total": 0
},
{
"call": "library",
"least_calls": 1,
"most_calls": 1,
"wall": 25313084,
"on_cpu": 622583,
"blocked": 24690501,
"wall_least": 24901875,
"wall_most": 368741500,
"wall_total": 25313084,
"on_cpu_total": 622583,
"blocked_total": 24690501
},
{
"call": "read_buffer",
"least_calls": 4,
"most_calls": 4,
"wall": 375,
"on_cpu": 542,
"blocked": 0,
"wall_least": 333,
"wall_most": 458,
"wall_total": 2166,
"on_cpu_total": 3041,
"blocked_total": 0
}
]
}
},
{
"leg": "ours",
"venue": "Apple M3 Max",
"chip": "apple-m3-max",
"os_build": "26A434",
"rounds": 8,
"measured": "8 round(s) of the whole selection, in the case set's own order, each round on a fresh device, our shader cache carried over between the cases of a round; a figure is the median of the rounds' own medians; Metal's leg ran at a one-minute load average of 7.73 and ours at 7.53; the legs run one after the other, so the per-call margin is judged only when both are 26.0 or under and within 2.0x of each other",
"instrument": 244,
"times": {
"case": "vector-word-phases-0",
"calls": 12,
"in_calls": 9225042,
"on_cpu": 1652542,
"blocked": 7577374,
"elsewhere": 18949208,
"spend": 28176749,
"spend_least": 27737373,
"spend_most": 61340917,
"per_call": [
{
"call": "buffer",
"least_calls": 4,
"most_calls": 4,
"wall": 2084,
"on_cpu": 2167,
"blocked": 0,
"wall_least": 1792,
"wall_most": 2208,
"wall_total": 15291,
"on_cpu_total": 15834,
"blocked_total": 0
},
{
"call": "compute_pass",
"least_calls": 1,
"most_calls": 1,
"wall": 7628292,
"on_cpu": 150541,
"blocked": 7477751,
"wall_least": 7339625,
"wall_most": 36899792,
"wall_total": 7628292,
"on_cpu_total": 150541,
"blocked_total": 7477751
},
{
"call": "compute_pipeline",
"least_calls": 2,
"most_calls": 2,
"wall": 281416,
"on_cpu": 281709,
"blocked": 0,
"wall_least": 262459,
"wall_most": 491292,
"wall_total": 1446583,
"on_cpu_total": 1356334,
"blocked_total": 90834
},
{
"call": "library",
"least_calls": 1,
"most_calls": 1,
"wall": 141792,
"on_cpu": 142125,
"blocked": 0,
"wall_least": 132292,
"wall_most": 914458,
"wall_total": 141792,
"on_cpu_total": 142125,
"blocked_total": 0
},
{
"call": "read_buffer",
"least_calls": 4,
"most_calls": 4,
"wall": 333,
"on_cpu": 500,
"blocked": 0,
"wall_least": 292,
"wall_most": 458,
"wall_total": 2083,
"on_cpu_total": 2916,
"blocked_total": 0
}
]
}
}
]
}
@@ -519,5 +519,181 @@
],
"validated": "ran"
}
],
"times": [
{
"leg": "metal",
"venue": "native Metal",
"chip": "apple-m3-max",
"os_build": "26A434",
"rounds": 8,
"measured": "8 round(s) of the whole selection, in the case set's own order, each round on a fresh device, our shader cache carried over between the cases of a round; a figure is the median of the rounds' own medians; Metal's leg ran at a one-minute load average of 7.73 and ours at 7.53; the legs run one after the other, so the per-call margin is judged only when both are 26.0 or under and within 2.0x of each other",
"instrument": 357,
"times": {
"case": "vector-word-phases-12",
"calls": 12,
"in_calls": 29106207,
"on_cpu": 874917,
"blocked": 28212376,
"elsewhere": 3162083,
"spend": 32222623,
"spend_least": 31926958,
"spend_most": 36835083,
"per_call": [
{
"call": "buffer",
"least_calls": 4,
"most_calls": 4,
"wall": 2583,
"on_cpu": 2708,
"blocked": 0,
"wall_least": 2250,
"wall_most": 2792,
"wall_total": 31791,
"on_cpu_total": 32374,
"blocked_total": 0
},
{
"call": "compute_pass",
"least_calls": 1,
"most_calls": 1,
"wall": 3824416,
"on_cpu": 112708,
"blocked": 3706750,
"wall_least": 3746541,
"wall_most": 4134833,
"wall_total": 3824416,
"on_cpu_total": 112708,
"blocked_total": 3706750
},
{
"call": "compute_pipeline",
"least_calls": 2,
"most_calls": 2,
"wall": 29791,
"on_cpu": 30000,
"blocked": 0,
"wall_least": 26375,
"wall_most": 34375,
"wall_total": 112957,
"on_cpu_total": 113416,
"blocked_total": 0
},
{
"call": "library",
"least_calls": 1,
"most_calls": 1,
"wall": 25176083,
"on_cpu": 621417,
"blocked": 24542500,
"wall_least": 24845666,
"wall_most": 29204958,
"wall_total": 25176083,
"on_cpu_total": 621417,
"blocked_total": 24542500
},
{
"call": "read_buffer",
"least_calls": 4,
"most_calls": 4,
"wall": 334,
"on_cpu": 542,
"blocked": 0,
"wall_least": 250,
"wall_most": 458,
"wall_total": 2084,
"on_cpu_total": 2917,
"blocked_total": 0
}
]
}
},
{
"leg": "ours",
"venue": "Apple M3 Max",
"chip": "apple-m3-max",
"os_build": "26A434",
"rounds": 8,
"measured": "8 round(s) of the whole selection, in the case set's own order, each round on a fresh device, our shader cache carried over between the cases of a round; a figure is the median of the rounds' own medians; Metal's leg ran at a one-minute load average of 7.73 and ours at 7.53; the legs run one after the other, so the per-call margin is judged only when both are 26.0 or under and within 2.0x of each other",
"instrument": 244,
"times": {
"case": "vector-word-phases-12",
"calls": 12,
"in_calls": 911416,
"on_cpu": 281751,
"blocked": 641292,
"elsewhere": 188375,
"spend": 1102501,
"spend_least": 1081833,
"spend_most": 1381542,
"per_call": [
{
"call": "buffer",
"least_calls": 4,
"most_calls": 4,
"wall": 1125,
"on_cpu": 1250,
"blocked": 0,
"wall_least": 916,
"wall_most": 1584,
"wall_total": 6209,
"on_cpu_total": 6623,
"blocked_total": 0
},
{
"call": "compute_pass",
"least_calls": 1,
"most_calls": 1,
"wall": 761416,
"on_cpu": 128084,
"blocked": 641292,
"wall_least": 734333,
"wall_most": 881166,
"wall_total": 761416,
"on_cpu_total": 128084,
"blocked_total": 641292
},
{
"call": "compute_pipeline",
"least_calls": 2,
"most_calls": 2,
"wall": 7416,
"on_cpu": 7625,
"blocked": 0,
"wall_least": 6334,
"wall_most": 10375,
"wall_total": 27833,
"on_cpu_total": 28292,
"blocked_total": 0
},
{
"call": "library",
"least_calls": 1,
"most_calls": 1,
"wall": 118375,
"on_cpu": 118833,
"blocked": 0,
"wall_least": 102000,
"wall_most": 167459,
"wall_total": 118375,
"on_cpu_total": 118833,
"blocked_total": 0
},
{
"call": "read_buffer",
"least_calls": 4,
"most_calls": 4,
"wall": 208,
"on_cpu": 375,
"blocked": 0,
"wall_least": 166,
"wall_most": 334,
"wall_total": 1418,
"on_cpu_total": 2166,
"blocked_total": 0
}
]
}
}
]
}
@@ -519,5 +519,181 @@
],
"validated": "ran"
}
],
"times": [
{
"leg": "metal",
"venue": "native Metal",
"chip": "apple-m3-max",
"os_build": "26A434",
"rounds": 8,
"measured": "8 round(s) of the whole selection, in the case set's own order, each round on a fresh device, our shader cache carried over between the cases of a round; a figure is the median of the rounds' own medians; Metal's leg ran at a one-minute load average of 7.73 and ours at 7.53; the legs run one after the other, so the per-call margin is judged only when both are 26.0 or under and within 2.0x of each other",
"instrument": 357,
"times": {
"case": "vector-word-phases-4",
"calls": 12,
"in_calls": 29172542,
"on_cpu": 896376,
"blocked": 28293127,
"elsewhere": 3157000,
"spend": 32295292,
"spend_least": 32101998,
"spend_most": 33189749,
"per_call": [
{
"call": "buffer",
"least_calls": 4,
"most_calls": 4,
"wall": 2416,
"on_cpu": 2583,
"blocked": 0,
"wall_least": 2375,
"wall_most": 3125,
"wall_total": 31125,
"on_cpu_total": 31833,
"blocked_total": 0
},
{
"call": "compute_pass",
"least_calls": 1,
"most_calls": 1,
"wall": 3835750,
"on_cpu": 117000,
"blocked": 3718750,
"wall_least": 3776917,
"wall_most": 3918042,
"wall_total": 3835750,
"on_cpu_total": 117000,
"blocked_total": 3718750
},
{
"call": "compute_pipeline",
"least_calls": 2,
"most_calls": 2,
"wall": 28083,
"on_cpu": 28291,
"blocked": 0,
"wall_least": 27291,
"wall_most": 29500,
"wall_total": 113250,
"on_cpu_total": 113750,
"blocked_total": 0
},
{
"call": "library",
"least_calls": 1,
"most_calls": 1,
"wall": 25247709,
"on_cpu": 631542,
"blocked": 24630168,
"wall_least": 24807292,
"wall_most": 26050583,
"wall_total": 25247709,
"on_cpu_total": 631542,
"blocked_total": 24630168
},
{
"call": "read_buffer",
"least_calls": 4,
"most_calls": 4,
"wall": 333,
"on_cpu": 541,
"blocked": 0,
"wall_least": 292,
"wall_most": 416,
"wall_total": 2125,
"on_cpu_total": 3000,
"blocked_total": 0
}
]
}
},
{
"leg": "ours",
"venue": "Apple M3 Max",
"chip": "apple-m3-max",
"os_build": "26A434",
"rounds": 8,
"measured": "8 round(s) of the whole selection, in the case set's own order, each round on a fresh device, our shader cache carried over between the cases of a round; a figure is the median of the rounds' own medians; Metal's leg ran at a one-minute load average of 7.73 and ours at 7.53; the legs run one after the other, so the per-call margin is judged only when both are 26.0 or under and within 2.0x of each other",
"instrument": 244,
"times": {
"case": "vector-word-phases-4",
"calls": 12,
"in_calls": 1027624,
"on_cpu": 361335,
"blocked": 653333,
"elsewhere": 217417,
"spend": 1237500,
"spend_least": 1180167,
"spend_most": 4471543,
"per_call": [
{
"call": "buffer",
"least_calls": 4,
"most_calls": 4,
"wall": 1167,
"on_cpu": 1250,
"blocked": 0,
"wall_least": 1042,
"wall_most": 1333,
"wall_total": 8125,
"on_cpu_total": 8665,
"blocked_total": 0
},
{
"call": "compute_pass",
"least_calls": 1,
"most_calls": 1,
"wall": 830917,
"on_cpu": 173209,
"blocked": 653333,
"wall_least": 799542,
"wall_most": 864417,
"wall_total": 830917,
"on_cpu_total": 173209,
"blocked_total": 653333
},
{
"call": "compute_pipeline",
"least_calls": 2,
"most_calls": 2,
"wall": 7834,
"on_cpu": 8042,
"blocked": 0,
"wall_least": 7416,
"wall_most": 9417,
"wall_total": 41291,
"on_cpu_total": 41750,
"blocked_total": 0
},
{
"call": "library",
"least_calls": 1,
"most_calls": 1,
"wall": 135792,
"on_cpu": 136292,
"blocked": 0,
"wall_least": 130458,
"wall_most": 163292,
"wall_total": 135792,
"on_cpu_total": 136292,
"blocked_total": 0
},
{
"call": "read_buffer",
"least_calls": 4,
"most_calls": 4,
"wall": 208,
"on_cpu": 333,
"blocked": 0,
"wall_least": 167,
"wall_most": 417,
"wall_total": 1375,
"on_cpu_total": 2001,
"blocked_total": 0
}
]
}
}
]
}
@@ -519,5 +519,181 @@
],
"validated": "ran"
}
],
"times": [
{
"leg": "metal",
"venue": "native Metal",
"chip": "apple-m3-max",
"os_build": "26A434",
"rounds": 8,
"measured": "8 round(s) of the whole selection, in the case set's own order, each round on a fresh device, our shader cache carried over between the cases of a round; a figure is the median of the rounds' own medians; Metal's leg ran at a one-minute load average of 7.73 and ours at 7.53; the legs run one after the other, so the per-call margin is judged only when both are 26.0 or under and within 2.0x of each other",
"instrument": 357,
"times": {
"case": "vector-word-phases-8",
"calls": 12,
"in_calls": 29184168,
"on_cpu": 878378,
"blocked": 28286001,
"elsewhere": 3116959,
"spend": 32299834,
"spend_least": 32057874,
"spend_most": 37507666,
"per_call": [
{
"call": "buffer",
"least_calls": 4,
"most_calls": 4,
"wall": 2417,
"on_cpu": 2500,
"blocked": 0,
"wall_least": 1916,
"wall_most": 3375,
"wall_total": 31749,
"on_cpu_total": 32165,
"blocked_total": 0
},
{
"call": "compute_pass",
"least_calls": 1,
"most_calls": 1,
"wall": 3778000,
"on_cpu": 115000,
"blocked": 3664874,
"wall_least": 3762625,
"wall_most": 3993125,
"wall_total": 3778000,
"on_cpu_total": 115000,
"blocked_total": 3664874
},
{
"call": "compute_pipeline",
"least_calls": 2,
"most_calls": 2,
"wall": 28292,
"on_cpu": 28500,
"blocked": 0,
"wall_least": 26875,
"wall_most": 32042,
"wall_total": 112251,
"on_cpu_total": 112667,
"blocked_total": 0
},
{
"call": "library",
"least_calls": 1,
"most_calls": 1,
"wall": 25190750,
"on_cpu": 622417,
"blocked": 24569917,
"wall_least": 25022041,
"wall_most": 30023416,
"wall_total": 25190750,
"on_cpu_total": 622417,
"blocked_total": 24569917
},
{
"call": "read_buffer",
"least_calls": 4,
"most_calls": 4,
"wall": 334,
"on_cpu": 542,
"blocked": 0,
"wall_least": 291,
"wall_most": 417,
"wall_total": 2208,
"on_cpu_total": 3084,
"blocked_total": 0
}
]
}
},
{
"leg": "ours",
"venue": "Apple M3 Max",
"chip": "apple-m3-max",
"os_build": "26A434",
"rounds": 8,
"measured": "8 round(s) of the whole selection, in the case set's own order, each round on a fresh device, our shader cache carried over between the cases of a round; a figure is the median of the rounds' own medians; Metal's leg ran at a one-minute load average of 7.73 and ours at 7.53; the legs run one after the other, so the per-call margin is judged only when both are 26.0 or under and within 2.0x of each other",
"instrument": 244,
"times": {
"case": "vector-word-phases-8",
"calls": 12,
"in_calls": 953958,
"on_cpu": 298707,
"blocked": 646333,
"elsewhere": 211042,
"spend": 1168791,
"spend_least": 1092958,
"spend_most": 1431791,
"per_call": [
{
"call": "buffer",
"least_calls": 4,
"most_calls": 4,
"wall": 916,
"on_cpu": 1083,
"blocked": 0,
"wall_least": 833,
"wall_most": 1208,
"wall_total": 6709,
"on_cpu_total": 7333,
"blocked_total": 0
},
{
"call": "compute_pass",
"least_calls": 1,
"most_calls": 1,
"wall": 795083,
"on_cpu": 133542,
"blocked": 646333,
"wall_least": 758542,
"wall_most": 930625,
"wall_total": 795083,
"on_cpu_total": 133542,
"blocked_total": 646333
},
{
"call": "compute_pipeline",
"least_calls": 2,
"most_calls": 2,
"wall": 8958,
"on_cpu": 9209,
"blocked": 0,
"wall_least": 7125,
"wall_most": 11000,
"wall_total": 35208,
"on_cpu_total": 35750,
"blocked_total": 0
},
{
"call": "library",
"least_calls": 1,
"most_calls": 1,
"wall": 125708,
"on_cpu": 126083,
"blocked": 0,
"wall_least": 111125,
"wall_most": 151875,
"wall_total": 125708,
"on_cpu_total": 126083,
"blocked_total": 0
},
{
"call": "read_buffer",
"least_calls": 4,
"most_calls": 4,
"wall": 250,
"on_cpu": 416,
"blocked": 0,
"wall_least": 167,
"wall_most": 375,
"wall_total": 1416,
"on_cpu_total": 2209,
"blocked_total": 0
}
]
}
}
]
}
@@ -9,8 +9,8 @@
//! the bind offset and past the kernels' regions included, so an access placed anywhere but its
//! own address shows as words that moved. The inputs and the bind offsets are
//! `metal2vulkan_devtools::vector_word_phases`'s, whose `answer` is every access at its own
//! address; [`tests`] holds Metal's recorded answer equal to it, and the new runtime's device test
//! holds its own equal to it.
//! address; this module's tests hold Metal's recorded answer equal to it, and the new runtime's
//! device test holds its own equal to it.
//!
//! Every input word is a normal `float`, so the kernels' negations and moves are exact on every
//! device, and every byte compares exactly. Nothing here can fault a GPU: one pass of two
@@ -92,7 +92,7 @@ define void @wide({}) {{\nentry:\n{body} %out = getelementptr inbounds i32, ptr
FunctionDescriptor::new(function),
));
let len = u64::from(THREADS * 4);
each_device("push_window", |name, _, device| {
each_device(&format!("push_window_{buffers}"), |name, _, device| {
let what = format!("{name}, {buffers} buffers");
let state = device
.new_compute_pipeline_state(&descriptor)
@@ -989,7 +989,7 @@ mod on_device {
else {
return;
};
each_device("compute_translated", |name, _, device| {
each_device("compute_vector_words", |name, _, device| {
let before = inputs();
let (phased, aligned) = (
state(name, &device, &phased),