hsa memcopy tracking

Change-Id: I61bc4ea01a62b587d5941f9d0e9e358a6ed71b5a
This commit is contained in:
Evgeny
2019-01-07 01:53:27 -06:00
parent 64e0325a0d
commit 2b2a279ce9
6 changed files with 158 additions and 47 deletions
+8 -5
View File
@@ -56,11 +56,6 @@ if [ ! -e $ROCP_TOOL_LIB ] ; then
export ROCP_TOOL_LIB=test/libtool.so
fi
export ROCP_KITER=1
export ROCP_DITER=4
export ROCP_INPUT=input1.xml
eval ./test/ctrl
export ROCP_KITER=50
export ROCP_DITER=50
export ROCP_AGENTS=1
@@ -68,6 +63,14 @@ export ROCP_THRS=1
export ROCP_INPUT=input.xml
eval ./test/ctrl
# Memcopies tracking
export ROCP_MCOPY_TRACKING=1
export ROCP_KITER=1
export ROCP_DITER=4
export ROCP_INPUT=input1.xml
eval ./test/ctrl
#valgrind --leak-check=full $tbin
#valgrind --tool=massif $tbin
#ms_print massif.out.<N>
+4
View File
@@ -818,6 +818,8 @@ extern "C" PUBLIC_API void OnLoadToolProp(rocprofiler_settings_t* settings)
}
it = opts.find("sqtt-local");
if (it != opts.end()) { settings->sqtt_local = (it->second == "on"); }
it = opts.find("memcopies");
if (it != opts.end()) { settings->memcopy_tracking = (it->second == "on"); }
}
}
// Enable verbose mode
@@ -835,6 +837,8 @@ extern "C" PUBLIC_API void OnLoadToolProp(rocprofiler_settings_t* settings)
check_env_var("ROCP_SQTT_SIZE", settings->sqtt_size);
// Set SQTT local buffer
check_env_var("ROCP_SQTT_LOCAL", settings->sqtt_local);
// Set memcopies tracking
check_env_var("ROCP_MCOPY_TRACKING", settings->memcopy_tracking);
is_sqtt_local = settings->sqtt_local;