[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:08:24 PDT 2019


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?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/openmp-dev/attachments/20190930/27e65f44/attachment.html>


More information about the Openmp-dev mailing list