[PATCH] D79972: [OpenMP5.0] map item can be non-contiguous for target update
Chi Chun Chen via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jun 22 15:35:52 PDT 2020
cchen added a comment.
In D79972#2104854 <https://reviews.llvm.org/D79972#2104854>, @RaviNarayanaswamy wrote:
> How do you plan to support
> #pragma omp target update to (arr[1:2][1:2][0:2], x, b[1:5][0:2])
> Are you going to split this into 3 updates since your are using the arg fields.
There's only one runtime call for your case. and args will be { descriptor_1, x, descriptor_2 }, where descriptor_1 will be { { 1, 2, 80 }, { 1, 2, 20 }, { 0, 2, 4 } }, descriptor_2 will be { { 1, 5, 16 }, { 0, 2, 4 } }. There's analysis in Sema that detecting if the item is non-contiguous or not and codegen only generate descriptor for non-contiguous item.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D79972/new/
https://reviews.llvm.org/D79972
More information about the cfe-commits
mailing list