From 084019cfc62f01b59614111cf54bc5a6e4e89385 Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Sat, 7 Nov 2026 11:05:16 -0800 Subject: [PATCH] Probe: a gather's kernel start to end is its submitting, not its GPU time submit_per_ram_chunk printed kernelEndTime - kernelStartTime of each gather as "ms on the GPU". It is the time the device's scheduler took to submit the command buffer's work to Vulkan. Say so. Verified: cargo fmt; the probe's text only. (cherry picked from commit d7ad9d8a5ef8418d8d82b953ca3d7c9e59b8cdd4) --- .../src/runtime_lane/submit_per_import.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/metal2vulkan-validation/src/runtime_lane/submit_per_import.rs b/crates/metal2vulkan-validation/src/runtime_lane/submit_per_import.rs index 091bd4b78..988ac0ef1 100644 --- a/crates/metal2vulkan-validation/src/runtime_lane/submit_per_import.rs +++ b/crates/metal2vulkan-validation/src/runtime_lane/submit_per_import.rs @@ -965,18 +965,18 @@ fn submit_per_ram_chunk() { let encoded = began.elapsed(); blit.end_encoding().unwrap(); let committed = Instant::now(); - let gpu = submitted(command_buffer); + let submitting = submitted(command_buffer); let counts = device.work_counts(); eprintln!( "SUBMIT-PER-RAM-CHUNK {}: {what}: a gather of {} runs of {} KiB encoded in {:.3} ms, \ - committed to completed in {:.3} ms ({:.3} ms on the GPU); {} dma-buf imports made, \ - {} chunks imported by then", + committed to completed in {:.3} ms ({:.3} ms of it submitting); {} dma-buf imports \ + made, {} chunks imported by then", device.name(), runs.len(), runs[0].end.saturating_sub(runs[0].start) >> 10, ms(encoded), ms(committed.elapsed()), - gpu * 1e3, + submitting * 1e3, counts.host_ram_dma_buf_imports - before.host_ram_dma_buf_imports, counts.host_ram_chunks_imported - before.host_ram_chunks_imported, );