avulisha commented on code in PR #10953: URL: https://github.com/apache/tvm/pull/10953#discussion_r847321958
########## src/runtime/vulkan/vulkan_stream.cc: ########## @@ -55,11 +55,15 @@ VulkanStream::VulkanStream(const VulkanDevice* device) cb_begin.flags = VK_COMMAND_BUFFER_USAGE_ONE_TIME_SUBMIT_BIT; cb_begin.pInheritanceInfo = 0; VULKAN_CALL(vkBeginCommandBuffer(state_->cmd_buffer_, &cb_begin)); + + profiler_ = new AmdRgpProfiler(device_); Review Comment: > Please do this only when RGP is enabled. Okay. Will Implement your suggestion. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
