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:
Rakesh Roy
2022-11-24 19:43:40 +05:30
committed by Rakesh Roy
parent 3a9621574c
commit b4d8586a11
7 changed files with 50 additions and 1 deletions
+3
View File
@@ -92,6 +92,9 @@ public:
hipError_t getDynFunc(hipFunction_t* hfunc, std::string func_name);
hipError_t getDeviceVar(DeviceVar** dvar, std::string var_name);
// Verify whether the dynamic function is present or not
bool isValidDynFunc(const hipFunction_t& hfunc);
hipError_t getManagedVarPointer(std::string name, void** pointer, size_t* size_ptr) const {
auto it = vars_.find(name);
if (it != vars_.end() && it->second->getVarKind() == Var::DVK_Managed) {