[PATCH] D75531: [mlir][vulkan-runner] Add basic timing for compute pipeline
Ben Vanik via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 3 14:24:34 PST 2020
benvanik added inline comments.
================
Comment at: mlir/tools/mlir-vulkan-runner/VulkanRuntime.cpp:721
+ queryPool, 0);
+ // Get anotehr timestamp after invoking the compute shader.
+ vkCmdWriteTimestamp(commandBuffer, VK_PIPELINE_STAGE_BOTTOM_OF_PIPE_BIT,
----------------
another*
================
Comment at: mlir/tools/mlir-vulkan-runner/VulkanRuntime.cpp:722
+ // Get anotehr timestamp after invoking the compute shader.
+ vkCmdWriteTimestamp(commandBuffer, VK_PIPELINE_STAGE_BOTTOM_OF_PIPE_BIT,
+ queryPool, 1);
----------------
you want to insert this after the vkCmdDispatch below - the timestamp only latches the value after previous commands complete (in this case, just the timestamp reset/initial query)
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D75531/new/
https://reviews.llvm.org/D75531
More information about the llvm-commits
mailing list