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

Add tests for SYCL_EXTERNAL #711

Merged
merged 3 commits into from
Jun 21, 2023
Merged

Conversation

kopylovanat
Copy link
Contributor

Add tests for SYCL_EXTERNAL according to test plan.

@kopylovanat kopylovanat requested a review from a team as a code owner June 15, 2023 08:55
@kopylovanat
Copy link
Contributor Author

DPCPP version needs a bump for CI to pass.

@bader bader merged commit d9afe7a into KhronosGroup:SYCL-2020 Jun 21, 2023
8 checks passed
Comment on lines +74 to +80
template <sycl::aspect aspect>
[[sycl::device_has(aspect)]] SYCL_EXTERNAL [[noreturn]] void
between_aspects_device(const accT& acc);
template <>
SYCL_EXTERNAL void between_aspects_device<sycl::aspect::cpu>(const accT& acc) {
acc[0] = value;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this is UB - we can't return normally from a function with [[noreturn]] attribute. See also https://godbolt.org/z/fPTcnKaoT.

Copy link
Contributor

Choose a reason for hiding this comment

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

@aelovikov-intel, I opened #780 to fix this issue.

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.

4 participants