Skip to content

[SYCL] Make ipc::event::put() optional - #22845

Open
againull wants to merge 2 commits into
intel:syclfrom
againull:ipc_event_optional_put
Open

[SYCL] Make ipc::event::put() optional#22845
againull wants to merge 2 commits into
intel:syclfrom
againull:ipc_event_optional_put

Conversation

@againull

@againull againull commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

put() is already specified as optional for ipc::memory and ipc::physical_memory, so align specification and implementation of ipc::event to have same behaviour.

Cache the exported IPC event handle on event_impl the first time ipc::event::get() is called, and release it in ~event_impl via urIPCPutEventHandleExp. This makes calling ipc::event::put() optional. ipc::event::put() becomes a no-op.

Assisted-By: Claude

againull added 2 commits July 30, 2026 14:56
Align the ipc::event put() wording with ipc::memory and
ipc::physical_memory: the resources associated with the handle are
automatically deallocated when the event object is destroyed, so calling
put() is not strictly necessary. Remove the note requiring a put() call for
each handle received from get().

Assisted-By: Claude
`put()` is already specified as optional for ipc::memory and ipc::physical_memory,
so align specification and implementation of `ipc::event` to have same
behaviour.

Cache the exported IPC event handle on event_impl the first time
ipc::event::get() is called, and release it in ~event_impl via
urIPCPutEventHandleExp. This makes calling ipc::event::put() optional.
ipc::event::put() becomes a no-op.

Assisted-By: Claude
@againull
againull requested review from a team as code owners July 31, 2026 14:44
@againull
againull requested a review from sergey-semenov July 31, 2026 14:44

@gmlueck gmlueck left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Spec changes LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants