Skip to content

Add const char* overloads to sycl::nan to align with std::nan#999

Open
ssam18 wants to merge 1 commit intoKhronosGroup:mainfrom
ssam18:nan-char-overloads
Open

Add const char* overloads to sycl::nan to align with std::nan#999
ssam18 wants to merge 1 commit intoKhronosGroup:mainfrom
ssam18:nan-char-overloads

Conversation

@ssam18
Copy link
Copy Markdown

@ssam18 ssam18 commented Apr 8, 2026

Closes #842. Currently sycl::nan only accepts unsigned integer nancode arguments (inherited from OpenCL), while std::nan/std::nanf/std::nanl take a const char*. This adds scalar overloads for float, double, and half, plus std::array<const char*, N> overloads for vec and marray where the element type T must be explicitly specified since it can't be deduced from the argument.

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.

Align sycl::nan with std::nan

1 participant