SWDEV-496003 - Add support for dynamic functions in hipFuncSetAttribute

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

Change-Id: I54b98f9d31a79630dd7edcd363fad81f1d89219b


[ROCm/clr commit: 1a710dabcf]
This commit is contained in:
Ioannis Assiouras
2024-11-05 15:40:52 +00:00
committed by Rakesh Roy
parent 4f83e7775a
commit eae7d9bdc8
7 changed files with 32 additions and 8 deletions
+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");