SWDEV-496003 - Add support for dynamic functions in hipFuncSetAttribute

Modified hipFuncSetAttribute to handle pointers to dynamic functions
returned by hipModuleGetFunction.

Change-Id: I54b98f9d31a79630dd7edcd363fad81f1d89219b
This commit is contained in:
Ioannis Assiouras authored and Rakesh Roy committed 2024-11-19 04:50:15 -05:00
1 parent e4d29e228d
commit 1a710dabcf
7 files changed
+32 -8

No files matched your search

+4
View File
@@ -150,6 +150,10 @@ hipError_t Function::getDynFunc(hipFunction_t* hfunc, hipModule_t hmod) {
return hipSuccess;
}
bool Function::isValidDynFunc(const void* hfunc) {
return (hfunc == dFunc_[ihipGetDevice()]->asHipFunction());
}
hipError_t Function::getStatFunc(hipFunction_t* hfunc, int deviceId) {
guarantee(modules_ != nullptr, "Module not initialized");