Skip to content

Commit

Permalink
rocr: try DefaultSignal if interrupt is disabled
Browse files Browse the repository at this point in the history
Reviewed-by: Shane Xiao <[email protected]>
Change-Id: I5d3a3813f56990f3aca61be23215faeb0a9629cb
Signed-off-by: Flora Cui <[email protected]>
  • Loading branch information
Flora Cui committed Jan 2, 2025
1 parent 2d40493 commit 2cc279d
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions runtime/hsa-runtime/core/runtime/amd_blit_sdma.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
#include "core/inc/sdma_registers.h"
#include "core/inc/signal.h"
#include "core/inc/interrupt_signal.h"
#include "core/inc/default_signal.h"

namespace rocr {
namespace AMD {
Expand Down Expand Up @@ -204,8 +205,13 @@ hsa_status_t BlitSdma<RingIndexTy, HwIndexMonotonic, SizeToCountOffset, useGCR>:
cached_reserve_index_ = *reinterpret_cast<RingIndexTy*>(queue_resource_.Queue_write_ptr);
cached_commit_index_ = cached_reserve_index_;

signals_[0].reset(new core::InterruptSignal(0));
signals_[1].reset(new core::InterruptSignal(0));
if (core::g_use_interrupt_wait) {
signals_[0].reset(new core::InterruptSignal(0));
signals_[1].reset(new core::InterruptSignal(0));
} else {
signals_[0].reset(new core::DefaultSignal(0));
signals_[1].reset(new core::DefaultSignal(0));
}

max_single_linear_copy_size_ = linear_copy_size_override;

Expand Down

0 comments on commit 2cc279d

Please sign in to comment.