This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH 7/n] OpenMP 4.0 offloading infrastructure: testsuite
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Ilya Verbin <iverbin at gmail dot com>
- Cc: gcc-patches at gcc dot gnu dot org, Bernd Schmidt <bernds at codesourcery dot com>, Thomas Schwinge <thomas at codesourcery dot com>, Kirill Yukhin <kirill dot yukhin at gmail dot com>, Andrey Turetskiy <andrey dot turetskiy at gmail dot com>
- Date: Fri, 17 Oct 2014 17:34:06 +0200
- Subject: Re: [PATCH 7/n] OpenMP 4.0 offloading infrastructure: testsuite
- Authentication-results: sourceware.org; auth=none
- References: <20141015150543 dot GR10376 at tucnak dot redhat dot com> <20141015152837 dot GC46277 at msticlxl57 dot ims dot intel dot com> <20141015153518 dot GS10376 at tucnak dot redhat dot com> <20141017140211 dot GA28310 at msticlxl57 dot ims dot intel dot com> <20141017141455 dot GY10376 at tucnak dot redhat dot com> <20141017145817 dot GB28310 at msticlxl57 dot ims dot intel dot com> <20141017151054 dot GC10376 at tucnak dot redhat dot com> <20141017151731 dot GC28310 at msticlxl57 dot ims dot intel dot com> <20141017151838 dot GD10376 at tucnak dot redhat dot com> <20141017152926 dot GD28310 at msticlxl57 dot ims dot intel dot com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Fri, Oct 17, 2014 at 07:29:26PM +0400, Ilya Verbin wrote:
> On 17 Oct 17:18, Jakub Jelinek wrote:
> > On Fri, Oct 17, 2014 at 07:17:31PM +0400, Ilya Verbin wrote:
> > > On 17 Oct 17:10, Jakub Jelinek wrote:
> > > > Well, there is no need to remove them, just the " || (f && !omp_is_initial_device ())"
> > > > should be dropped from target regions without device (d) on them.
> > > > Where there is no f && guard, the condition should stay.
> > > > Do you agree?
> > >
> > > Yes, should I re-post the patch?
> >
> > Guess just the target-7.c patch is enough, to make sure we agree on the same
> > thing.
>
> Here it is:
LGTM, thanks.
>
> diff --git a/libgomp/testsuite/libgomp.c/target-7.c b/libgomp/testsuite/libgomp.c/target-7.c
> index 90de6c5..0fe6150 100644
> --- a/libgomp/testsuite/libgomp.c/target-7.c
> +++ b/libgomp/testsuite/libgomp.c/target-7.c
> @@ -18,7 +18,7 @@ foo (int f)
> if (omp_get_level () != 0 || !omp_is_initial_device ())
> abort ();
> #pragma omp target if (v <= 1)
> - if (omp_get_level () != 0 || (f && !omp_is_initial_device ()))
> + if (omp_get_level () != 0)
> abort ();
> #pragma omp target device (d) if (v <= 1)
> if (omp_get_level () != 0 || (f && !omp_is_initial_device ()))
> @@ -30,7 +30,7 @@ foo (int f)
> if (omp_get_level () != 0 || !omp_is_initial_device ())
> abort ();
> #pragma omp target if (1)
> - if (omp_get_level () != 0 || (f && !omp_is_initial_device ()))
> + if (omp_get_level () != 0)
> abort ();
> #pragma omp target device (d) if (1)
> if (omp_get_level () != 0 || (f && !omp_is_initial_device ()))
> @@ -59,7 +59,7 @@ foo (int f)
> #pragma omp target data if (v <= 1) map (to: h)
> {
> #pragma omp target if (v <= 1)
> - if (omp_get_level () != 0 || (f && !omp_is_initial_device ()) || h++ != 8)
> + if (omp_get_level () != 0 || h++ != 8)
> abort ();
> #pragma omp target update if (v <= 1) from (h)
> }
> @@ -87,7 +87,7 @@ foo (int f)
> #pragma omp target data if (1) map (to: h)
> {
> #pragma omp target if (1)
> - if (omp_get_level () != 0 || (f && !omp_is_initial_device ()) || h++ != 12)
> + if (omp_get_level () != 0 || h++ != 12)
> abort ();
> #pragma omp target update if (1) from (h)
> }
Jakub