hip-vdi changes

Cette révision appartient à :
Evgeny
2019-10-25 00:53:26 -05:00
Parent 064a7021a0
révision eb4bf2dac6
5 fichiers modifiés avec 17 ajouts et 7 suppressions
+3
Voir le fichier
@@ -291,6 +291,8 @@ void activity_callback(const char* begin, const char* end, void* arg) {
// Init tracing routine
void init_tracing() {
std::cout << "# INIT #############################" << std::endl << std::flush;
// roctracer properties
roctracer_set_properties(ACTIVITY_DOMAIN_HIP_API, NULL);
// Allocating tracing pool
roctracer_properties_t properties{};
properties.buffer_size = 0x1000;
@@ -320,6 +322,7 @@ void stop_tracing() {
std::cout << "# STOP #############################" << std::endl << std::flush;
}
#else
void init_tracing() {}
void start_tracing() {}
void stop_tracing() {}
#endif
+8 -2
Voir le fichier
@@ -25,7 +25,7 @@
# enable tools load failure reporting
export HSA_TOOLS_REPORT_LOAD_FAILURE=1
# paths to ROC profiler and oher libraries
export LD_LIBRARY_PATH=$PWD
export LD_LIBRARY_PATH=$PWD:/opt/rocm/hip/lib
# test filter input
test_filter=-1
@@ -33,6 +33,12 @@ if [ -n "$1" ] ; then
test_filter=$1
fi
# debugger
debugger=""
if [ -n "$2" ] ; then
debugger=$2
fi
# test check routin
test_status=0
test_runnum=0
@@ -46,7 +52,7 @@ eval_test() {
if [ $test_filter = -1 -o $test_filter = $test_number ] ; then
echo "$label: \"$cmdline\""
test_runnum=$((test_runnum + 1))
eval "$cmdline"
eval "$debugger $cmdline"
if [ $? != 0 ] ; then
echo "$label: FAILED"
test_status=$(($test_status + 1))
+2 -2
Voir le fichier
@@ -680,6 +680,8 @@ extern "C" PUBLIC_API bool OnLoad(HsaApiTable* table, uint64_t runtime_version,
hcc_activity_file_handle = open_output_file(output_prefix, "hcc_ops_trace.txt");
fprintf(stdout, " HIP-trace()\n"); fflush(stdout);
// roctracer properties
roctracer_set_properties(ACTIVITY_DOMAIN_HIP_API, (void*)mark_api_callback);
// Allocating tracing pool
roctracer_properties_t properties{};
properties.buffer_size = 0x80000;
@@ -688,8 +690,6 @@ extern "C" PUBLIC_API bool OnLoad(HsaApiTable* table, uint64_t runtime_version,
ROCTRACER_CALL(roctracer_enable_domain_activity(ACTIVITY_DOMAIN_HCC_OPS));
ROCTRACER_CALL(roctracer_enable_domain_activity(ACTIVITY_DOMAIN_HIP_API));
ROCTRACER_CALL(roctracer_enable_domain_callback(ACTIVITY_DOMAIN_HIP_API, hip_api_callback, NULL));
roctracer_set_properties(ACTIVITY_DOMAIN_HIP_API, (void*)mark_api_callback);
}
const char* ctrl_str = getenv("ROCP_CTRL_RATE");