Skip to content

[SYCL] Add a partial profiling workaround for acc devices #9062

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 14, 2023

Conversation

sergey-semenov
Copy link
Contributor

With the recent fixes to command submit profiling info, queue profiling is no longer supported on devices with OpenCL version < 2.1. This primarily affects applications on accelerator devices. The full solution would be to provide a fallback implementation of profiling information that is less precise but does not require querying device time. As a temporary workaround, this patch allows to create an accelerator queue with profiling despite the lack of queue_profiling aspect and instead throw an error if submit profiling info is requested.

With the recent fixes to command submit profiling info, queue profiling
is no longer supported on devices with OpenCL version < 2.1. This
primarily affects applications on accelerator devices. The full solution
would be to provide a fallback implementation of profiling information
that is less precise but does not require querying device time. As a
temporary workaround, this patch allows to create an accelerator queue
with profiling despite the lack of queue_profiling aspect and instead
throw an error if submit profiling info is requested.
@sergey-semenov sergey-semenov requested a review from a team as a code owner April 13, 2023 15:11
@sergey-semenov sergey-semenov temporarily deployed to aws April 13, 2023 15:40 — with GitHub Actions Inactive
@sergey-semenov sergey-semenov temporarily deployed to aws April 13, 2023 16:37 — with GitHub Actions Inactive
Copy link
Contributor

@steffenlarsen steffenlarsen left a comment

Choose a reason for hiding this comment

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

Only small non-blocking nits.

Copy link
Contributor

@steffenlarsen steffenlarsen left a comment

Choose a reason for hiding this comment

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

Looks good!

@sergey-semenov sergey-semenov temporarily deployed to aws April 14, 2023 14:55 — with GitHub Actions Inactive
@sergey-semenov sergey-semenov temporarily deployed to aws April 14, 2023 16:15 — with GitHub Actions Inactive
@sergey-semenov sergey-semenov merged commit 097d21c into intel:sycl Apr 14, 2023
@sergey-semenov sergey-semenov deleted the fpgaprofwa branch April 14, 2023 16:46
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