Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion projects/clr/rocclr/device/rocm/rocvirtual.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,8 @@ hsa_signal_t VirtualGPU::HwQueueTracker::ActiveSignal(hsa_signal_value_t init_va
auto temp_id = (current_id_ + 2) % signal_list_.size();

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