rebased and solved conflicts (#605)

[ROCm/rocprofiler-sdk commit: b8acf88c6f]
이 커밋은 다음에 포함됨:
Gopesh Bhardwaj 작성하고 GitHub가 2024-03-08 09:04:19 -06:00를 커밋함
1 부모 e995df5be5
커밋 17c0767e2a
1 파일이 변경됨
+3 -1
+3 -1
파일 보기
@@ -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 "${@}"