updated README for plugins

Change-Id: I8875bf8b624c8e09467bcb30e2794bdf41b31872
This commit is contained in:
gobhardw
2023-03-03 12:34:31 +05:30
committed by Ammar ELWazir
parent a5e1069920
commit ef31a96b55
2 changed files with 77 additions and 37 deletions
+13 -5
View File
@@ -1,5 +1,5 @@
#!/bin/bash
CURRENT_DIR="$( dirname -- "$0"; )";
ROCPROFV2_DIR=$(dirname -- $(realpath ${BASH_SOURCE[0]}));
ROCM_DIR=$(dirname -- ${ROCPROFV2_DIR})
RUN_FROM_BUILD=0
@@ -74,8 +74,12 @@ while [ 1 ] ; do
if [ $RUN_FROM_BUILD == 1 ]; then
export ROCPROFILER_METRICS_PATH=$ROCM_DIR/build/counters/derived_counters.xml
TO_CLEAN=no $ROCM_DIR/build.sh
pushd build
./run_tests.sh
if [ "$CURRENT_DIR/build" -ef "./build" ] ; then
./run_tests.sh
else
pushd build
./run_tests.sh
fi
exit 1
fi
elif [[ "$1" = "-mt" || "$1" = "--mem-test" ]] ; then
@@ -87,8 +91,12 @@ while [ 1 ] ; do
elif [[ "$1" = "-ct" || "$1" = "--clean-build-test" ]] ; then
if [ $RUN_FROM_BUILD == 1 ]; then
TO_CLEAN=yes $ROCM_DIR/build.sh
pushd build
./run_tests.sh
if [ "$CURRENT_DIR/build" -ef "./build" ] ; then
./run_tests.sh
else
pushd build
./run_tests.sh
fi
exit 1
fi
elif [[ "$1" = "--install" ]] ; then