Use the new ROCR support to automatically load tool libraries

The ROCR now detects already loaded tool libraries and calls OnLoad/
OnUnload in the order specified with HSA_AMD_TOOL_ORDER.

It is no longer necessary to set the HSA_TOOLS_LIB environment variable
to load the roctracer API. The roctracer tool library should be
pre-loaded with LD_PRELOAD.

Change-Id: I6de1b1bd4f93caa08d3554aad2376d242c74fb7e
This commit is contained in:
Laurent Morichetti
2022-06-20 14:19:15 -07:00
parent 8c28237a2c
commit d32cf96cd4
5 changed files with 44 additions and 29 deletions
+1 -1
View File
@@ -1 +1 @@
{ global: OnLoad; OnUnload; local: *; };
{ global: HSA_AMD_TOOL_PRIORITY; OnLoad; OnUnload; local: *; };