Files
rocm-systems/projects/rocprofiler/test/run.sh
T
Evgeny 80d462a8c2 resources releasing; metrics
[ROCm/rocprofiler commit: 79510b8c6c]
2018-02-01 14:52:21 -06:00

37 lines
930 B
Bash
Executable File

#!/bin/sh
test_bin_dflt=./test/ctrl
# paths to ROC profiler and oher libraries
export LD_LIBRARY_PATH=$PWD
# enable error messages logging to '/tmp/rocprofiler_log.txt'
export ROCPROFILER_LOG=1
# ROC profiler library loaded by HSA runtime
export HSA_TOOLS_LIB=librocprofiler64.so
# tool library loaded by ROC profiler
export ROCP_TOOL_LIB=test/libtool.so
# enable HSA dispatch intercepting by ROC profiler
export ROCP_HSA_INTERCEPT=1
# ROC profiler metrics config file
unset ROCP_PROXY_QUEUE
# ROC profiler metrics config file
export ROCP_METRICS=metrics.xml
# input file for the tool library
export ROCP_INPUT=input.xml
# output directory for the tool library, for metrics results file 'results.txt'
# and SQTT trace files 'thread_trace.se<n>.out'
export ROCP_OUTPUT_DIR=./RESULTS
if [ -n "$1" ] ; then
tbin="$*"
else
tbin=$test_bin_dflt
fi
echo "Run $tbin"
export ROCP_KITER=100
export ROCP_DITER=100
eval $tbin
exit 0