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:
1 parent
e4d29e228d
commit
1a710dabcf
7 files changed
+32
-8
No files matched your search
@@ -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");
|
||||
|
||||
|
||||
Reference in new issue
Block a user