SWDEV-496003 - Add support for dynamic functions in hipFuncSetAttribute
Modified hipFuncSetAttribute to handle pointers to dynamic functions returned by hipModuleGetFunction. Change-Id: I54b98f9d31a79630dd7edcd363fad81f1d89219b
Αυτή η υποβολή περιλαμβάνεται σε:
υποβλήθηκε από
Rakesh Roy
γονέας
e4d29e228d
υποβολή
1a710dabcf
@@ -1011,6 +1011,12 @@ hipError_t DynCO::getDynFunc(hipFunction_t* hfunc, std::string func_name) {
|
||||
return it->second->getDynFunc(hfunc, module());
|
||||
}
|
||||
|
||||
bool DynCO::isValidDynFunc(const void* hfunc) {
|
||||
amd::ScopedLock lock(dclock_);
|
||||
return std::any_of(functions_.begin(), functions_.end(),
|
||||
[&](auto& it) { return it.second->isValidDynFunc(hfunc); });
|
||||
}
|
||||
|
||||
hipError_t DynCO::initDynManagedVars(const std::string& managedVar) {
|
||||
amd::ScopedLock lock(dclock_);
|
||||
DeviceVar* dvar;
|
||||
|
||||
Αναφορά σε νέο ζήτημα
Block a user