Skip to content

[SYCL] Align nan builtin with the updated specification #12182

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 8 commits into from
Jan 11, 2024

Conversation

aelovikov-intel
Copy link
Contributor

Specification has been changed in
KhronosGroup/SYCL-Docs#519.

I need both calls on the same line.
Copy link
Contributor

github-actions bot commented Dec 18, 2023

✅ With the latest revision this PR passed the Python code formatter.

@aelovikov-intel
Copy link
Contributor Author

@steffenlarsen , this is ready for review.

#else
sycl::marray<uint32_t, 3> ma7{1, 2, 3};
sycl::marray<uint64_t, 3> ma8{1, 2, 3};
#endif
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need this branching? Seems like we make the changes for both preview and main path. We could keep the old marrays for non-preview testing, despite deprecation.

Same question for the other test case.

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.

Remaining comment is a nit, so I'll leave it to the author.

@aelovikov-intel aelovikov-intel merged commit e95bde0 into intel:sycl Jan 11, 2024
@aelovikov-intel aelovikov-intel deleted the nan-builtin branch January 11, 2024 16:36
@coldav
Copy link
Contributor

coldav commented Jan 15, 2024

Hi @aelovikov-intel, I'm not sure if you are aware yet, but this change seems to break SYCL-CTS in math_tests_api (math_builtin_float_double.cpp):

build_sycl_cts/tests/math_builtin_api/math_builtin_float_double.cpp:18869:47: error: no matching function for call to 'nan'
 18869 |         static_assert(std::is_same_v<decltype(sycl::nan(inputData_0)), sycl::marray<double, 2>>,

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.

3 participants