Skip to content

Commit 4c363df

Browse files
authored
SWDEV-517481 - Add more restrictions to the queue management (#168)
1 parent 0d6e554 commit 4c363df

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

rocclr/device/rocm/rocvirtual.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1645,7 +1645,8 @@ address VirtualGPU::allocKernelArguments(size_t size, size_t alignment) {
16451645
void VirtualGPU::ReleaseHwQueue() {
16461646
// Try to release normal queue to the pool of active queues
16471647
if (roc_device_.settings().dynamic_queues_ &&
1648-
(priority_ == amd::CommandQueue::Priority::Normal)) {
1648+
(priority_ == amd::CommandQueue::Priority::Normal) &&
1649+
!cooperative_ && (cuMask_.size() == 0)) {
16491650
amd::ScopedLock lock(execution());
16501651
if ((gpu_queue_ != nullptr) && roc_device_.ReleaseActiveNormalQueue(gpu_queue_)) {
16511652
gpu_queue_ = nullptr;

0 commit comments

Comments
 (0)