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 à :
1 Parent
3a9621574c
révision
b4d8586a11
7 fichiers modifiés
+50
-1
Aucun fichier ne correspond à votre recherche
@@ -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_);
|
||||
|
||||
Référencer dans un nouveau ticket
Bloquer un utilisateur