6e68d44220a53d07a26a89df11116f18ef502d7e
A hash calculated via FNV-1a algorithm is introduced in ihipModule_t, the internal of hipModule_t. The hash is used by HIP module APIs such as - read_agent_global_from_module to determine whether the agent-scope globals for a module have been iterated. This commit fixes one issue that applications which load / unload modules frequently would occasionally fail. After deep investigation of the issue it turns out the old implementation in read_agent_global_from_module uses hipModule_t as the key, which is not robust enough, as hipModule_t instances are allocated dynamically so there are cases that one memory address may be used by multiple hipModule_t instances. The real solution is to introduce a uniquely identifiable hash for the code object associated with the HIP module. And that's the rationale behind this commit.
Description
No description provided
Languages
C++
67.5%
C
20.6%
Python
6.6%
CMake
3.4%
Shell
0.6%
Other
1.1%