[mlir][vulkan-runner] Add basic timing for compute pipeline
authorLei Zhang <antiagainst@google.com>
Tue, 3 Mar 2020 16:25:10 +0000 (11:25 -0500)
committerLei Zhang <antiagainst@google.com>
Wed, 4 Mar 2020 22:13:28 +0000 (17:13 -0500)
commitf6981ac595cc5e85880f190a0c898049a93ccd31
treed7ee26efee86150e6bb1d47022e7fc909fdeb13c
parent5583c2f2fba5be1df60f00cbc34a5098b5a49909
[mlir][vulkan-runner] Add basic timing for compute pipeline

This commit adds timestamp query commands in Vulkan runner's
compute pipeline to gain insights into how long it takes to
run the compute shader. This commit also adds timing from CPU
side for VkQueueSubmit and vkQueueWaitIdle.

Differential Revision: https://reviews.llvm.org/D75531
mlir/tools/mlir-vulkan-runner/VulkanRuntime.cpp
mlir/tools/mlir-vulkan-runner/VulkanRuntime.h