Skip to content

Commit

Permalink
Merge pull request #448 from gmlueck/gmlueck/vec-align
Browse files Browse the repository at this point in the history
Limit vec alignment to 64 bytes
  • Loading branch information
gmlueck authored Sep 14, 2023
2 parents 17c8313 + 8d41edc commit 472b3a2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions adoc/chapters/programming_interface.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -17670,6 +17670,15 @@ This is true for both host and device code in order to allow for instances
of the [code]#vec# class template to be passed to SYCL kernel
functions.

In no case, however, is the alignment guaranteed to be greater than 64 bytes.

[NOTE]
====
The alignment guarantee is limited to 64 bytes because some host compilers
(e.g. on Microsoft Windows) limit the maximum alignment of function parameters
to this value.
====


==== Performance note

Expand Down

0 comments on commit 472b3a2

Please sign in to comment.