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:
committed by
Rakesh Roy
parent
4f83e7775a
commit
eae7d9bdc8
@@ -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