From 36108aac55df59f6973ac0c6a1dab9a49b140f80 Mon Sep 17 00:00:00 2001 From: Giovanni LB Date: Mon, 24 Apr 2023 13:55:06 -0300 Subject: [PATCH] SWDEV-391608: Changed AQL-ATT default location. Added ATT env-variable to Readme. Change-Id: I6256c8d539284562c547ae5349a6b8c022fe2b88 --- README.md | 4 ++++ plugin/att/att.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 47ee9c5446..b570b64262 100644 --- a/README.md +++ b/README.md @@ -220,6 +220,10 @@ The user has two options for building: - (ATT) Advanced Thread Trace: It can collect kernel running time, granular hardware metrics per kernel dispatch and provide hotspot analysis at source code level via hardware tracing. ```bash + # (Optional) setup ROCPROFV2_ATT_LIB_PATH environment variable for AQL-ATT. + # The default location is: + export ROCPROFV2_ATT_LIB_PATH="/usr/lib/hsa-amd-aqlprofile/librocprofv2_att.so" + # ATT(Advanced Thread Trace) needs few proeconditions before running. #1. Make sure to generate the assembly file for application export HIPCC_COMPILE_FLAGS_APPEND="--save-temps -g" diff --git a/plugin/att/att.py b/plugin/att/att.py index 1eabb160d6..ac6f87ed31 100755 --- a/plugin/att/att.py +++ b/plugin/att/att.py @@ -107,7 +107,7 @@ try: # For build dir path_to_parser = os.path.abspath(rocprofv2_att_lib) SO = CDLL(path_to_parser) except: # For installed dir - path_to_parser = os.path.abspath('/opt/rocm/lib/hsa-amd-aqlprofile/librocprofv2_att.so') + path_to_parser = os.path.abspath('/usr/lib/hsa-amd-aqlprofile/librocprofv2_att.so') SO = CDLL(path_to_parser) SO.AnalyseBinary.restype = ReturnInfo