[PATCH] D108132: Add implicit map for a list item appears in a reduction clause.
Alexey Bataev via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 16 09:02:03 PDT 2021
ABataev added a comment.
In D108132#2947080 <https://reviews.llvm.org/D108132#2947080>, @jyu2 wrote:
>>> I am not sure I can do that. Do you mean when generate map adding coding code to look though reduction clause and generate map for it?
>
>
>
>> Yes, exactly.
>
> We are missing mappable checking for example:
>
> #pragma omp target parallel for reduction(task, +: b[0:2][2:4][1])
>
> In this, we should not add map clause, since the section is not contiguous storage.
.
OK, and what's the problem to check for this in codegen? Also, we can map non-contiguous storage, at least in some cases.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D108132/new/
https://reviews.llvm.org/D108132
More information about the cfe-commits
mailing list