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:
committed by
Ammar Elwazir
parent
4375b9f5b9
commit
fb8690f812
@@ -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_);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user