23namespace sham::details {
199 events.consumed =
true;
Class to manage a list of SYCL events.
Class that manages the event state of a SYCL USM buffer.
std::vector< sycl::event > read_events
Vector of events related to read operations on the buffer.
void wait_all(SourceLocation src_loc=SourceLocation{})
Wait for all the buffer accesses to be completed.
last_op
Enum to represent the last operation performed on the buffer.
void write_access(sham::EventList &depends_list, SourceLocation src_loc=SourceLocation{})
Adds events conditioning the validity of a buffer for write access to the dependency list....
bool is_empty()
Check if there if the events lists are empty.
SourceLocation last_access_loc
Source location of the last access to the buffer.
void complete_state(sycl::event e, SourceLocation src_loc=SourceLocation{})
Completes the state of the buffer event handler with the event for which the access was queried.
void filter_events()
Filter the read and write events so that only pending events are stored.
void read_access(sham::EventList &depends_list, SourceLocation src_loc=SourceLocation{})
Adds events conditioning the validity of a buffer for read access to the dependency list....
void complete_state(sham::EventList &events)
Completes the state of the buffer event handler using an EventList.
bool up_to_date_events
Flag to indicate if the buffer access events are up to date.
std::vector< sycl::event > write_events
Vector of events related to write operations on the buffer.
This file contains the class definition for BufferEventHandler.
provide information about the source location