From 6f97e15d5549d381ffa78f84f4b92861384c1d84 Mon Sep 17 00:00:00 2001 From: Ammar ELWazir Date: Mon, 20 Jun 2022 17:53:25 -0500 Subject: [PATCH] Enabling ROCP_STATS_OPT Enabling the new methodology of ROCP_STATS_OPT of getting HIP activities while the application is running Change-Id: I19d09e2f2abe16e6528240bf55d6048645aaa09f --- bin/rpl_run.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/bin/rpl_run.sh b/bin/rpl_run.sh index 385ff59983..79a678afc9 100755 --- a/bin/rpl_run.sh +++ b/bin/rpl_run.sh @@ -279,6 +279,16 @@ run() { MY_HSA_TOOLS_LIB="$ROCM_LIB_PATH/libroctracer64.so $TTLIB_PATH/libroctracer_tool.so" fi + if [ "$ROCP_STATS_OPT" = 1 ] ; then + if [ "$ROCTRACER_DOMAIN" = ":hip" ] ; then + MY_HSA_TOOLS_LIB="$ROCM_LIB_PATH/libroctracer64.so $TTLIB_PATH/libhip_stats.so" + else + error_message="ROCP_STATS_OPT is only available with --hip-trace option" + echo $error_message + exit 1 + fi + fi + retval=1 if [ -n "$ROCP_OUTPUT_DIR" ] ; then log_file="$ROCP_OUTPUT_DIR/log.txt"