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

(cherry picked from commit 472b3a2)
  • Loading branch information
gmlueck committed Nov 7, 2024
1 parent 6446669 commit e13b4fb
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 e13b4fb

Please sign in to comment.