SWDEV-301667 - Pass reference to kernel name

Change-Id: I21abe109ddfabfe7640bf78a96c81a1317d31952
This commit is contained in:
Saleel Kudchadker
2024-04-25 02:06:48 +00:00
parent 68ddd8f3a0
commit 4a9d24a211
2 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -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_; }