SWDEV-559514 - Add queue validation to submitMarker sync path (#1308)

This commit is contained in:
Pengda Xie
2025-11-08 02:21:36 -08:00
committed by GitHub
parent f7ffcd1402
commit 5dd15e22ca
@@ -3912,6 +3912,9 @@ void VirtualGPU::submitMarker(amd::Marker& vcmd) {
if (vcmd.CpuWaitRequested()) {
// It should be safe to call flush directly if there are not pending dispatches without
// HSA signal callback
if (gpu_queue_ == nullptr) {
gpu_queue_ = roc_device_.AcquireActiveNormalQueue();
}
flush(vcmd.GetBatchHead());
} else {
profilingBegin(vcmd);