[Openmp-commits] [PATCH] D142508: [OpenMP][libomptarget] Fix alignment calculation for mapping struct members.

George Rokos via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Tue Jan 24 15:43:38 PST 2023


grokos added a comment.

In D142508#4078632 <https://reviews.llvm.org/D142508#4078632>, @jdoerfert wrote:

> The struct will have an alignment of 8 then, it will adjust according to members.

Sure, but that's true for the entire struct on the host. If you map it partially on the device, you may break this alignment, i.e. the partially mapped struct may no longer satisfy alignment requirements.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D142508/new/

https://reviews.llvm.org/D142508



More information about the Openmp-commits mailing list