This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [gomp4.1] Handle linear clause on worksharing loop
- From: Ilya Verbin <iverbin at gmail dot com>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 23 Jun 2015 14:06:27 +0300
- Subject: Re: [gomp4.1] Handle linear clause on worksharing loop
- Authentication-results: sourceware.org; auth=none
- References: <20150618131521 dot GZ10247 at tucnak dot redhat dot com>
On Thu, Jun 18, 2015 at 15:15:21 +0200, Jakub Jelinek wrote:
> This patch adds support for linear clause on OpenMP 4.1 worksharing loops.
>
> 2015-06-18 Jakub Jelinek <jakub@redhat.com>
>
> * gimplify.c (gimplify_scan_omp_clauses): For linear clause
> on worksharing loop combined with parallel add shared clause
> on the parallel.
> * omp-low.c (lower_rec_input_clauses): Set lastprivate_firstprivate
> flag for linear that needs copyin and copyout.
> (expand_omp_for_generic, expand_omp_for_static_nochunk,
> expand_omp_for_static_chunk): Handle linear clauses on worksharing
> loop.
> (lower_omp_for): Adjust OMP_CLAUSE_DECL and OMP_CLAUSE_LINEAR_STEP
> so that expand_omp_for_* can use it during expansion for linear
> adjustments.
> gcc/c-family/
> * c-omp.c (c_omp_split_clauses): Fix up a comment. Put
> OMP_CLAUSE_LINEAR on OMP_FOR if not combined with OMP_SIMD.
> libgomp/
> * testsuite/libgomp.c/pr66199-3.c: New test.
> * testsuite/libgomp.c/pr66199-4.c: New test.
> * testsuite/libgomp.c/linear-1.c: New test.
> * testsuite/libgomp.c/linear-2.c: New test.
> * testsuite/libgomp.c++/linear-1.C: New test.
> * testsuite/libgomp.c++/linear-2.C: New test.
Have you seen this (using mic emul)?
FAIL: libgomp.c/linear-2.c execution test
FAIL: libgomp.c++/linear-2.C execution test
-- Ilya