We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63807e4 commit 2ba9f2dCopy full SHA for 2ba9f2d
rocclr/device/rocm/rocvirtual.cpp
@@ -440,7 +440,8 @@ hsa_signal_t VirtualGPU::HwQueueTracker::ActiveSignal(hsa_signal_value_t init_va
440
auto temp_id = (current_id_ + 2) % signal_list_.size();
441
442
// 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) {
+ if ((Hsa::signal_load_relaxed(signal_list_[temp_id]->signal_) > 0) ||
444
+ (signal_list_[temp_id]->ts_ == ts)) {
445
std::unique_ptr<ProfilingSignal> signal(new ProfilingSignal());
446
if ((signal != nullptr) && CreateSignal(signal.get())) {
447
// Find valid new index
0 commit comments