[Openmp-dev] error: array section does not specify contiguous storage

Itaru Kitayama via Openmp-dev openmp-dev at lists.llvm.org
Sun Sep 29 19:18:06 PDT 2019


No way to map this array of pointers then?

On Mon, Sep 30, 2019 at 11:11 Alexey Bataev <a.bataev at hotmail.com> wrote:

> Yes, because this is not contiguous array section.
>
> Best regards,
> Alexey Bataev
>
> > 29 сент. 2019 г., в 22:08, Itaru Kitayama via Openmp-dev <
> openmp-dev at lists.llvm.org> написал(а):
> >
> > 
> > I thought the code like below should compile with Clang:
> >
> >         int **p;
> >         p = new int*[1024];
> >         for (int i=0;i<1024;i++)
> >                 p[i] = new int[1024];
> > #pragma omp target parallel for map(p[0:1024][0:1024]) reduction(+: sum)
> >
> > ... but I get a build-time error. Is this expected even in the recent
> trunk?
> > _______________________________________________
> > Openmp-dev mailing list
> > Openmp-dev at lists.llvm.org
> > https://lists.llvm.org/cgi-bin/mailman/listinfo/openmp-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/openmp-dev/attachments/20190930/7dc6aab4/attachment.html>


More information about the Openmp-dev mailing list