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"