From c50f85df205033136f848d75a1eaed3d8ec4796d Mon Sep 17 00:00:00 2001 From: "Andryeyev, German" Date: Thu, 10 Apr 2025 12:21:45 -0400 Subject: [PATCH] SWDEV-517481 - Add more restrictions to the queue management (#168) [ROCm/clr commit: 4c363df3bfdf300a0088aa0f38dcbb06aad91838] --- projects/clr/rocclr/device/rocm/rocvirtual.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/projects/clr/rocclr/device/rocm/rocvirtual.cpp b/projects/clr/rocclr/device/rocm/rocvirtual.cpp index 3ad0098bab..71866ea76d 100644 --- a/projects/clr/rocclr/device/rocm/rocvirtual.cpp +++ b/projects/clr/rocclr/device/rocm/rocvirtual.cpp @@ -1645,7 +1645,8 @@ address VirtualGPU::allocKernelArguments(size_t size, size_t alignment) { void VirtualGPU::ReleaseHwQueue() { // Try to release normal queue to the pool of active queues if (roc_device_.settings().dynamic_queues_ && - (priority_ == amd::CommandQueue::Priority::Normal)) { + (priority_ == amd::CommandQueue::Priority::Normal) && + !cooperative_ && (cuMask_.size() == 0)) { amd::ScopedLock lock(execution()); if ((gpu_queue_ != nullptr) && roc_device_.ReleaseActiveNormalQueue(gpu_queue_)) { gpu_queue_ = nullptr;