You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[SYCL] Discard events created with enqueue function submission (#14224)
This patch makes the [enqueue free
functions](https://github.com/intel/llvm/blob/sycl/sycl/doc/extensions/experimental/sycl_ext_oneapi_enqueue_functions.asciidoc)
create discarded events when they do not return events. This allows
calls to the backend to pass `nullptr` when enqueuing the functions,
avoiding the creation of native events. This only happens under certain
scenarios and currently only applies to in-order queues.
However, in-order queues relies on knowing the last event when enqueuing
`host_task` commands. To address this case, the `host_task` will insert
a barrier when the last event was discarded and use that event for
synchronization instead. This case also applies to discarded events
resulting from the use of the
[sycl_ext_oneapi_discard_queue_events](https://github.com/intel/llvm/blob/sycl/sycl/doc/extensions/supported/sycl_ext_oneapi_discard_queue_events.asciidoc)
extension.
---------
Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
0 commit comments