diff --git a/crates/metal2vulkan-rt/README.md b/crates/metal2vulkan-rt/README.md index 09e78d883..1d4e0cdce 100644 --- a/crates/metal2vulkan-rt/README.md +++ b/crates/metal2vulkan-rt/README.md @@ -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 diff --git a/scripts/matrix/results.py b/scripts/matrix/results.py index 4c2f7bcdc..faf0ded00 100644 --- a/scripts/matrix/results.py +++ b/scripts/matrix/results.py @@ -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