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)
This commit is contained in:
1 parent
2146289ec9
commit
084019cfc6
1 file changed
+4
-4
@@ -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,
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user