diff --git a/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/runtime.cpp b/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/runtime.cpp index 78224e58ae..8e10b7be74 100644 --- a/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/runtime.cpp +++ b/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/runtime.cpp @@ -2326,7 +2326,7 @@ Runtime::AsyncEventsControl::AsyncEventsControl(AsyncEventsInfo *asyncInfo) if (err != HSA_STATUS_SUCCESS) throw AMD::hsa_exception(HSA_STATUS_ERROR, "Failed to allocate async handler signal"); - thread_ = os::CreateThread(AsyncEventsLoop, asyncInfo, 0, priority); + asyncInfo->control.thread_ = os::CreateThread(AsyncEventsLoop, asyncInfo, 0, priority); if (!asyncInfo->control.thread_) throw AMD::hsa_exception(HSA_STATUS_ERROR, "Failed to initialize async handler thread"); @@ -2389,7 +2389,7 @@ hsa_status_t Runtime::Load() { } asyncSignals_.reset(new AsyncEventsInfo(false)); - asyncExceptions_.reset(new AsyncEventsInfo(true)); + asyncExceptions_.reset(new AsyncEventsInfo(g_use_interrupt_wait)); // Setup system clock frequency for the first time. if (sys_clock_freq_ == 0) {