Add a ROCTX test

Change-Id: I90dab2f349ade6cbfc86f0399c8b9ca905de23b3
Bu işleme şunda yer alıyor:
Laurent Morichetti
2022-05-20 23:10:05 -07:00
işlemeyi yapan: Laurent Morichetti
ebeveyn 7ebae10571
işleme 1e7783af58
8 değiştirilmiş dosya ile 113 ekleme ve 6 silme
+12 -2
Dosyayı Görüntüle
@@ -68,6 +68,12 @@ xeval_test() {
}
eval_test() {
bright=$(tput bold)
red=$(tput setaf 1)
green=$(tput setaf 2)
blue=$(tput setaf 4)
normal=$(tput sgr0)
label=$1
cmdline=$2
test_name=$3
@@ -98,9 +104,9 @@ eval_test() {
fi
fi
if [ $is_failed = 0 ] ; then
echo "$test_name: PASSED"
echo "${bright}${blue}$test_name: ${green}PASSED${normal}"
else
echo "$test_name: FAILED"
echo "${bright}${blue}$test_name: ${red}FAILED${normal}"
failed_tests="$failed_tests\n $test_number: $test_name - \"$label\""
test_status=$(($test_status + 1))
fi
@@ -124,6 +130,10 @@ eval_test "standalone HIP MGPU test" "./test/MatrixTranspose_mgpu" MatrixTranspo
# rocTracer/tool is loaded by HSA runtime
export HSA_TOOLS_LIB="$ROCTRACER_LIB_PATH/libroctracer64.so $ROCTRACER_TOOL_PATH/libroctracer_tool.so"
# ROCTX test
export ROCTRACER_DOMAIN="roctx"
eval_test "roctx test" ./test/roctx_test roctx_test_trace
# SYS test
export ROCTRACER_DOMAIN="sys:roctx"
eval_test "tool SYS test" ./test/MatrixTranspose MatrixTranspose_sys_trace