From 19099328cfcc826a7802ce7ec52ef800f53a3bb5 Mon Sep 17 00:00:00 2001 From: gobhardw Date: Fri, 23 Jun 2023 21:21:47 +0530 Subject: [PATCH] Fixing input file processing and ATT Change-Id: I34b674d6a6f67796c4747e40e2e3715780ffdb26 --- bin/rocprofv2 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bin/rocprofv2 b/bin/rocprofv2 index aeaf76d316..ddf3f44842 100755 --- a/bin/rocprofv2 +++ b/bin/rocprofv2 @@ -228,7 +228,7 @@ while [ 1 ] ; do fi if [ "$2" = "att" ] ; then if [ $RUN_FROM_BUILD == 1 ]; then - ATT_PATH=$ROCPROFV2_DIR/build/plugin/att/att/att.py + ATT_PATH=$ROCPROFV2_DIR/plugin/att/att/att.py export ROCPROFV2_ATT_LIB_PATH=$ROCM_PATH/lib/hsa-amd-aqlprofile/librocprofv2_att.so export LD_LIBRARY_PATH=$ROCPROFV2_DIR:$LD_LIBRARY_PATH else @@ -284,6 +284,11 @@ if [ -n "$PMC_LINES" ]; then COUNTER=1 for i in ${!PMC_LINES[@]}; do export ROCPROFILER_COUNTERS="${PMC_LINES[$i]}" + #Skipping lines without pmc when not in att mode + if [[ ! ${PMC_LINES[$i]} =~ "pmc" && ! ${PMC_LINES[$i]} =~ "att" ]]; then + continue + fi + if [ -n "$OUTPUT_PATH" ]; then if [ ! -n "$ATT_ARGV" ]; then FINAL_PATH="$OUTPUT_PATH_INTERNAL/pmc_$COUNTER"