matrix: the RX 550's constant_private ceiling, 1.20; the rt README gap names what was measured

The planner set the RX 550's (1002:699f) constant_private row a ceiling of 1.20 in
HARNESS_CEILINGS, based on the row's measured median. The matrix's limit is that ceiling times
HARNESS_BUDGET (1.236). The pushed-flag branch for 256x1x1 tiles was tried and dropped under the
planner's time box.
- v1 (probe a29d4d4fde): 0.884 of tiles on the RX 550, but the untaken branch cost 6.7% on the
  UHD 630's grid3l (m3-max-45077) and 1.6% on the RX 550's (m3-max-45076).
- v2 (probe 559c61a305), where the branch covers the extent test too: 0.954 of tiles on the RX
  550's constant_private (m3-max-45131), under the 5% bar.

The README bullet now says what was measured, not the earlier attribution:
- On the RX 550 the row runs at 0.90 of tiles in 256x1 workgroups, 0.89 through storage-buffer
  descriptors, and 0.89 with both (probe 4f8a9df6b5 on 80bd8ca764, m3-max-45027).
- The decode's instruction count does not explain it: the decode's masks as constants gave 1.000
  of tiles (m3-max-45076).
- The 64-bit address per read is from the ISA (m3-max-44342).
- The Iris clause is corrected. In an exclusive 7-round run (m3-max-45057) the Iris Xe took
  1.027 of the old runtime's GPU time, with 0.999 in 256x1 workgroups and 1.002 through
  descriptors. It pays neither cause, and it has no gap (under 1.03).

Verified: scripts/matrix/test_results.py, 29 tests OK, including
test_every_ceiling_is_over_the_budget. README lines are 100 columns or fewer.
This commit is contained in:
Anees Iqbal committed 2026-11-18 01:29:02 -08:00
1 parent af2f79d33b
commit b6b303f8a0
2 files changed
+17 -12

No files matched your search

+11 -11
View File
@@ -1010,17 +1010,17 @@ With no directory, nothing is kept on disk, and each `VkPipeline` is made withou
79.7 against 50.0 µs; within one run, one form's rounds ranged up to 2.8 times apart). The old
runtime's form, the 8x8x4 threadgroup as the workgroup and the buffer through a storage-buffer
descriptor, took 0.97 of the tiles' time in this runtime in the first of those runs.
- Such a kernel runs a grid one high and one deep in tiles too, and finds each thread's position
from the pushed tile in all three dimensions. On an RX 550 (RADV, Mesa 26.2.6), a kernel of
2^20 threads in a line, each reading 16 bytes 64 times from a 64 KiB `constant` table and
storing 4 bytes, took 1.18 times the old runtime's time (the median of three pairs of runs;
2,380.8 against 2,018.3 µs in the first). More than half of the difference is the position: 28
instructions at the kernel's start, where a workgroup of the kernel's 256x1 threadgroup needs
2; in such workgroups, which the runtime does not make, the kernel took 0.90 of its time in
tiles. The rest is in the reads: each takes its 64-bit address from two adds with a carry,
where the old runtime's read through a storage-buffer descriptor takes a 32-bit offset. On an
Iris Xe (Mesa 26.2.6) the kernel took 1.08 times the old runtime's time in one run (2,591.8
against 2,410.7 µs); which of the two it pays there is not measured. In the two recorded
- Such a kernel runs a grid one high and one deep in tiles too: its position comes from the pushed
tile in all three dimensions and is tested against the grid in all three. On an RX 550 (RADV,
Mesa 26.2.6), a kernel of 2^20 threads in a line, each reading 16 bytes 64 times from a 64 KiB
`constant` table and storing 4 bytes, took 1.18 times the old runtime's time (the median of
three pairs of runs; 2,380.8 against 2,018.3 µs in the first), and the matrix's ceiling for the
row on that GPU is 1.20. In workgroups of the kernel's 256x1 threadgroup it took 0.90 of its
time in tiles, through storage-buffer descriptors 0.89, and with both 0.89; the runtime makes
neither. Its reads take their 64-bit addresses from two adds with a carry each, as the RX 550's
loads through an address need, where the old runtime's reads through a descriptor take a 32-bit
offset. An Iris Xe (Mesa 26.2.6) pays neither: there the kernel took 1.03 times the old
runtime's GPU time, the same in 256x1 workgroups or through descriptors. In the two recorded
streams measured, kernels that do not observe their partition ran 0.00% and 0.59% of their
threads over grids one high and one deep.
- A dispatch of a size other than the descriptor's `requiredThreadsPerThreadgroup`, which Metal's
+6 -1
View File
@@ -298,7 +298,12 @@ HARNESS_OLD = "harness-old/"
#: ceiling is ruled after the work on its row, never taken from a measured ratio; a fix lowers it
#: to the ratio the row then reaches, and a row within HARNESS_BUDGET leaves the list. A row over
#: HARNESS_BUDGET with no ceiling fails its leg.
HARNESS_CEILINGS = {}
HARNESS_CEILINGS = {
# Ruled by the planner on the row's measured median, 1.20: a kernel over a grid one row high
# and one deep pays for running in tiles and for the RX 550's 64-bit address per read (the rt
# README's known gaps of pipeline states).
"1002:699f": {"constant_private": 1.20},
}
#: A row over its budget in a leg (its ceiling times HARNESS_BUDGET, else HARNESS_BUDGET) is