Skip to content

Commit d3c969d

Browse files
committed
add comment
1 parent bdd9ab5 commit d3c969d

File tree

1 file changed

+2
-0
lines changed
  • unified-runtime/source/adapters/opencl

1 file changed

+2
-0
lines changed

unified-runtime/source/adapters/opencl/queue.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ struct ur_queue_handle_t_ : ur::opencl::handle_base {
5959

6060
uint32_t getReferenceCount() const noexcept { return RefCount; }
6161

62+
// Stores last event for in-order queues. Has no effect if queue is Out Of
63+
// Order. The last event is used to implement UR_QUEUE_INFO_EMPTY query.
6264
ur_result_t storeLastEvent(ur_event_handle_t Event) {
6365
if (!IsInOrder) {
6466
return UR_RESULT_SUCCESS;

0 commit comments

Comments
 (0)