Skip to content

Commit

Permalink
[mlir][vulkan-runner] Minor fix in timestamp flag for vulkan runner.
Browse files Browse the repository at this point in the history
The first timestamp query should use VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT.

Differential Revision: https://reviews.llvm.org/D80183
  • Loading branch information
ThomasRaoux committed May 20, 2020
1 parent a45fb19 commit 92577e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mlir/tools/mlir-vulkan-runner/VulkanRuntime.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,7 @@ LogicalResult VulkanRuntime::createComputeCommandBuffer() {
descriptorSets.data(), 0, 0);
// Get a timestamp before invoking the compute shader.
if (queryPool != VK_NULL_HANDLE)
vkCmdWriteTimestamp(commandBuffer, VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT,
vkCmdWriteTimestamp(commandBuffer, VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT,
queryPool, 0);
vkCmdDispatch(commandBuffer, numWorkGroups.x, numWorkGroups.y,
numWorkGroups.z);
Expand Down

0 comments on commit 92577e6

Please sign in to comment.