SWDEV-368881 - Enable hipLaunchCooperativeKernel for hipRTC compiled function

- Add helper function to validate whether a dynamic function is present or not
- If getStatFunc fails, then check whether the function passed is a valid dynamic function

Change-Id: I4141172f42dce7ff689709560c483e602b5dad4b


[ROCm/clr commit: b4d8586a11]
Cette révision appartient à :
Rakesh Roy a créé et Rakesh Roy a révisé 2022-11-29 00:35:43 -05:00
1 Parent f97723d118
révision f870f04dd9
7 fichiers modifiés
+50 -1

Aucun fichier ne correspond à votre recherche

+14
Voir le fichier
@@ -562,6 +562,20 @@ hipError_t DynCO::getDynFunc(hipFunction_t* hfunc, std::string func_name) {
return it->second->getDynFunc(hfunc, module());
}
bool DynCO::isValidDynFunc(const hipFunction_t& hfunc) {
amd::ScopedLock lock(dclock_);
CheckDeviceIdMatch();
for (auto it : functions_) {
if (it.second->isValidDynFunc(hfunc)) {
return true;
}
}
return false;
}
hipError_t DynCO::initDynManagedVars(const std::string& managedVar) {
amd::ScopedLock lock(dclock_);
DeviceVar* dvar;