Laurent Morichetti 472b3f3155 SWDEV-351980 - Move hip_api_data and record to the HIP function's stack
Since the hip_api_data and record are only needed at the HIP function's
scope, there is no need to allocate/free them in the ROCtracer activity
callback, they can reside on the HIP function's stack frame.

This solves an issue with the thread local stacks of records the tracer
maintains that are destroyed first (before any global destructor) on
process exit, making it impossible to use HIP functions in global
destructors when the profiler is enabled.

Change-Id: Ib1d70124d009a44dc1f08d41edff95e5f9f84369


[ROCm/clr commit: 85fd969253]
2022-09-21 02:41:15 -04:00
S
Cur síos
Níor tugadh tuairisc
282 MiB
Teangacha
C++ 67.5%
C 20.6%
Python 6.6%
CMake 3.4%
Shell 0.6%
Eile 1.1%