From 8d5dee3348d094c1b0be80f967e5bedc51bd616f Mon Sep 17 00:00:00 2001 From: "Bhardwaj, Gopesh" Date: Wed, 15 Jan 2025 22:59:21 +0530 Subject: [PATCH] Tool deprecation message for rocprofiler v1,v2 (#2) [ROCm/rocprofiler commit: bae2c449a2fe17d093562c7fd9424e13726c4885] --- projects/rocprofiler/bin/rocprofv2 | 21 +++++++++++++++++---- projects/rocprofiler/bin/rpl_run.sh | 17 +++++++++++++++++ 2 files changed, 34 insertions(+), 4 deletions(-) diff --git a/projects/rocprofiler/bin/rocprofv2 b/projects/rocprofiler/bin/rocprofv2 index 2a158e8022..f619927f49 100755 --- a/projects/rocprofiler/bin/rocprofv2 +++ b/projects/rocprofiler/bin/rocprofv2 @@ -2,6 +2,23 @@ set -eo pipefail +# Define color code +GREEN='\033[0;32m' +GREY='\033[0;90m' +RED='\033[0;31m' +RESET='\033[0m' + +# Function to display deprecation warning message +display_warning() { + echo -e "\n${RED}WARNING: We are phasing out development and support for roctracer/rocprofiler/rocprof/rocprofv2 in favor of \ +rocprofiler-sdk/rocprofv3 in upcoming ROCm releases. Going forward, only critical defect fixes will be addressed for \ +older versions of profiling tools and libraries. We encourage all users to upgrade to the latest version, \ +rocprofiler-sdk library and rocprofv3 tool, to ensure continued support and access to new features.${RESET}\n" +} + +# Display the warning message +display_warning + # LD_PRELOAD on script will not get propagated if [ -n "${ROCP_PRELOAD}" ]; then LD_PRELOAD="${ROCP_PRELOAD}"; fi @@ -19,10 +36,6 @@ export ROCPROFILER_METRICS_PATH=$ROCM_DIR/libexec/rocprofiler/counters/derived_c export LD_LIBRARY_PATH=$ROCM_DIR/lib:$LD_LIBRARY_PATH export HSA_TOOLS_LIB=$ROCM_DIR/lib/librocprofiler64.so.2 -# Define color code -GREEN='\033[0;32m' -GREY='\033[0;90m' -RESET='\033[0m' usage() { echo -e "${RESET}ROCProfilerV2 Run Script Usage:" diff --git a/projects/rocprofiler/bin/rpl_run.sh b/projects/rocprofiler/bin/rpl_run.sh index ea96c54d6e..9353fa538d 100755 --- a/projects/rocprofiler/bin/rpl_run.sh +++ b/projects/rocprofiler/bin/rpl_run.sh @@ -36,6 +36,23 @@ TTLIB_PATH=$ROOT_DIR/lib/roctracer ROCM_LIB_PATH=$ROOT_DIR/lib PROF_BIN_DIR=$ROOT_DIR/libexec/rocprofiler +# Define color code +GREEN='\033[0;32m' +GREY='\033[0;90m' +RED='\033[0;31m' +RESET='\033[0m' + +# Function to display deprecation warning message +display_warning() { + echo -e "\n${RED}WARNING: We are phasing out development and support for roctracer/rocprofiler/rocprof/rocprofv2 in favor of \ +rocprofiler-sdk/rocprofv3 in upcoming ROCm releases. Going forward, only critical defect fixes will be addressed for \ +older versions of profiling tools and libraries. We encourage all users to upgrade to the latest version, \ +rocprofiler-sdk library and rocprofv3 tool, to ensure continued support and access to new features.${RESET}\n" +} + +# Display the warning message +display_warning + # check if rocprof is supportd on this gpu arch V1_SUPPORTED_GPU_ARCHS=("gfx80x","gfx90x","gfx94x") IS_SUPPORTED="false"