Skip to content

Conversation

aelovikov-intel
Copy link
Contributor

No description provided.

return static_cast<OpenCLType>(x);
} else if constexpr (std::is_same_v<no_ref, half>) {
using OpenCLType = sycl::detail::half_impl::BIsRepresentationT;
// Make it template-param-dependent to compile with incomplete `half`:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is fine, because for this to be instantiated with sycl::half, the caller has to pass it, meaning that caller has to have a definition for it.

@aelovikov-intel aelovikov-intel merged commit 4cf9065 into intel:sycl Sep 12, 2025
44 of 45 checks passed
@aelovikov-intel aelovikov-intel deleted the gen-type-traits branch September 12, 2025 22:34
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