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
This commit is contained in:
1 bovenliggende
3a9621574c
commit
b4d8586a11
7 files changed
+50
-1
No files matched your search
@@ -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_);
|
||||
|
||||
Reference in new issue
Block a user