ROCm / roctracer

ROCm Tracer Callback/Activity Library for Performance tracing AMD GPUs
https://rocm.docs.amd.com/projects/roctracer/en/latest/
Other
64 stars 30 forks source link

[SWDEV-302415] #62

Open kikimych opened 2 years ago

kikimych commented 2 years ago

Fixed --trace-start on/of not working issue.

roctracer_stop() call in tool_load() function does nothing before hsa activities registered. That forces tracing to be enabled from start independently from option value. tool_load is called in library constructor, activities are registered in library OnLoad() callback, whih is called later by hsa_runtime.

Duplicated roctracer_stop() call in OnLoad() callback to fix this.

alexey.akimov@amd.com