SWDEV-345650 - Solving hipKernelNameRefByPtr Stream Issue

Stream is not important to get the kernel
name from Function that can be found in
the functions_ map.

Change-Id: I164bc3ebcc5552359856e76204d8b124ba0d2f34
This commit is contained in:
Ammar ELWazir
2022-07-08 18:44:49 -05:00
committed by Ammar Elwazir
parent 4375b9f5b9
commit fb8690f812
6 changed files with 18 additions and 14 deletions
+8
View File
@@ -766,6 +766,14 @@ hipError_t StatCO::registerStatFunction(const void* hostFunction, Function* func
return hipSuccess;
}
const char* StatCO::getStatFuncName(const void* hostFunction) const {
const auto it = functions_.find(hostFunction);
if (it == functions_.end()) {
return nullptr;
}
return it->second->name().c_str();
}
hipError_t StatCO::getStatFunc(hipFunction_t* hfunc, const void* hostFunction, int deviceId) {
amd::ScopedLock lock(sclock_);