Skip to content

Commit 2ba9f2d

Browse files
iassioursystems-assistant[bot]
authored andcommitted
SWDEV-569101 - increase signal list size to at least
DEBUG_HIP_GRAPH_BATCH_SIZE (#2084) [rocm-systems] ROCm/rocm-systems#2084 (commit 65b769e)
1 parent 63807e4 commit 2ba9f2d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

rocclr/device/rocm/rocvirtual.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,8 @@ hsa_signal_t VirtualGPU::HwQueueTracker::ActiveSignal(hsa_signal_value_t init_va
440440
auto temp_id = (current_id_ + 2) % signal_list_.size();
441441

442442
// If GPU is still busy with processing, then add more signals to avoid more frequent stalls
443-
if (Hsa::signal_load_relaxed(signal_list_[temp_id]->signal_) > 0) {
443+
if ((Hsa::signal_load_relaxed(signal_list_[temp_id]->signal_) > 0) ||
444+
(signal_list_[temp_id]->ts_ == ts)) {
444445
std::unique_ptr<ProfilingSignal> signal(new ProfilingSignal());
445446
if ((signal != nullptr) && CreateSignal(signal.get())) {
446447
// Find valid new index

0 commit comments

Comments
 (0)