From f0c56c1305df4c751eadf197edf46d9ef6f876ef Mon Sep 17 00:00:00 2001 From: Evgeny Date: Mon, 4 Feb 2019 18:36:40 -0600 Subject: [PATCH] rocprof: hip trace option Change-Id: Iafc1939bc2ec2bad820f5406bcf2afb8a0b4cdc2 [ROCm/rocprofiler commit: cf8b021a55cb5a39a5356c0b674ecc67dea675a3] --- projects/rocprofiler/bin/rpl_run.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/projects/rocprofiler/bin/rpl_run.sh b/projects/rocprofiler/bin/rpl_run.sh index f7437dac37..adefad73e4 100755 --- a/projects/rocprofiler/bin/rpl_run.sh +++ b/projects/rocprofiler/bin/rpl_run.sh @@ -142,6 +142,7 @@ usage() { echo "" echo " --stats - generating kernel executino stats" echo " --hsa-trace - to trace HSA, generates API execution stats and JSON file viewable in chrome tracing" + echo " --hip-trace - to trace HIP, generates API execution stats and JSON file viewable in chrome tracing" echo "" echo "Configuration file:" echo " You can set your parameters defaults preferences in the configuration file 'rpl_rc.xml'. The search path sequence: .:${HOME}:" @@ -291,6 +292,10 @@ while [ 1 ] ; do export ROCP_TIMESTAMP_ON=1 GEN_STATS=1 HSA_TRACE=1 + elif [ "$1" = "--hip-trace" ] ; then + ARG_VAL=0 + GEN_STATS=1 + HIP_TRACE=1 elif [ "$1" = "--verbose" ] ; then ARG_VAL=0 export ROCP_VERBOSE_MODE=1