dispatch data th-id, queue-id, kernel-object
Change-Id: Ic5593603c6587cad17be33618d011a9aefc648ab
This commit is contained in:
Executable
+36
@@ -0,0 +1,36 @@
|
||||
#!/bin/sh
|
||||
BIN_DIR=`dirname $0`
|
||||
BIN_DIR=`cd $BIN_DIR; pwd`
|
||||
PKG_DIR=`echo $BIN_DIR | sed "s/\/bin\/*//"`
|
||||
BIN_DIR=$PKG_DIR/bin
|
||||
|
||||
# PATH to custom HSA libs
|
||||
HSA_PATH=$PKG_DIR/lib/hsa
|
||||
|
||||
if [ -z "$1" ] ; then
|
||||
echo "Usage: $0 <cmd line>"
|
||||
else
|
||||
# profiler plugin library
|
||||
test_app=$*
|
||||
|
||||
# paths to ROC profiler and oher libraries
|
||||
export LD_LIBRARY_PATH=$PKG_DIR/lib:$PKG_DIR/tool:$HSA_PATH
|
||||
export PATH=.:$PATH
|
||||
|
||||
# ROC profiler library loaded by HSA runtime
|
||||
export HSA_TOOLS_LIB=librocprofiler64.so.1
|
||||
# tool library loaded by ROC profiler
|
||||
if [ -z $ROCP_TOOL_LIB ] ; then
|
||||
export ROCP_TOOL_LIB=libintercept_test.so
|
||||
fi
|
||||
# enable error messages
|
||||
export HSA_TOOLS_REPORT_LOAD_FAILURE=1
|
||||
export HSA_VEN_AMD_AQLPROFILE_LOG=1
|
||||
export ROCPROFILER_LOG=1
|
||||
# ROC profiler metrics config file
|
||||
unset ROCP_PROXY_QUEUE
|
||||
# ROC profiler metrics config file
|
||||
export ROCP_METRICS=$BIN_DIR/lib/metrics.xml
|
||||
|
||||
LD_PRELOAD=$ROCP_TOOL_LIB $test_app
|
||||
fi
|
||||
Reference in New Issue
Block a user