Skip to content

Commit

Permalink
Merge pull request #512 from AD2605/AD2605/sycl_vec_load_alignment
Browse files Browse the repository at this point in the history
Add Alignment Imposition
  • Loading branch information
gmlueck authored Jan 11, 2024
2 parents e0486e5 + eb64a5c commit f397f88
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions adoc/chapters/acknowledgements.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
* Aidan Belton, Codeplay
* Gordon Brown, Codeplay
* Hugh Delaney, Codeplay
* Atharva Dubey, Codeplay
* Morris Hafner, Codeplay
* Alexander Johnston, Codeplay
* Marios Katsigiannis, Codeplay
Expand Down
4 changes: 2 additions & 2 deletions adoc/chapters/programming_interface.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -17227,15 +17227,15 @@ a@
template <access::address_space AddressSpace, access::decorated IsDecorated>
void load(size_t offset, multi_ptr<const DataT, AddressSpace, IsDecorated> ptr)
----
a@ Loads the values at the address of [code]#ptr# offset in elements of type [code]#DataT# by [code]#NumElements * offset#, into the components of this SYCL [code]#vec#.
a@ Loads [code]#NumElements# elements into the components of this SYCL [code]#vec#. These elements are loaded from consecutive addresses, where the starting address is computed by adding [code]#offset * NumElements * sizeof(DataT)# bytes to the address specified by the [code]#ptr#. The [code]#ptr# must be aligned to [code]#alignof(DataT)#.

a@
[source]
----
template <access::address_space AddressSpace, access::decorated IsDecorated>
void store(size_t offset, multi_ptr<DataT, AddressSpace, IsDecorated> ptr) const
----
a@ Stores the components of this SYCL [code]#vec# into the values at the address of [code]#ptr# offset in elements of type [code]#DataT# by [code]#NumElements * offset#.
a@ Stores [code]#NumElements# components of this SYCL [code]#vec# into consecutive addresses, with the starting address determined by adding [code]#offset * NumElements * sizeof(DataT)# to the address specified by the [code]#ptr#. The [code]#ptr# must be aligned to [code]#alignof(DataT)#.

a@
[source]
Expand Down

0 comments on commit f397f88

Please sign in to comment.