RUNTIME_VERSION 2074: a batch's fills of 1 MiB or more run on the copy engine's second queue
The branch before this commit adds the fill queue. On a device whose transfer-only queue family has two queues or more (NVIDIA's copy engine), a batch's copies in (a Managed buffer's modified range) and new buffers' fills, 1 MiB or more in all, run on that family's second queue. They go in a submission of their own after the batches before it, and the batch waits for it on the GPU (device/staging.rs, WorkCounts::fill_queue_submissions). Smaller fills, and every fill on other devices, still run at the start of the batch's own work on its queue. A batch that finds all of its command buffers already pending keeps its fills. Metal's order is kept: a copy in comes after the work before it and before the commands that take it. Numbers (managed_copies_bench, p50 ms per frame, fill queue / batch's start): - Beside another queue's kernels, 1 MiB: RTX 3090 1.80 / 3.53, RTX 2080 1.84 / 3.60, RTX 5080 Laptop 1.15 / 1.20. 64 MiB: 36.0 / 49.4, 37.8 / 48.2, 3.31 / 5.90. - Alone, 1 MiB and up: at worst 1.04x as long (the 3090 at 1 MiB in two runs of three, the 2080 at 64 MiB in one run of two). FAST-PATHS states the trade. Under 1 MiB, no gain past the bench's own spread, hence the 1 MiB least. - Every other submission of the device waits on the GPU for the fill queue's last until the host sees it complete (FAST-PATHS records it). Verified (potluck jobs, on the branch at 24d29ef09c; later commits are docs and comments): - fill_queue and the bench, 49/49 each: RTX 3090 (m3-max-18358), RTX 2080 (18309), RTX 5080 Laptop (18379, exclusive): fill queue family 1 (flags 0xc), 2 submissions, the second command buffer still running when the third committed; 0 fill-queue submissions in the check just under 1 MiB. RX 7900 XTX (18310), 780M (18345), lavapipe (18286): no fill queue, 0 submissions. - 0 NVRM intermapRegisterDmaMapping lines and no hung submit on the three NVIDIA GPUs. - Lint (18317): clippy -D warnings in all three configurations on the runtime, conformance and validation; rustdoc; api_signatures/api_surface 15/15; cost tests 10/10; plan and first-move tests 52/52. At the tip: fmt, rustdoc -D warnings (18390), clippy under m2v_gpu and none (18401).
This commit is contained in:
1 parent
0307da09ba
commit
1249910772
1 file changed
+1
-1
Vendored
+1
-1
@@ -93,7 +93,7 @@ pub const ARTIFACT_FORMAT_VERSION: u32 = 502;
|
||||
/// changes no behaviour, and then updates that hash alone with the commit saying why, or changes
|
||||
/// behaviour and also bumps this version. The commit that bumps it says what changed; this comment
|
||||
/// keeps no history.
|
||||
pub const RUNTIME_VERSION: u32 = 2073;
|
||||
pub const RUNTIME_VERSION: u32 = 2074;
|
||||
|
||||
/// The digest of the sources this build of the crate was compiled from: SHA-256, as lowercase hex,
|
||||
/// of the manifest, the build script, and exactly the files the crate roots' module tree compiles
|
||||
|
||||
Reference in new issue
Block a user