SWDEV-517481 - Add more restrictions to the queue management (#168)

This commit is contained in:
Andryeyev, German authored and GitHub committed 2025-04-10 21:51:45 +05:30
1 förälder 0d6e554d92
incheckning 4c363df3bf
1 file changed
+2 -1
+2 -1
Visa fil
@@ -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;