[Openmp-commits] [PATCH] D44186: [OpenMP] New clang/libomptarget map interface: remove translation code
Jonas Hahnfeld via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Wed Mar 7 09:03:54 PST 2018
Hahnfeld added inline comments.
Comment at: libomptarget/src/omptarget.cpp:197-199
+ // Adjust for proper alignment if this is a combined entry (for structs).
+ // Look at the next argument - if that is MEMBER_OF this one, then this one
+ // is a combined entry.
> Hahnfeld wrote:
> > I thought this is now done in the compiler?
> No, it's not. The compiler could take care of this issue, but it's not its job. The compiler should just inform the runtime that we requested a mapping starting from some address. If `CUDA memcpy`, for instance, has some requirements regarding the alignment of addresses, that's not the compiler's business. The compiler doesn't and shouldn't care about what happens at the plugin level of libomptarget.
If that's specific to CUDA, why does it happen in the plugin agnostic part of libomptarget?
More information about the Openmp-commits