From 035a8876492a2a9cbc17a8c634541f19ef35a94e Mon Sep 17 00:00:00 2001 From: Evgeny Date: Fri, 24 Jan 2020 14:22:52 -0600 Subject: [PATCH] ROCP_PYTHON_VERSION env var Change-Id: Id86ff687f107d01039ded5e26811fc7d19fa0c00 [ROCm/rocprofiler commit: 4bfdb0a3a1f4afa44e5980221f525168b3142779] --- projects/rocprofiler/bin/rpl_run.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/projects/rocprofiler/bin/rpl_run.sh b/projects/rocprofiler/bin/rpl_run.sh index 5df664733f..47a4fef53f 100755 --- a/projects/rocprofiler/bin/rpl_run.sh +++ b/projects/rocprofiler/bin/rpl_run.sh @@ -35,6 +35,10 @@ RPL_PATH=$PKG_DIR/lib TLIB_PATH=$PKG_DIR/tool TTLIB_PATH=$TT_DIR/tool +if [ -z "$ROCP_PYTHON_VERSION" ] ; then + ROCP_PYTHON_VERSION=python +fi + # Default HIP path if [ -z "$HIP_PATH" ] ; then export HIP_PATH=/opt/rocm/hip @@ -529,9 +533,9 @@ if [ -n "$csv_output" ] ; then if [ "$GEN_STATS" = "1" ] ; then db_output=$(echo $csv_output | sed "s/\.csv/.db/") merge_output $OUTPUT_LIST - python $BIN_DIR/tblextr.py $db_output $OUTPUT_LIST + $ROCP_PYTHON_VERSION $BIN_DIR/tblextr.py $db_output $OUTPUT_LIST else - python $BIN_DIR/tblextr.py $csv_output $OUTPUT_LIST + $ROCP_PYTHON_VERSION $BIN_DIR/tblextr.py $csv_output $OUTPUT_LIST fi if [ "$?" -ne 0 ] ; then echo "Data extracting error: $OUTPUT_LIST'"