SWDEV-301667 - Pass reference to kernel name

Change-Id: I21abe109ddfabfe7640bf78a96c81a1317d31952


[ROCm/clr commit: 4a9d24a211]
このコミットが含まれているのは:
Saleel Kudchadker committed 2024-05-05 16:38:20 -04:00
1 親 7c56ed2526
コミット 588e870000
2ファイル変更
+2 -3

検索条件に一致するファイルはありません

+1 -1
ファイルの表示
@@ -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_; }
+1 -2
ファイルの表示
@@ -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