SWDEV-255637 support for hsa_amd_memory_async_copy_rect

Change-Id: I5db6484c30427712c56b59862e748118a3f079c2
This commit is contained in:
Rachida Kebichi
2021-03-05 14:24:27 -05:00
parent 3018150e53
commit 06271806d4
2 changed files with 10 additions and 1 deletions
+2
View File
@@ -315,6 +315,7 @@ constexpr roctracer::TraceBuffer<hsa_api_trace_entry_t>::flush_prm_t hsa_flush_p
roctracer::TraceBuffer<hsa_api_trace_entry_t>* hsa_api_trace_buffer = NULL;
// HSA API callback function
void hsa_api_callback(
uint32_t domain,
uint32_t cid,
@@ -326,6 +327,7 @@ void hsa_api_callback(
if (data->phase == ACTIVITY_API_PHASE_ENTER) {
hsa_begin_timestamp = timer->timestamp_fn_ns();
} else {
const timestamp_t end_timestamp = (cid == HSA_API_ID_hsa_shut_down) ? hsa_begin_timestamp : timer->timestamp_fn_ns();
hsa_api_trace_entry_t* entry = hsa_api_trace_buffer->GetEntry();
entry->cid = cid;