SWDEV-546179 - hipModuleGetFunctionCount AMD impl (#782)

* SWDEV-546179 - hipModuleGetFunctionCount AMD impl

* SWDEV-546179 - return invalid for count ptr

* SWDEV-546179 - hipModuleGetFunctionCount CHANGELOG.md update

[ROCm/clr commit: dfb46db2fb]
Этот коммит содержится в:
GunaShekar, Ajay
2025-08-13 20:28:12 -07:00
коммит произвёл GitHub
родитель 5c412edcd1
Коммит 76328ecfde
12 изменённых файлов: 87 добавлений и 5 удалений
+9
Просмотреть файл
@@ -89,6 +89,15 @@ hipError_t hipModuleGetFunction(hipFunction_t* hfunc, hipModule_t hmod, const ch
HIP_RETURN(hipSuccess);
}
hipError_t hipModuleGetFunctionCount(unsigned int* count, hipModule_t mod) {
HIP_INIT_API(hipModuleGetFunctionCount, count, mod);
if (mod == nullptr) {
HIP_RETURN(hipErrorInvalidResourceHandle);
}
HIP_RETURN(PlatformState::instance().getFuncCount(count, mod););
}
hipError_t hipModuleGetGlobal(hipDeviceptr_t* dptr, size_t* bytes, hipModule_t hmod,
const char* name) {
HIP_INIT_API(hipModuleGetGlobal, dptr, bytes, hmod, name);