Skip to content

[SYCL][DOC] New device aspect: ext_oneapi_per_event_profiling#22595

Open
slawekptak wants to merge 1 commit into
intel:syclfrom
slawekptak:ext_reusable_events_spec_profiling_device_aspect
Open

[SYCL][DOC] New device aspect: ext_oneapi_per_event_profiling#22595
slawekptak wants to merge 1 commit into
intel:syclfrom
slawekptak:ext_reusable_events_spec_profiling_device_aspect

Conversation

@slawekptak

Copy link
Copy Markdown
Contributor

Replace the platform descriptor with a new device aspect, to indicate if a device supports per-event profiling.

@slawekptak slawekptak requested a review from Copilot July 10, 2026 08:49
@slawekptak slawekptak requested a review from a team as a code owner July 10, 2026 08:49

Copilot AI 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.

Pull request overview

This PR updates the proposed sycl_ext_oneapi_reusable_events extension documentation to replace a platform info descriptor with a device aspect for advertising per-event profiling support.

Changes:

  • Replaces the event_profiling platform info descriptor with aspect::ext_oneapi_per_event_profiling.
  • Updates the documented error/feature-availability conditions to be based on device aspects (including “all devices in a context” for make_event(ctxt, ...)).
  • Updates the examples and backend mapping notes to use the new aspect-based capability check.

Comment on lines 139 to +141
`PropertyListT` contains an `enable_profiling` property that enables profiling
timestamps and if the platform containing `ctxt` does not support creation of
such events as reported by the `event_profiling` information descriptor.
timestamps and if not all devices in `ctxt` have
`aspect::ext_oneapi_per_event_profiling`.
for (sycl::device dev : ctxt.get_devices()) {
if (!dev.has(sycl::aspect::ext_oneapi_per_event_profiling)) {
std::cout << "Cannot time kernels without per-event profiling support\n";
return;
Replace the platform descriptor with a new device aspect,
to indicate if a device supports per-event profiling.
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