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