Don't attempt to reuse the cooperative queue

Change-Id: I0e98e292a562715a7b395118f899af859f3e42bb
此提交包含在:
German Andryeyev committed 2020-04-27 09:18:05 -04:00
1 父節點 d2091cc266
當前提交 082cbfa1f5
1 file changed
+2 -1
+2 -1
查看文件
@@ -1915,7 +1915,8 @@ hsa_queue_t* Device::acquireQueue(uint32_t queue_size_hint, bool coop_queue) {
// If we have reached the max number of queues, reuse an existing queue,
// choosing the one with the least number of users.
if (queuePool_.size() == GPU_MAX_HW_QUEUES) {
// Note: Don't attempt to reuse the cooperative queue, since it's single per device
if (!coop_queue && (queuePool_.size() == GPU_MAX_HW_QUEUES)) {
typedef decltype(queuePool_)::const_reference PoolRef;
auto lowest = std::min_element(queuePool_.begin(), queuePool_.end(),
[] (PoolRef A, PoolRef B) {