<div><div dir="auto">No way to map this array of pointers then?</div></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Sep 30, 2019 at 11:11 Alexey Bataev <<a href="mailto:a.bataev@hotmail.com">a.bataev@hotmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Yes, because this is not contiguous array section.<br>
<br>
Best regards,<br>
Alexey Bataev<br>
<br>
> 29 сент. 2019 г., в 22:08, Itaru Kitayama via Openmp-dev <<a href="mailto:openmp-dev@lists.llvm.org" target="_blank">openmp-dev@lists.llvm.org</a>> написал(а):<br>
> <br>
> <br>
> I thought the code like below should compile with Clang:<br>
>         <br>
>         int **p;<br>
>         p = new int*[1024];<br>
>         for (int i=0;i<1024;i++)<br>
>                 p[i] = new int[1024];<br>
> #pragma omp target parallel for map(p[0:1024][0:1024]) reduction(+: sum)<br>
> <br>
> ... but I get a build-time error. Is this expected even in the recent trunk?<br>
> _______________________________________________<br>
> Openmp-dev mailing list<br>
> <a href="mailto:Openmp-dev@lists.llvm.org" target="_blank">Openmp-dev@lists.llvm.org</a><br>
> <a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/openmp-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/openmp-dev</a><br>
</blockquote></div></div>