Copied host buffers: a split comparison's threads take their runs with the runs' lock let go

The pull loop's while-let held the lock of the runs' iterator through each run's work,
so the threads took their runs one after another. The lock is now let go before the
work, as a let statement drops its temporaries.
This commit is contained in:
Anees Iqbal committed 2026-11-11 15:32:23 -08:00
1 parent 34db5491f6
commit d2f862c193
3 files changed
+11 -3

No files matched your search

+2 -1
View File
@@ -3392,7 +3392,8 @@ bound.
room, else in host memory (`copied_base_host_bytes`, `copied_base_device_bytes`); a block whose tag
agrees is taken as unchanged, a changed one missed with a chance of at most 2^-64 at each
comparison, and a commit that finds no host memory for a base fails with `OutOfMemory`
(`copied_bases_refused`). An event signal submitted while a copy is live is seen once its batch's
(`copied_bases_refused`). A comparison of a copy with a base of 16 MiB or more splits its blocks
across up to four threads, the calling one among them (`copied_compare_threads`). An event signal submitted while a copy is live is seen once its batch's
writes are back in the pages, as Metal's: its value at the completion turn, and a wait for it
held on the host until then (`event_signals_behind_merge`). A copy and another memory over
overlapping but not the same bytes agree GPU to GPU only through the pages, so a read committed