-
Notifications
You must be signed in to change notification settings - Fork 745
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SYCL] Native event for default-ctored sycl::event has to be in COMPL…
…ETE state (#7148) Per SYCL 2020 for event(): > Constructs an event that is immediately ready. The event has no > dependencies and no associated commands. Waiting on this event will > return immediately and querying its status will return > info::event_command_status::complete. Modify piEventCreate to create an event in such a state. There is a more general problem that isn't addressed here: auto e = q.submit(... h.host_task(...) ..) This event would be a host one and we assert that no get_native could be called on it (see existing sycl::detail::getImplBackend). If we will ever want to support such scenario we'd need to implement some tracking of host/backed events in the SYCL RT and keep updating the latter whenever the host one changes the state. Alternatively, SYCL spec could be updated to prohibit such scenario or specify that such event has no native counterpart.
- Loading branch information
1 parent
93d747f
commit 7202173
Showing
3 changed files
with
19 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters