From 8363a2328680e3ac65d2d107fc571e91923b74ae Mon Sep 17 00:00:00 2001 From: kiumars Date: Tue, 19 Oct 2021 09:53:34 -0700 Subject: [PATCH] SWDEV-303820: [LLNLA-63]rocprof does not check input arguments at start Change-Id: I820a2b6df10b799f776518a98519e9c8ca40ec53 [ROCm/rocprofiler commit: 7a8f5b5e90412f4d5746d0339129de1c4a6a354b] --- projects/rocprofiler/bin/rpl_run.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/projects/rocprofiler/bin/rpl_run.sh b/projects/rocprofiler/bin/rpl_run.sh index d70ca45b6a..7945aad9f3 100755 --- a/projects/rocprofiler/bin/rpl_run.sh +++ b/projects/rocprofiler/bin/rpl_run.sh @@ -358,6 +358,10 @@ while [ 1 ] ; do INPUT_FILE="$2" elif [ "$1" = "-o" ] ; then output="$2" + if [[ $output != *.csv ]]; then + echo "error: file name must have .CSV extension" + exit 1 + fi elif [ "$1" = "-d" ] ; then DATA_PATH=$2 elif [ "$1" = "-t" ] ; then