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
Cette révision appartient à :
Rakesh Roy a créé et Rakesh Roy a révisé 2022-11-29 00:35:43 -05:00
1 Parent 3a9621574c
révision b4d8586a11
7 fichiers modifiés
+50 -1

Aucun fichier ne correspond à votre recherche

+12
Voir le fichier
@@ -747,6 +747,18 @@ hipError_t PlatformState::getDynFunc(hipFunction_t* hfunc, hipModule_t hmod,
return it->second->getDynFunc(hfunc, func_name);
}
bool PlatformState::isValidDynFunc(const hipFunction_t& hfunc) {
amd::ScopedLock lock(lock_);
for (auto it : dynCO_map_) {
if (it.second->isValidDynFunc(hfunc)) {
return true;
}
}
return false;
}
hipError_t PlatformState::getDynGlobalVar(const char* hostVar, hipModule_t hmod,
hipDeviceptr_t* dev_ptr, size_t* size_ptr) {
amd::ScopedLock lock(lock_);