[Openmp-dev] error: array section does not specify contiguous storage
Alexey Bataev via Openmp-dev
openmp-dev at lists.llvm.org
Sun Sep 29 19:11:35 PDT 2019
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
More information about the Openmp-dev
mailing list