From 17c0767e2a164447ba11d222ea5bc145027834e4 Mon Sep 17 00:00:00 2001 From: Gopesh Bhardwaj Date: Fri, 8 Mar 2024 20:34:19 +0530 Subject: [PATCH] rebased and solved conflicts (#605) [ROCm/rocprofiler-sdk commit: b8acf88c6ffd6e1b62ae6b2c6464782946bda1c1] --- projects/rocprofiler-sdk/source/bin/rocprofv3 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/projects/rocprofiler-sdk/source/bin/rocprofv3 b/projects/rocprofiler-sdk/source/bin/rocprofv3 index fadf631d22..b957b152cf 100755 --- a/projects/rocprofiler-sdk/source/bin/rocprofv3 +++ b/projects/rocprofiler-sdk/source/bin/rocprofv3 @@ -143,7 +143,7 @@ while true; do shift elif [[ "$1" == "-L" || "$1" == "--list-metrics" ]]; then export ROCPROF_LIST_METRICS=1 - LD_PRELOAD="${ROCPROF_PRELOAD}" exec ${ROCM_DIR}/lib/rocprofiler-sdk/rocprofv3-trigger-list-metrics + shift elif [ "$1" == "--kernel-trace" ]; then export ROCPROF_KERNEL_TRACE=1 shift @@ -217,6 +217,8 @@ if [ -n "${PMC_LINES:-}" ]; then echo -e "\nThe output path for the following counters: $ROCPROF_OUTPUT_PATH" fi done +elif [ -n "$ROCPROF_LIST_METRICS" ]; then + LD_PRELOAD="${ROCPROF_PRELOAD}" exec ${ROCM_DIR}/lib/rocprofiler-sdk/rocprofv3-trigger-list-metrics else # for non counter collection. e.g: tracing LD_PRELOAD="${ROCPROF_PRELOAD}" exec "${@}"