Skip to content
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

[SYCL] Return the correct sycl::errc in case of invalid sycl::reqd_work_group_size #10093

Merged

Conversation

dm-vodopyanov
Copy link
Contributor

According to SYCL 2020,

If a kernel is decorated with this attribute and then submitted to a
device that does not support the work group size, the implementation must throw a synchronous exception with the errc::kernel_not_supported error code.

This patch fixes sycl::errc in such case: it returned errc::nd_range, now it returns errc::kernel_not_supported.

…rk_group_size

According to SYCL 2020,

> If a kernel is decorated with this attribute and then submitted to a
device that does not support the work group size, the implementation
must throw a synchronous exception with the `errc::kernel_not_supported`
error code.

This patch fixes sycl::errc in such case: it returned `errc::nd_range`,
now it returns `errc::kernel_not_supported`.
@dm-vodopyanov dm-vodopyanov requested a review from a team as a code owner June 27, 2023 14:18
@dm-vodopyanov dm-vodopyanov temporarily deployed to aws June 27, 2023 14:36 — with GitHub Actions Inactive
@dm-vodopyanov dm-vodopyanov temporarily deployed to aws June 27, 2023 15:27 — with GitHub Actions Inactive
@dm-vodopyanov dm-vodopyanov temporarily deployed to aws June 28, 2023 11:47 — with GitHub Actions Inactive
@dm-vodopyanov dm-vodopyanov temporarily deployed to aws June 28, 2023 12:49 — with GitHub Actions Inactive
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