From 4a9d24a211130f5c06f7749b4f8d280cb9a66be6 Mon Sep 17 00:00:00 2001 From: Saleel Kudchadker Date: Thu, 25 Apr 2024 02:06:48 +0000 Subject: [PATCH] SWDEV-301667 - Pass reference to kernel name Change-Id: I21abe109ddfabfe7640bf78a96c81a1317d31952 --- hipamd/src/hip_graph_internal.hpp | 2 +- rocclr/platform/command.hpp | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/hipamd/src/hip_graph_internal.hpp b/hipamd/src/hip_graph_internal.hpp index c90902d2f0..97192ced97 100644 --- a/hipamd/src/hip_graph_internal.hpp +++ b/hipamd/src/hip_graph_internal.hpp @@ -233,7 +233,7 @@ struct GraphNode : public hipGraphNodeDOTAttribute { } // Return gpu packet address to update with actual packet under capture. uint8_t* GetAqlPacket() { return gpuPacket_; } - void SetKernelName(std::string kernelName) { capturedKernelName_ = kernelName; } + void SetKernelName(const std::string& kernelName) { capturedKernelName_ = kernelName; } const std::string& GetKernelName() const { return capturedKernelName_; } hip::Stream* GetQueue() const { return stream_; } diff --git a/rocclr/platform/command.hpp b/rocclr/platform/command.hpp index d60c95db66..38cd2af186 100644 --- a/rocclr/platform/command.hpp +++ b/rocclr/platform/command.hpp @@ -1270,8 +1270,7 @@ class AccumulateCommand : public Command { //! Add kernel name to the list if available void addKernelName(const std::string& kernelName) { - // "^" is to indicate kernel is captured at instantiate - kernelNames_.push_back("^ " + kernelName); + kernelNames_.push_back(kernelName); } //! Add kernel timestamp to the list if available