Fixing AMD SYS

Change-Id: I0f47f8e2a4275e0ef0f406e4f3efd9f6c2c4acd3
This commit is contained in:
Ammar ELWazir
2023-07-04 18:22:43 +00:00
parent 02fbd5887b
commit 40e267fb34
+2
View File
@@ -493,6 +493,7 @@ void wait_for_amdsys() {
for ([[maybe_unused]] rocprofiler_buffer_id_t buffer_id : buffer_ids) {
CHECK_ROCPROFILER(rocprofiler_flush_data(session_id, buffer_id));
}
rocprofiler::TraceBufferBase::FlushAll();
}
break;
}
@@ -506,6 +507,7 @@ void wait_for_amdsys() {
for ([[maybe_unused]] rocprofiler_buffer_id_t buffer_id : buffer_ids) {
CHECK_ROCPROFILER(rocprofiler_flush_data(session_id, buffer_id));
}
rocprofiler::TraceBufferBase::FlushAll();
}
amd_sys_handler.exchange(false, std::memory_order_release);
flag = true;