RUNTIME 2343: GPU times placed by a calibration still beyond 20 us are announced and counted
A calibration pair is read again while the smallest deviation so far
states more than 20 us (`gpu_time::SETTLED`), four readings at most
(`least_deviation`). Where the least of four still stated more (93 and
125 us on the RX 7900 XTX under full parallel suites: a reading's
deviation holds the time its thread spent off the CPU), the runtime
placed the command buffer's GPU times by it, inside the command
buffer's life, with up to that error, and said nothing. Owner rule 2:
a near-equivalent is recorded and announced.
`GpuClock::span` now answers `Placement::Loose { deviation }` where the
pair places both times inside the life and its deviation exceeds
`SETTLED` (a pair outside the life is still set aside as before).
`Placement::read` gives the notice for every placement the first read
of a command buffer's GPU times announces, counting a loose one:
- new kind `Degradation::LooselyCalibratedGpuTimes`,
`loosely-calibrated-gpu-times`, class Precision, announced once per
device at the read (the site `uncalibrated-gpu-times` uses), its
reason stating the deviation; not `uncalibrated-gpu-times`, whose
cost says the times are placed by the completion, where these are
the pair's, the duration exact;
- new `WorkCounts::loosely_calibrated_gpu_times`: command buffers
whose times a read found placed so, counted at the read that
announces, so the count is nonzero exactly where the kind was
announced.
Tests: `tests::gpu_time::a_pair_still_beyond_the_settled_deviation_is_
announced_once_and_counted` feeds `least_deviation` a fake source of
four readings above 20 us (Loose, the kind with the deviation in its
reason, each read counted, announced once) and settled ones (Iris
Xe's 165 then 7.6 us; 20 us exactly: Calibrated, nothing), and a loose
pair outside the life (Disagreed, the uncalibrated kind, not counted).
The lane's `gpu_times` expects the kind exactly where counted, and holds
the count nonzero exactly where `calibration_deviation_most` exceeds
the slack (no disagreement); `read_kinds` adds it where counted
(mesh_draws), `disagreeable_kinds` allows it (first_use); a site const
`LOOSE_GPU_TIMES` takes it. The conformance cases that read GPU times
(`command-buffer-facts`, `empty-command-buffers`) allow its notice:
the host's load decides it, and every value still compares exactly.
docs/API.md's catalogue lists the kind; api_signatures.tsv blessed.
This commit is contained in:
1 parent
d9236a8a11
commit
7ba0cd9fe6
14 files changed
+295
-73
No files matched your search
@@ -2794,6 +2794,14 @@ bound.
|
||||
by more than its stated deviation and the clocks' drift allow. Cost: the end is the host time the
|
||||
runtime saw the command buffer complete, late by that latency, and the start the GPU's exact
|
||||
duration before it.
|
||||
- `metal2vulkan-degrade-loosely-calibrated-gpu-times` (precision). `LooselyCalibratedGpuTimes`: A
|
||||
command buffer's GPU times on a device whose calibration, taken as the command buffer completed,
|
||||
stated a deviation above 20 us though the runtime read it again (four readings at most), and
|
||||
placed them inside the command buffer's life by the reading of the least deviation, which the
|
||||
notice's reason states. A reading's deviation holds the time its thread spent off the CPU, so a
|
||||
loaded host states more. Cost: each GPU time may stand from the moment the GPU wrote it by up to
|
||||
the deviation its reason states, more than the 20 us a settled calibration reading keeps to; the
|
||||
duration between them stays exact.
|
||||
- `metal2vulkan-degrade-untimed-command-buffer` (precision). `UntimedCommandBuffer`: A command
|
||||
buffer's GPU times on a device whose timestamp pools had no slot free at the command buffer's
|
||||
commit, and which could make no pool more: every slot was held by a command buffer in flight.
|
||||
|
||||
Reference in new issue
Block a user