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

Clarify "vec" DataT #673

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions adoc/chapters/programming_interface.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -17727,8 +17727,8 @@ a@
----
byte
----
a@ An unsigned 8-bit integer. This is deprecated in SYCL 2020 since {cpp17}
[code]#std::byte# can be used instead.
a@ An alias to [code]#std::uint8_t#. This is deprecated in SYCL 2020 since
{cpp17} [code]#std::byte# can be used instead.

a@
[source]
Expand Down Expand Up @@ -17758,10 +17758,12 @@ from a swizzled set of component elements.

The [code]#vec# class is templated on its number of elements and its element
type.
The number of elements parameter, _NumElements_, can be one of: 1, 2, 3, 4, 8 or 16.
The number of elements parameter, [code]#NumElements#, must be one of: 1, 2, 3,
4, 8 or 16.
Any other value shall produce a compilation failure.
The element type parameter, _DataT_, must be one of the basic scalar types
supported in device code.
The element type parameter, [code]#DataT#, must be the cv-unqualified version of
one of the following: one of the built-in scalar data types listed in
<<subsec:scalartypes>>, [code]#half#, or [code]#sycl::byte#.

The SYCL [code]#vec# class template provides interoperability with the
underlying vector type defined by [code]#vector_t# which is available only when
Expand Down
Loading