libgomp: plugin for non-shared memory host execution

2015-07-30 Thread Thomas Schwinge
Hi! While I still think that a generic libgomp plugin for non-shared memory host execution is a good idea conceptually, for the following reasons: On Wed, 19 Feb 2014 17:10:15 +0100, I wrote: > On Thu, 12 Dec 2013 12:31:40 +0100, I wrote: > > On Fri, 8 Nov 2013 16:40:00 +0100, Jakub Jelinek wrot

Re: [gomp4] Redesign oacc_parallel launch API

2015-07-30 Thread Thomas Schwinge
Hi Nathan! On Wed, 29 Jul 2015 17:45:32 -0400, Nathan Sidwell wrote: > On 07/29/15 08:24, Nathan Sidwell wrote: > > On 07/29/15 05:22, Thomas Schwinge wrote: > > >> Likewise for the other torture testing flags. > > > > > > Investigating ... (I've s

Re: [PATCH 2/n] OpenMP 4.0 offloading infrastructure: LTO streaming

2015-07-31 Thread Thomas Schwinge
Hi! We had established the use of a boolean flag have_offload in gcc::context to indicate whether during compilation, we've actually seen any code to be offloaded (see cited below the relevant parts of the patch by Ilya et al.). This means that currently, the whole offload machinery will not be r

Re: libgomp: plugin for non-shared memory host execution

2015-07-31 Thread Thomas Schwinge
Hi! On Thu, 30 Jul 2015 13:51:17 +0200, Jakub Jelinek wrote: > On Thu, Jul 30, 2015 at 01:47:37PM +0200, Thomas Schwinge wrote: > > > Here is such a libgomp plugin plus the infrastructure for initial support > > > of non-shared memory host execution. [...] > > >

Re: [gomp4, committed] Handle double reduction in oacc kernels pass group

2015-08-03 Thread Thomas Schwinge
ssa/structopt-1.c |4 ++-- gcc/testsuite/gfortran.dg/pr32921.f |4 ++-- 28 files changed, 86 insertions(+), 56 deletions(-) diff --git gcc/testsuite/ChangeLog.gomp gcc/testsuite/ChangeLog.gomp index 04286dd..33519ef 100644 --- gcc/testsuite/ChangeLog.gomp +++ gcc/testsuite/ChangeLog.go

Re: [gomp4] openacc default handling

2015-08-03 Thread Thomas Schwinge
anged, 7 insertions(+), 3 deletions(-) diff --git gcc/ChangeLog.gomp gcc/ChangeLog.gomp index 3b907ea..a30f6a3 100644 --- gcc/ChangeLog.gomp +++ gcc/ChangeLog.gomp @@ -1,3 +1,8 @@ +2015-08-03 Thomas Schwinge + + * gimplify.c (oacc_default_clause): Remove in_code formal + parameter. Adju

Re: offload data version number

2015-08-03 Thread Thomas Schwinge
omp-4_0-branch@226497 138bc75d-0d04-0410-961f-82ee72b054a4 --- liboffloadmic/ChangeLog.gomp |7 +++ liboffloadmic/plugin/Makefile.am |3 ++- liboffloadmic/plugin/Makefile.in | 3 ++- liboffloadmic/plugin/libgomp-plugin-intelmic.c

Re: [gomp4] expand acc_on_device earlier

2015-08-03 Thread Thomas Schwinge
index a30f6a3..d5cc1ed 100644 --- gcc/ChangeLog.gomp +++ gcc/ChangeLog.gomp @@ -1,5 +1,8 @@ 2015-08-03 Thomas Schwinge + * builtins.c (expand_builtin_on_device): Don't expect to be + expanded on host compiler. + * gimplify.c (oacc_default_clause): Remove in_code form

Re: [gomp4] expand acc_on_device earlier

2015-08-03 Thread Thomas Schwinge
/c-c++-common/goacc/acc_on_device-2-off.c | 4 +++- gcc/testsuite/c-c++-common/goacc/acc_on_device-2.c | 10 ++ 3 files changed, 13 insertions(+), 5 deletions(-) diff --git gcc/testsuite/ChangeLog.gomp gcc/testsuite/ChangeLog.gomp index 33519ef..8dd9a4c 100644 --- gcc/testsuite/ChangeL

Re: [gomp4] expand acc_on_device earlier

2015-08-03 Thread Thomas Schwinge
Hi! On Mon, 3 Aug 2015 08:00:36 -0400, Nathan Sidwell wrote: > On 08/03/15 07:37, Thomas Schwinge wrote: > > On Sun, 2 Aug 2015 21:23:30 -0400, Nathan Sidwell wrote: > >> I've committed this to gomp4 branch. It expands the acc_on_device builtin > >> earlier i

Use gcc/coretypes.h:enum offload_abi in mkoffloads (was: [PATCH 1/4] Add mkoffload for Intel MIC)

2015-08-04 Thread Thomas Schwinge
Hi! On Thu, 8 Jan 2015 07:02:19 -0800, "H.J. Lu" wrote: > On Thu, Jan 8, 2015 at 6:59 AM, Thomas Schwinge > wrote: > > On Mon, 22 Dec 2014 12:28:20 +0100, Jakub Jelinek wrote: > >> On Mon, Dec 22, 2014 at 12:25:32PM +0100, Thomas Schwinge wrote: > >> &g

Re: Regression in target MIC compiler

2015-08-04 Thread Thomas Schwinge
Hi! Testing some offloading patches for trunk, I'm encountering the same problem already reported here: On Fri, 31 Jul 2015 20:13:02 +0300, Ilya Verbin wrote: > On Fri, Jul 31, 2015 at 18:59:59 +0200, Jakub Jelinek wrote: > > On Fri, Jul 31, 2015 at 07:53:16PM +0300, Ilya Verbin wrote: > > > On

Re: offload data version number

2015-08-04 Thread Thomas Schwinge
dmic/ChangeLog.gomp | 7 +++ liboffloadmic/plugin/Makefile.am | 3 ++- liboffloadmic/plugin/Makefile.in | 3 ++- liboffloadmic/plugin/libgomp-plugin-intelmic.cpp | 3 ++- 4 files changed, 13 insertions(+), 3 deletions(-) diff --git a

Re: Regression in target MIC compiler

2015-08-05 Thread Thomas Schwinge
Hi! It seems as if David's »[PATCH][1/N] Change GET_MODE_INNER to always return a non-void mode« is relevant here: On Tue, 4 Aug 2015 16:06:23 +0300, Ilya Verbin wrote: > On Tue, Aug 04, 2015 at 14:35:11 +0200, Thomas Schwinge wrote: > > On Fri, 31 Jul 2015 20:13:02 +0300, Ilya

RE: Regression in target MIC compiler

2015-08-05 Thread Thomas Schwinge
be something is obvious to you just from looking at the code? For reference: > > On Tue, 4 Aug 2015 16:06:23 +0300, Ilya Verbin wrote: > > > On Tue, Aug 04, 2015 at 14:35:11 +0200, Thomas Schwinge wrote: > > > > On Fri, 31 Jul 2015 20:13:02 +0300, Ilya Verbin

RE: Regression in target MIC compiler

2015-08-05 Thread Thomas Schwinge
Hi! On Wed, 5 Aug 2015 15:10:40 +0100, David Sherwood wrote: > In lto_input_mode_table there is the following line of code: [...] Thanks! That's not exactly it, but you put me on the right track. Testing a patch. Grüße, Thomas pgpvL8b1BSU6F.pgp Description: PGP signature

Fix offloading machine mode stream reading (was: Regression in target MIC compiler)

2015-08-06 Thread Thomas Schwinge
ine mode IDs used by the target and the offloading compiler(s), whence the table lookup, or table construction in the first place. But as I said yesterday, you gave me a clue where to look, and the problem is that given your GET_MODE_INNER change: > > From: Thomas Schwinge [mailto:tho...@code

Re: [gomp4] OpenACC reduction tests

2015-09-18 Thread Thomas Schwinge
-0d04-0410-961f-82ee72b054a4 --- libgomp/ChangeLog.gomp |5 + libgomp/testsuite/libgomp.oacc-fortran/reduction-5.f90 |5 - 2 files changed, 9 insertions(+), 1 deletion(-) diff --git libgomp/ChangeLog.gomp libgomp/ChangeLog.gomp index 63bc7dc..0c0e697 1

[gomp4] Address texinfo warnings

2015-09-18 Thread Thomas Schwinge
83e2..b551413 100644 --- gcc/ChangeLog.gomp +++ gcc/ChangeLog.gomp @@ -1,3 +1,9 @@ +2015-09-18 Thomas Schwinge + + * target.def (validate_dims, dim_limit, fork_join, lock): + Spell out the formal parameters' names. Fix typos. + * doc/tm.texi: Regenerate. + 2015-09-16 Nathan

Re: [gomp4, wip] remove references to ganglocal shared memory inside gcc

2015-09-18 Thread Thomas Schwinge
Hi! On Tue, 1 Sep 2015 18:29:55 +0200, Tom de Vries wrote: > On 27/08/15 03:37, Cesar Philippidis wrote: > > - ctx->ganglocal_size_host = align_and_expand (&gl_host, host_size, align); > > I suspect this caused a bootstrap failure (align_and_expand unused). > Worked-around as attached. > ---

Re: [gomp4] Remove more gang local bits

2015-09-18 Thread Thomas Schwinge
3 files changed, 3 insertions(+), 7 deletions(-) diff --git libgomp/ChangeLog.gomp libgomp/ChangeLog.gomp index 0c0e697..12cf8aa 100644 --- libgomp/ChangeLog.gomp +++ libgomp/ChangeLog.gomp @@ -1,5 +1,8 @@ 2015-09-18 Thomas Schwinge + * libgomp.h (struct splay_tree_key_s): Remove dealloc_hos

Re: [gomp] more ptx builtins

2015-09-18 Thread Thomas Schwinge
3 files changed, 9 insertions(+), 4 deletions(-) diff --git gcc/testsuite/ChangeLog.gomp gcc/testsuite/ChangeLog.gomp index 1135e84..b14167e 100644 --- gcc/testsuite/ChangeLog.gomp +++ gcc/testsuite/ChangeLog.gomp @@ -1,3 +1,8 @@ +2015-09-18 Thomas Schwinge + + * gcc.target/nvptx/spinlock-

Re: [gomp4] OpenACC reduction tests

2015-09-18 Thread Thomas Schwinge
Hi Cesar! On Fri, 17 Jul 2015 11:13:59 -0700, Cesar Philippidis wrote: > This patch updates the libgomp OpenACC reduction test cases to check > worker, vector and combined gang worker vector reductions. I tried to > use some macros to simplify the c test cases a bit. I probably could > have made

Re: [PATCH 6/n] OpenMP 4.0 offloading infrastructure: option handling

2015-09-21 Thread Thomas Schwinge
Hi! On Sat, 11 Oct 2014 18:49:00 +0400, Ilya Verbin wrote: > This is the last common infrastructure patch in the series. > 1. -foffload== >By default, GCC will build offload images for all offload targets specified > in configure, with non-target-specific options passed to host compiler. > T

Re: [PATCH 6/n] OpenMP 4.0 offloading infrastructure: option handling

2015-09-22 Thread Thomas Schwinge
Hi! On Mon, 21 Sep 2015 19:41:59 +0300, Ilya Verbin wrote: > 2015-09-21 18:15 GMT+03:00 Thomas Schwinge : > > (<https://gcc.gnu.org/PR67300>, "--foffload* undocumented", has recently > > been filed.) > > > > (In the following, "intelmic"

Re: [gomp4] ptx reduction simplification

2015-09-22 Thread Thomas Schwinge
anch@228016 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog.gomp |5 + gcc/tree-parloops.c |6 ++ 2 files changed, 7 insertions(+), 4 deletions(-) diff --git gcc/ChangeLog.gomp gcc/ChangeLog.gomp index e70d6cb..b7dbba0 100644 --- gcc/ChangeLog.gomp +++ gcc/ChangeLog.g

Re: [gomp4] OpenACC reduction tests

2015-09-23 Thread Thomas Schwinge
svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gomp-4_0-branch@228035 138bc75d-0d04-0410-961f-82ee72b054a4 --- libgomp/ChangeLog.gomp | 5 + libgomp/testsuite/libgomp.oacc-fortran/reduction-5.f90 | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) diff

Re: [gomp4] Another oacc reduction simplification

2015-09-23 Thread Thomas Schwinge
Hi! On Tue, 22 Sep 2015 11:29:37 -0400, Nathan Sidwell wrote: > I've committed this patch, which simplifies the generation of openacc > reduction > code. Aside from the progression mentioned in ,

Re: [gomp4] lock/unlock internal fn

2015-09-23 Thread Thomas Schwinge
Hi Nathan! On Mon, 17 Aug 2015 15:30:16 -0400, Nathan Sidwell wrote: > I've committed this patch to add a new pair of internal functions. These > will > be used in implementing reductions. > > They'll be emitted around reduction finalization, and implement the locking > required for the gene

Re: [gomp4, wip] remove references to ganglocal shared memory inside gcc

2015-09-23 Thread Thomas Schwinge
Hi! On Fri, 18 Sep 2015 06:51:18 -0700, Cesar Philippidis wrote: > On 09/18/2015 01:39 AM, Thomas Schwinge wrote: > > > On Tue, 1 Sep 2015 18:29:55 +0200, Tom de Vries > > wrote: > >> On 27/08/15 03:37, Cesar Philippidis wrote: > >>> - ctx->ganglo

Refactor omp_reduction_init: omp_reduction_init_op (was: [gomp4] ptx reduction simplification)

2015-09-23 Thread Thomas Schwinge
Hi! On Tue, 22 Sep 2015 11:11:59 -0400, Nathan Sidwell wrote: > On 09/22/15 11:10, Thomas Schwinge wrote: > > On Fri, 18 Sep 2015 20:05:48 -0400, Nathan Sidwell wrote: > >> I've committed this patch to rework and simplify [...] > >> the reduction lower

Re: [gomp4] lock/unlock internal fn

2015-09-23 Thread Thomas Schwinge
Hi Nathan! On Wed, 23 Sep 2015 08:40:51 -0400, Nathan Sidwell wrote: > On 09/23/15 05:27, Thomas Schwinge wrote: > > On Mon, 17 Aug 2015 15:30:16 -0400, Nathan Sidwell wrote: > >> I've committed this patch to add a new pair of internal functions. These > >> w

Re: [PATCH 6/n] OpenMP 4.0 offloading infrastructure: option handling

2015-09-23 Thread Thomas Schwinge
Hi! I clarified the -foffload usage: <https://gcc.gnu.org/wiki/Offloading?action=diff&rev1=38&rev2=39>. On Wed, 23 Sep 2015 00:23:50 +0200, Bernd Schmidt wrote: > On 09/22/2015 02:02 PM, Thomas Schwinge wrote: > > > > gcc/ > > * gcc.c (

Re: [gomp4] lock/unlock internal fn

2015-09-23 Thread Thomas Schwinge
Hi! On Wed, 23 Sep 2015 10:19:15 -0400, Nathan Sidwell wrote: > On 09/23/15 10:16, Thomas Schwinge wrote: > > On Wed, 23 Sep 2015 08:40:51 -0400, Nathan Sidwell > > wrote: > >> On 09/23/15 05:27, Thomas Schwinge wrote: > >>> On Mon, 17 Aug 2015 1

Re: (patch,rfc) s/gimple/gimple */

2015-09-23 Thread Thomas Schwinge
Hi! On Sat, 19 Sep 2015 20:55:35 -0400, Trevor Saunders wrote: > On Fri, Sep 18, 2015 at 09:32:37AM -0600, Jeff Law wrote: > > On 09/18/2015 07:32 AM, Trevor Saunders wrote: > > >On Wed, Sep 16, 2015 at 03:11:14PM -0400, David Malcolm wrote: > > >>On Wed, 2015-09-16 at 09:16 -0400, Trevor Saunde

Re: [gomp4] remap variables inside gang, worker, vector and collapse clauses

2015-09-23 Thread Thomas Schwinge
Hi! On Wed, 23 Sep 2015 10:57:40 -0700, Cesar Philippidis wrote: > On 09/23/2015 10:42 AM, Cesar Philippidis wrote: > | Gang, worker, vector and collapse all contain optional arguments which > | may be used during loop expansion. In OpenACC, those expressions could > | contain variables I'm fai

Re: [PATCH] Don't create superfluous parm in expand_omp_taskreg

2015-09-23 Thread Thomas Schwinge
Hi Tom! On Tue, 11 Aug 2015 20:53:39 +0200, Tom de Vries wrote: > [ was: Re: [committed, gomp4] Fix release_dangling_ssa_names ] > > On 05/08/15 13:13, Richard Biener wrote: > > On Wed, 5 Aug 2015, Tom de Vries wrote: > > > >> On 05/08/15 11:30, Richard Biener wrote: > >>> On Wed, 5 Aug 2015, To

Re: [PATCH] Don't create superfluous parm in expand_omp_taskreg

2015-09-24 Thread Thomas Schwinge
Hi Tom! On Thu, 24 Sep 2015 08:36:27 +0200, Tom de Vries wrote: > On 24/09/15 08:23, Thomas Schwinge wrote: > > On Tue, 11 Aug 2015 20:53:39 +0200, Tom de Vries > > wrote: > >> Don't create superfluous parm in expand_omp_taskreg > >> > >> 2015

Re: (patch,rfc) s/gimple/gimple */

2015-09-24 Thread Thomas Schwinge
Log index 9c2ad9d..7bc8e91 100644 --- gcc/ChangeLog +++ gcc/ChangeLog @@ -1,3 +1,12 @@ +2015-09-24 Thomas Schwinge + + * tree-object-size.c (plus_stmt_object_size) + (cond_expr_object_size): Change the formal parameters from gimple + to gimple *. + * tree-ssa-sccvn.h (vn_n

[gomp4] Merge trunk r228054 (2015-09-23) into gomp-4_0-branch

2015-09-24 Thread Thomas Schwinge
Hi! Committed to gomp-4_0-branch in r228091: commit 25dd642bd78afedeb6f94c98ed4fe767133b65ec Merge: a203723 3bf38a0 Author: tschwinge Date: Thu Sep 24 16:00:49 2015 + svn merge -r 226769:228054 svn+ssh://gcc.gnu.org/svn/gcc/trunk git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc

libgomp: Compile-time error for non-portable gomp_mutex_t initialization (was: libgomp nvptx plugin: rework initialisation and support the proposed load/unload hooks)

2015-09-25 Thread Thomas Schwinge
, which is invoked from __attributed__((constructor)) functions generated by gcc/config/*/*mkoffload.c, and there is no guaranteed ordering for constructor functions [... -- see source code comment added in the following patch]: commit 81d25f393d9b0fdca309354e6a61f707ff403fe2 Author: Thomas Schwinge Date: Fri

libgomp: Guard all offload_images/num_offload_images access by register_lock (was: libgomp nvptx plugin: rework initialisation and support the proposed load/unload hooks)

2015-09-25 Thread Thomas Schwinge
(locking added to gomp_init_device and gomp_unload_device)? We can then also remove the is_register_lock parameter from gomp_load_image_to_device, and simplify the code. commit 702090223a8d43e7371d6cbfc9d8a39e3c5c2986 Author: Thomas Schwinge Date: Fri Sep 25 17:37:41 2015 +0200 libgomp:

Re: Add checkpoint to libgomp dg-shouldfail tests

2015-09-27 Thread Thomas Schwinge
\]+\\\) object when > > > \\\[0x\[0-9a-f\]+..0x\[0-9a-f\]+\\\) is already mapped" } > > > +/* { dg-shouldfail "" } */ > > > > It once occurred to me that it's also a good idea to verify that we're > > actually reaching the expected ch

Re: Use gcc/coretypes.h:enum offload_abi in mkoffloads

2015-09-28 Thread Thomas Schwinge
Hi! On Tue, 4 Aug 2015 13:20:12 +0200, I wrote: > On Thu, 8 Jan 2015 07:02:19 -0800, "H.J. Lu" wrote: > > On Thu, Jan 8, 2015 at 6:59 AM, Thomas Schwinge > > wrote: > > > On Mon, 22 Dec 2014 12:28:20 +0100, Jakub Jelinek > > > wrote: > > &g

Re: [PATCH 1/4] Add mkoffload for Intel MIC

2015-09-28 Thread Thomas Schwinge
obstack_ptr_grow (&argv_obstack, symbols[0]); > > > + obstack_ptr_grow (&argv_obstack, "-L"); > > > + obstack_ptr_grow (&argv_obstack, symbols[1]); > > > + obstack_ptr_grow (&argv_obstack, "-L"); > > > + obstack_ptr_grow (&

Re: lto wrapper verboseness

2015-09-28 Thread Thomas Schwinge
"Refactor intelmic-mkoffload.c argv building", <http://news.gmane.org/find-root.php?message_id=%3C87r3ljuez8.fsf%40kepler.schwinge.homeip.net%3E>); OK for trunk? commit ad0b6608cff22b62b73016c91c74b21a168acb46 Author: Thomas Schwinge Date: Tue Aug 4 14:08:23 2015 +0200

libgomp: Guard all devices/num_devices/num_devices_openmp access by register_lock (was: libgomp: Guard all offload_images/num_offload_images access by register_lock)

2015-09-28 Thread Thomas Schwinge
Hi! On Fri, 25 Sep 2015 19:49:50 +0300, Ilya Verbin wrote: > On Fri, Sep 25, 2015 at 18:21:27 +0200, Thomas Schwinge wrote: > > On Thu, 26 Mar 2015 23:41:30 +0300, Ilya Verbin wrote: > > > On Thu, Mar 26, 2015 at 13:09:19 +0100, Jakub Jelinek wrote: > > > > the

Re: Ping^2 Re: Pass -foffload targets from driver to libgomp at link time

2015-09-28 Thread Thomas Schwinge
Hi! On Fri, 11 Sep 2015 17:43:49 +0200, Jakub Jelinek wrote: > So, do I understand well that you'll call GOMP_set_offload_targets from > construct[ors] of all shared libraries (and the binary) that contain offloaded > code? If yes, that is surely going to fail the assertions in there. Indeed.

Re: [gomp4] error on acc loops not associated with offloaded acc regions

2015-09-29 Thread Thomas Schwinge
Hi Cesar! On Mon, 28 Sep 2015 10:08:34 -0700, Cesar Philippidis wrote: > I've applied this patch to gomp-4_0-branch which teaches omplower how to > error when it detects acc loops which aren't nested inside an acc > parallel or kernels region or located within a function marked as an acc > routi

Re: Add checkpoint to libgomp dg-shouldfail tests

2015-09-30 Thread Thomas Schwinge
mp/ChangeLog libgomp/ChangeLog index 8fbd6c5..fcf80e2 100644 --- libgomp/ChangeLog +++ libgomp/ChangeLog @@ -1,3 +1,69 @@ +2015-09-30 Thomas Schwinge + + * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint. + * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.

Re: Use gcc/coretypes.h:enum offload_abi in mkoffloads

2015-09-30 Thread Thomas Schwinge
cc/ChangeLog @@ -1,3 +1,10 @@ +2015-09-30 Thomas Schwinge + + * config/i386/intelmic-mkoffload.c (target_ilp32): Remove + variable, replacing it with... + (offload_abi): ... this new variable. Adjust all users. + * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Like

Re: [gomp4,committed] Remove release_dangling_ssa_names

2015-09-30 Thread Thomas Schwinge
Hi Tom! On Wed, 30 Sep 2015 08:17:04 +0200, Tom de Vries wrote: > [ was: Re: [PATCH] Don't create superfluous parm in expand_omp_taskreg ] > On 24/09/15 11:02, Thomas Schwinge wrote: > > On Thu, 24 Sep 2015 08:36:27 +0200, Tom de Vries > > wrote: > >> >On 24

Re: [gomp4,committed] Remove release_dangling_ssa_names

2015-09-30 Thread Thomas Schwinge
Hi Tom! On Wed, 30 Sep 2015 11:46:56 +0200, Tom de Vries wrote: > On 30/09/15 11:25, Thomas Schwinge wrote: > > Don't we also want to commit the following change, which was part of your > > trunk r227103 (883f001d2c3672e0674bec71f36a2052734a72cf) commit (and now > > s

Re: JIT breakage after last builtin-types change

2015-09-30 Thread Thomas Schwinge
-) diff --git gcc/ada/ChangeLog gcc/ada/ChangeLog index efb2d3a..d4c505c 100644 --- gcc/ada/ChangeLog +++ gcc/ada/ChangeLog @@ -1,3 +1,7 @@ +2015-09-30 Thomas Schwinge + + * gcc-interface/utils.c (DEF_FUNCTION_TYPE_VAR_11): Don't define. + 2015-09-28 Tom de Vries *

Re: Ping^2 Re: Pass -foffload targets from driver to libgomp at link time

2015-09-30 Thread Thomas Schwinge
Hi! On Tue, 29 Sep 2015 10:18:14 +0200, Jakub Jelinek wrote: > On Mon, Sep 28, 2015 at 11:39:10AM +0200, Thomas Schwinge wrote: > > On Fri, 11 Sep 2015 17:43:49 +0200, Jakub Jelinek wrote: > > > So, do I understand well that you'll call GOMP_set_offload_targets from >

Refactor intelmic-mkoffload.c argv building to use obstacks (was: [PATCH 1/4] Add mkoffload for Intel MIC)

2015-09-30 Thread Thomas Schwinge
Hi! On Mon, 28 Sep 2015 13:27:32 +0200, Bernd Schmidt wrote: > On 09/28/2015 01:25 PM, Ilya Verbin wrote: > > On Mon, Sep 28, 2015 at 12:09:19 +0200, Bernd Schmidt wrote: > >> On 09/28/2015 12:03 PM, Bernd Schmidt wrote: > >>> On 09/28/2015 10:26 AM, Thomas Schwinge

Re: lto wrapper verboseness

2015-09-30 Thread Thomas Schwinge
-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@228301 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog| 10 ++ gcc/config/i386/intelmic-mkoffload.c | 10 ++ gcc/config/nvptx/mkoffload.c | 6 ++ gcc/lto-wrapper.c| 2 ++ 4 file

Re: [gomp4] remove goacc locking

2015-10-01 Thread Thomas Schwinge
vptx/nvptx.c |9 - 2 files changed, 4 insertions(+), 9 deletions(-) diff --git gcc/ChangeLog.gomp gcc/ChangeLog.gomp index c4033e0..3a9e01d 100644 --- gcc/ChangeLog.gomp +++ gcc/ChangeLog.gomp @@ -1,3 +1,7 @@ +2015-10-01 Thomas Schwinge + + * config/nvptx/nvptx.c (nvptx_xform_

[gomp4] Merge trunk r228315 (2015-10-01) into gomp-4_0-branch

2015-10-02 Thread Thomas Schwinge
Hi! Committed to gomp-4_0-branch in r228382: commit 519d8cb612e9d641d133e4f65b4a48c3ef963f43 Merge: 5094830 b5409c8 Author: tschwinge Date: Fri Oct 2 10:01:27 2015 + svn merge -r 228054:228315 svn+ssh://gcc.gnu.org/svn/gcc/trunk git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/

[PR target/67822] OpenMP offloading to nvptx fails (was: [gomp4 2/8] nvptx mkoffload: do not restrict to OpenACC)

2015-10-02 Thread Thomas Schwinge
| 6 ++ gcc/config/nvptx/mkoffload.c | 7 +-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git gcc/ChangeLog gcc/ChangeLog index 3f7561a..1317a2d 100644 --- gcc/ChangeLog +++ gcc/ChangeLog @@ -1,3 +1,9 @@ +2015-10-02 Thomas Schwinge + + PR target/67822 +

nvptx offloading linking

2015-10-02 Thread Thomas Schwinge
+ libgomp/config/nvptx/openacc.f90 | 102 ++ libgomp/oacc-init.c | 6 +- libgomp/oacc-ptx.h | 426 -- libgomp/plugin/plugin-nvptx.c| 30 -- 10 files changed, 617 insertions(+), 1089 deletions(-) diff --git gcc/ChangeLo

Help the offload gcc driver find the right assembler (was: [PATCH 4/n] OpenMP 4.0 offloading infrastructure: lto-wrapper)

2015-10-02 Thread Thomas Schwinge
d Schmidt + + * gcc.c (process_command): Use spec_machine rather than + spec_host_machine to build tooldir_prefix2. + 2015-10-02 Thomas Schwinge Bernd Schmidt diff --git gcc/gcc.c gcc/gcc.c index db90796..7f5a36e 100644 --- gcc/gcc.c +++ gcc/gcc.c @@ -4472

[PR other/65021] mkoffloads -save-temps handling, and cleanup cleanup (was: lto wrapper verboseness)

2015-10-05 Thread Thomas Schwinge
't clean up its temporary files". OK for trunk? commit 693388578c8b71ed0dd7ee07a4153442e92e17de Author: Thomas Schwinge Date: Mon Oct 5 11:36:51 2015 +0200 [PR other/65021] mkoffloads -save-temps handling, and cleanup cleanup gcc/ PR other/65021 *

Re: [PR other/65021] mkoffloads -save-temps handling, and cleanup cleanup

2015-10-05 Thread Thomas Schwinge
Hi Bernd! On Mon, 5 Oct 2015 14:12:06 +0200, Bernd Schmidt wrote: > On 10/05/2015 12:04 PM, Thomas Schwinge wrote: > > In a similar vein to the earlier patch to "Pass on the verbose flag "-v" > > to/in the mkoffloads", here is a patch to make the mkoffloads

[gomp4] [nvptx] Don't explicitly pass "-lgomp" to the offload compiler (was: nvptx offloading linking)

2015-10-05 Thread Thomas Schwinge
"-lgomp" to the offload compiler. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gomp-4_0-branch@228495 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog.gomp |5 + gcc/config/nvptx/mkoffload.c |1 - 2 files changed, 5 insertions(+), 1 deletion

Re: libgomp: Guard all devices/num_devices/num_devices_openmp access by register_lock (was: libgomp: Guard all offload_images/num_offload_images access by register_lock)

2015-10-06 Thread Thomas Schwinge
Hi! On Mon, 28 Sep 2015 10:52:38 +0200, I wrote: > On Fri, 25 Sep 2015 19:49:50 +0300, Ilya Verbin wrote: > > On Fri, Sep 25, 2015 at 18:21:27 +0200, Thomas Schwinge wrote: > > > On Thu, 26 Mar 2015 23:41:30 +0300, Ilya Verbin wrote: > > > > On Thu, Mar 26, 2015 at

Re: [gomp4] Add -foffload-abi support for PPC

2015-10-07 Thread Thomas Schwinge
Hi! rs6000/powerpc port maintainer copied. On Tue, 6 Oct 2015 11:38:04 -0500, James Norris wrote: > The attached patch adds the -foffload-abi option support for PPC. > Only support for the 64-bit ABI has been added. (Yes, only powerpc64le-linux-gnu configurations can be supported.) > Committe

abort might not flush all open streams before process termination (was: aarch64-suse-linux-gnu: libgomp.oacc-c-c++-common/abort-1.c, libgomp.oacc-c-c++-common/abort-3.c FAILs)

2015-10-07 Thread Thomas Schwinge
_id=%3C87twq4p9f4.fsf%40kepler.schwinge.homeip.net%3E>. On Tue, 06 Oct 2015 13:55:00 +0200, Andreas Schwab wrote: > Thomas Schwinge writes: > > > | The two regressed test cases use __builtin_printf instead of fprintf to > > | stderr, but as far as I know, abort is to flush

[PR c/64765, c/64880] Support OpenACC Combined Directives in C, C++

2015-10-08 Thread Thomas Schwinge
, Nathan) front end maintainers could please review this, instead of him? (The front end changes as well as the few other cleanup changes should all be straight forward.) OK for trunk once bootstrap tested? commit 9626356d641129381306f2ad5d884d5b7f7a5fc7 Author: Thomas Schwinge Date: Thu Oct 8 15

Re: Add -foffload-abi support for PPC

2015-10-08 Thread Thomas Schwinge
Hi! On Thu, 8 Oct 2015 11:19:05 -0500, James Norris wrote: > On 10/07/2015 08:51 AM, David Edelsohn wrote: > > On Wed, Oct 7, 2015 at 4:02 AM, Thomas Schwinge > > wrote: > > > >> From a quick look at the *_TYPE_SIZE definitions in > >> gcc/confi

Re: [nvptx] fix some c++ tests

2015-10-08 Thread Thomas Schwinge
Hi Nathan! Thanks for looking into this. When I reported this, , quite a lot of testcases had been failing -- with recent GCC trunk, the number is smaller (because of other middle end/optimization changes, I supp

[PR fortran/63858] Fix mix of OpenACC and OpenMP sentinels in continuations

2015-10-09 Thread Thomas Schwinge
Hi! On Mon, 27 Jul 2015 16:14:17 +0200, I wrote: > On Tue, 30 Jun 2015 03:39:42 +0300, Ilmir Usmanov wrote: > > 08.06.2015, 17:59, "Cesar Philippidis" : > > > On 06/07/2015 02:05 PM, Ilmir Usmanov wrote: > > >> 08.06.2015, 00:01, "Ilmir Usmanov" : > > This patch fixes checks of OpenMP and

Re: [PR c/64765, c/64880] Support OpenACC Combined Directives in C, C++

2015-10-09 Thread Thomas Schwinge
Hi! Thanks to Joseph and you for your review! On Fri, 9 Oct 2015 08:26:37 -0400, Nathan Sidwell wrote: > On 10/08/15 12:39, Thomas Schwinge wrote: > > Some bits extracted out of gomp-4_0-branch, and some other bits > > rewritten; here is a patch to support OpenACC Combined

Re: [PR c/64765, c/64880] Support OpenACC Combined Directives in C, C++

2015-10-09 Thread Thomas Schwinge
Hi Nathan! On Fri, 9 Oct 2015 09:34:51 -0400, Nathan Sidwell wrote: > On 10/09/15 09:26, Thomas Schwinge wrote: > > You mean the cp_parser_oacc_loop and cp_parser_oacc_kernels_parallel > > functions need documentation? I agree it's a bit terse, but documenting > >

libgomp testsuite: Remove some explicit acc_device_nvidia usage

2015-10-09 Thread Thomas Schwinge
Hi! On Wed, 22 Jul 2015 16:39:54 +0200, I wrote: > [...] cleanup; committed to > gomp-4_0-branch in r226072: [...] OK for trunk? commit a8bd7234d7b6b0111a1e3b3dc032ea5eead7e258 Author: Thomas Schwinge Date: Fri Oct 9 16:40:56 2015 +0200 libgomp testsuite: Remove some ex

[libgomp/66518] Resolve XFAIL in libgomp.oacc-c-c++-common/lib-3.c

2015-10-09 Thread Thomas Schwinge
Hi! On Wed, 22 Jul 2015 16:32:17 +0200, I wrote: > [...] in r226070, I committed the > following to gomp-4_0-branch: [...] OK for trunk? commit 8ba8b058417afc2e7979ef25fdb943ae4e8838dd Author: Thomas Schwinge Date: Fri Oct 9 13:20:52 2015 +0200 [libgomp/66518] Resolve XF

libgomp: Additional acc_shutdown bug fixing and testing

2015-10-09 Thread Thomas Schwinge
Hi! On Wed, 22 Jul 2015 16:37:46 +0200, I wrote: > [...] found an inconsistency in libgomp; committed > to gomp-4_0-branch in r226071: [...] OK for trunk? commit dc0c73e9ac5decf5b36be25497ed5f4b99136fba Author: Thomas Schwinge Date: Fri Oct 9 13:22:52 2015 +0200 libgomp: Addi

[PR libgomp/65437, libgomp/66518] Initialize runtime in acc_update_device, acc_update_self

2015-10-09 Thread Thomas Schwinge
t; > > t=1 -DACC_MEM_SHARED=1 output pattern test, is , should match > > > \[[0-9a-fA-FxX]+,2 > > > 56\] is not mapped > In r224639, now (at least, and at last...) XFAILed OK to commit? commit 673e59d5da9f5b003c4dac54b8ef6b1010b3f907 Author: Thomas Schwinge Date: Fri

Re: [PATCH] hurd: align -p and -pg behavior on Linux

2015-10-12 Thread Thomas Schwinge
Hi Samuel! On Sat, 19 Sep 2015 14:00:23 +0200, Samuel Thibault wrote: > On Linux, -p and -pg do not make gcc link against libc_p.a, only > -profile does (as documented in r11246), and thus people expect -p > and -pg to work without libc_p.a installed (it is actually even not > available any more

Re: [gomp4, committed] Add goacc/kernels-acc-on-device.c

2015-10-12 Thread Thomas Schwinge
Hi Tom! On Sat, 10 Oct 2015 12:49:01 +0200, Tom de Vries wrote: > --- /dev/null > +++ b/gcc/testsuite/c-c++-common/goacc/kernels-acc-on-device.c > @@ -0,0 +1,39 @@ > +/* { dg-additional-options "-O2" } */ > + > +#include That doesn't work (at least in build-tree testing), as gcc/testsuite/ is n

Re: [PATCH, 3/5] Handle original loop tree in expand_omp_for_generic

2015-10-13 Thread Thomas Schwinge
Hi Tom! On Mon, 12 Oct 2015 18:56:29 +0200, Tom de Vries wrote: > Handle original loop tree in expand_omp_for_generic > > 2015-09-12 Tom de Vries > > PR tree-optimization/67476 > * omp-low.c (expand_omp_for_generic): Handle original loop tree. Working on a merge from trunk into

[gomp4] Merge trunk r228776 (2015-10-13) into gomp-4_0-branch

2015-10-15 Thread Thomas Schwinge
Hi! Committed to gomp-4_0-branch in r228836 (that's the GCC trunk revision before Jakub's big "Merge from gomp-4_1-branch to trunk"): commit ff970ce56583aec594e741a2941505db91edb4ec Merge: 47c1a67 e2c514f Author: tschwinge Date: Thu Oct 15 08:18:41 2015 + svn merge -r 228315:228776 sv

OpenACC (gomp-4_0-branch) patch review (was: Merge from gomp-4_1-branch to trunk)

2015-10-16 Thread Thomas Schwinge
Hi! On Tue, 13 Oct 2015 21:12:14 +0200, Jakub Jelinek wrote: > I've bootstrapped/regtested on x86_64-linux and i686-linux following > merge from gomp-4_1-branch to trunk, which brings in most of the OpenMP 4.5 > support for C and C++ With nvptx offloading, I'm seeing the following regressions (o

Re: [gomp4.1] OpenMP 4.1 is dead, long live OpenMP 4.5

2015-10-16 Thread Thomas Schwinge
Hi! ;-) "Bikeshed" discussion, but while waiting for a test run to finish: On Thu, 15 Oct 2015 13:06:42 +0200, Jakub Jelinek wrote: > On Fri, Oct 09, 2015 at 08:26:25PM +0300, Ilya Verbin wrote: > > On Fri, Oct 09, 2015 at 09:55:07 +0200, Jakub Jelinek wrote: > > > -GOMP_4.1 { > > > +GOMP_4.5 {

Re: [gomp4.1] map clause parsing improvements

2015-10-19 Thread Thomas Schwinge
Hi! On Thu, 11 Jun 2015 14:14:20 +0200, Jakub Jelinek wrote: > On Tue, Jun 09, 2015 at 09:36:08PM +0300, Ilya Verbin wrote: > > On Wed, Apr 29, 2015 at 14:06:44 +0200, Jakub Jelinek wrote: > > > [...] The draft requires only alloc or to > > > (or always, variants) for enter data and only from or

Re: [gomp4.1] map clause parsing improvements

2015-10-19 Thread Thomas Schwinge
Hi! On Mon, 19 Oct 2015 12:34:08 +0200, Jakub Jelinek wrote: > On Mon, Oct 19, 2015 at 12:20:23PM +0200, Thomas Schwinge wrote: > > > +/* Decrement usage count and deallocate if zero. */ > > > +GOMP_MAP_RELEASE =

[gomp4] Merge gomp-4_1-branch r224607 (2015-06-18) into gomp-4_0-branch

2015-10-19 Thread Thomas Schwinge
Hi! I have recently merged trunk r228776 (2015-10-13) into gomp-4_0-branch, which is the trunk revision before Jakub's big "Merge from gomp-4_1-branch to trunk", . Instead of attempting to merge that one

OpenACC async clause regressions (was: [gomp4.1] Add new versions of GOMP_target{,_data,_update} and GOMP_target_enter_exit_data)

2015-10-19 Thread Thomas Schwinge
Hi! Chung-Lin, would you please have a look at the following (on gomp-4_0-branch)? Also, anyone else got any ideas off-hand? On Tue, 23 Jun 2015 13:51:39 +0200, Jakub Jelinek wrote: > On Tue, Jun 23, 2015 at 02:40:43PM +0300, Ilya Verbin wrote: > > On Sat, Jun 20, 2015 at 00:35:14 +0300, Ilya V

Forwarding -foffload=[...] from the driver (compile-time) to libgomp (run-time)

2015-10-19 Thread Thomas Schwinge
Hi! Ping... On Wed, 30 Sep 2015 17:54:07 +0200, I wrote: > On Tue, 29 Sep 2015 10:18:14 +0200, Jakub Jelinek wrote: > > On Mon, Sep 28, 2015 at 11:39:10AM +0200, Thomas Schwinge wrote: > > > On Fri, 11 Sep 2015 17:43:49 +0200, Jakub Jelinek > > > wrote: > >

Re: [PR fortran/63858] Fix mix of OpenACC and OpenMP sentinels in continuations

2015-10-19 Thread Thomas Schwinge
Hi! Ping... On Fri, 9 Oct 2015 12:15:24 +0200, I wrote: > On Mon, 27 Jul 2015 16:14:17 +0200, I wrote: > > On Tue, 30 Jun 2015 03:39:42 +0300, Ilmir Usmanov wrote: > > > 08.06.2015, 17:59, "Cesar Philippidis" : > > > > On 06/07/2015 02:05 PM, Ilmir Usmanov wrote: > > > >> 08.06.2015, 00:01, "Il

Re: Forwarding -foffload=[...] from the driver (compile-time) to libgomp (run-time)

2015-10-20 Thread Thomas Schwinge
Hi Jakub! Thanks for the review. On Tue, 20 Oct 2015 12:02:45 +0200, Jakub Jelinek wrote: > On Mon, Oct 19, 2015 at 06:44:40PM +0200, Thomas Schwinge wrote: > > > How's the following (complete patch instead of incremental patch; the > > > driver changes are still

OpenACC constructs nesting checks (was: [gomp4,committed] Handle oacc region in oacc routine)

2015-10-22 Thread Thomas Schwinge
Hi Tom! On Fri, 16 Oct 2015 11:17:25 +0200, Tom de Vries wrote: > this patch checks for occurance of oacc offload regions in oacc routines > (which means nested parallelism, which is currently not supported) and > gives an appropriate error message. > --- /dev/null > +++ b/gcc/testsuite/c-c++-

[gomp4] OpenACC async clause regressions (was: [gomp4.1] Add new versions of GOMP_target{,_data,_update} and GOMP_target_enter_exit_data)

2015-10-22 Thread Thomas Schwinge
Hi! On Mon, 19 Oct 2015 18:24:35 +0200, I wrote: > Chung-Lin, would you please have a look at the following (on > gomp-4_0-branch)? Also, anyone else got any ideas off-hand? Ilya, Jakub, thanks for your comments! > On Tue, 23 Jun 2015 13:51:39 +0200, Jakub Jelinek wrote: > > On Tue, Jun 23, 20

[gomp4] Merge gomp-4_1-branch r225300 (2015-07-02) into gomp-4_0-branch

2015-10-23 Thread Thomas Schwinge
Hi! On Mon, 19 Oct 2015 17:54:46 +0200, I wrote: > I have recently merged trunk r228776 (2015-10-13) into gomp-4_0-branch, > which is the trunk revision before Jakub's big "Merge from > gomp-4_1-branch to trunk", >

[gomp4] Merge gomp-4_1-branch r226438 (2015-07-31) into gomp-4_0-branch

2015-10-23 Thread Thomas Schwinge
Hi! On Fri, 23 Oct 2015 10:07:49 +0200, Thomas Schwinge wrote: > On Mon, 19 Oct 2015 17:54:46 +0200, I wrote: > > [...] Jakub's big "Merge from > > gomp-4_1-branch to trunk", > > <http://news.gmane.org/find-root.php?message_id=%3C20151013191214.GL478%

[gomp4] Merge gomp-4_1-branch r228761 (2015-10-13) into gomp-4_0-branch

2015-10-23 Thread Thomas Schwinge
Hi! On Fri, 23 Oct 2015 12:48:23 +0200, I wrote: > On Fri, 23 Oct 2015 10:07:49 +0200, I wrote: > > On Mon, 19 Oct 2015 17:54:46 +0200, I wrote: > > > [...] Jakub's big "Merge from > > > gomp-4_1-branch to trunk", > > >

[gomp4] Merge trunk r228777 (2015-10-13) into gomp-4_0-branch

2015-10-23 Thread Thomas Schwinge
Hi! On Fri, 23 Oct 2015 15:38:31 +0200, I wrote: > On Fri, 23 Oct 2015 12:48:23 +0200, I wrote: > > On Fri, 23 Oct 2015 10:07:49 +0200, I wrote: > > > On Mon, 19 Oct 2015 17:54:46 +0200, I wrote: > > > > [...] Jakub's big "Merge from > > > > gomp-4_1-branch to trunk", > > > >

Re: [patch] Add counter inits to zero_iter_bb in expand_omp_for_init_counts

2015-10-23 Thread Thomas Schwinge
Hi Jakub and Tom! On Thu, 1 Oct 2015 15:37:26 +0200, Tom de Vries wrote: > On 01/10/15 14:49, Jakub Jelinek wrote: > > On Thu, Oct 01, 2015 at 02:46:01PM +0200, Tom de Vries wrote: > >> this patch adds initialization in zero_iter_bb of counters introduced in > >> expand_omp_for_init_counts. > >>

Re: [gomp4] Merge gomp-4_1-branch r228761 (2015-10-13) into gomp-4_0-branch

2015-10-23 Thread Thomas Schwinge
Hi Jakub! On Fri, 23 Oct 2015 15:58:47 +0200, Jakub Jelinek wrote: > On Fri, Oct 23, 2015 at 03:38:31PM +0200, Thomas Schwinge wrote: > > On Fri, 23 Oct 2015 12:48:23 +0200, I wrote: > > > On Fri, 23 Oct 2015 10:07:49 +0200, I wrote: > > > > On Mon, 19 Oc

[gomp4] Merge trunk r229177 (2015-10-22) into gomp-4_0-branch

2015-10-24 Thread Thomas Schwinge
Hi! Committed to gomp-4_0-branch in r229286: commit 1f455fe59102d51011da2ef885731830c3c24368 Merge: 1bc39c0 ecebe44 Author: tschwinge Date: Sat Oct 24 14:34:38 2015 + svn merge -r 228777:229177 svn+ssh://gcc.gnu.org/svn/gcc/trunk git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc

<    6   7   8   9   10   11   12   13   14   15   >