Skip to content

Conversation

@againull
Copy link
Contributor

@againull againull commented Jun 13, 2025

Currently profiling for host tasks is always enabled. Track profiling info only if the submitted queue (where host task is submitted) has profiling enabled.

This is a bug, according to SYCL specification 4.6.6. Event class:
"Calls to get_profiling_info must throw an exception with the errc::invalid error code if the SYCL queue which submitted the command group this SYCL event is associated with was not constructed with the property::queue::enable_profiling property."

This can be considered as performance bug as well.

…ng enabled

Currently profiling for host tasks is tracked no matter what. Track it
only if the queue, where host task is submitted, has profiling enabled.
@againull againull marked this pull request as ready for review June 13, 2025 22:17
@againull againull requested a review from a team as a code owner June 13, 2025 22:17
@againull againull requested a review from aelovikov-intel June 13, 2025 22:17
Copy link
Contributor

@aelovikov-intel aelovikov-intel left a comment

Choose a reason for hiding this comment

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

Do you know if this was a bug or a case of changing requirements/design decisions?

@againull
Copy link
Contributor Author

Do you know if this was a bug or a case of changing requirements/design decisions?

I believe this is a bug, according to spec 4.6.6. Event class:

Calls to get_profiling_info must throw an exception with the errc::invalid error code if the SYCL queue which submitted the command group this SYCL event is associated with was not constructed with the property::queue::enable_profiling property.

Also this can be considered as performance bug as well.

@againull againull requested a review from a team as a code owner June 17, 2025 19:55
@againull againull requested a review from Bensuo June 17, 2025 19:55
@againull againull removed request for a team and Bensuo June 17, 2025 22:12
@againull
Copy link
Contributor Author

syclcompat/kernel/kernel_win.cpp failure is unrelated and known: #17561

@againull againull merged commit 451ecfb into intel:sycl Jun 18, 2025
24 of 25 checks passed
uditagarwal97 pushed a commit that referenced this pull request Jun 24, 2025
@againull againull deleted the host_prof branch September 30, 2025 16:53
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