This reverts commit f870f04dd9.
Reason for revert: Doesn't match with CUDA behavior
Change-Id: I413f3d241f864c1e7c21681c5fff8f216ef54306
[ROCm/clr commit: 4f5d180ca7]
- Add helper function to validate whether a dynamic function is present or not
- If getStatFunc fails, then check whether the function passed is a valid dynamic function
Change-Id: I4141172f42dce7ff689709560c483e602b5dad4b
[ROCm/clr commit: b4d8586a11]
Stream is not important to get the kernel
name from Function that can be found in
the functions_ map.
Change-Id: I164bc3ebcc5552359856e76204d8b124ba0d2f34
[ROCm/clr commit: fb8690f812]
This reverts commit 6ef56f09f1.
Reason for revert: To address SWDEV-316216
Change-Id: Ib8e6ac4b87c5e52757cd8f45958f39f012823c60
[ROCm/clr commit: a6b2294b93]
File descriptors opened during hipModuleLoad are not closed
until hipModuleUnLoad. In large models, this exceeds the ulimit
for no. of open file descriptors causing out of resource issues.
Hence, close the file descriptors once the required data is read
from the file, and not wait until unload.
Change-Id: Ic50d424e5ca388715b1e6309a0de72a480321582
[ROCm/clr commit: 3b157b3d5f]