Skip to content

Commit 297f2f7

Browse files
committed
Fix unknown queue error
Signed-off-by: Carsten Uphoff <carsten.uphoff@intel.com>
1 parent 377769e commit 297f2f7

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

interfaces/sycl/DeviceCircularQueueBuffer.cpp

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,15 @@ bool DeviceCircularQueueBuffer::exists(sycl::queue *queuePtr) {
155155
}
156156
}
157157

158-
return isDefaultQueue || isGenericQueue || isReservedQueue;
158+
bool isExternalQueue = false;
159+
for (auto& queue : externalQueues) {
160+
if (queuePtr == queue) {
161+
isExternalQueue = true;
162+
break;
163+
}
164+
}
165+
166+
return isDefaultQueue || isGenericQueue || isReservedQueue || isExternalQueue;
159167
}
160168

161169
} // namespace device

0 commit comments

Comments
 (0)