[committed] [PR90921] Fortran OpenACC 'declare' directive's module handling causes duplicate data clauses (was: [PATCH, OpenACC] Fortran "declare create"/allocate support for OpenACC)

2019-06-18 Thread Thomas Schwinge
Hi! On Thu, 4 Oct 2018 14:04:13 +0100, Julian Brown wrote: > On Sun, 23 Sep 2018 10:48:52 +0200 > Bernhard Reutner-Fischer wrote: > > > On Sat, 22 Sep 2018 at 00:32, Julian Brown > > wrote: > > > > @@ -6218,13 +6221,20 @@ add_clause (gfc_symbol *sym, gfc_omp_map_op > > map_op) { > >gfc_om

Re: [PATCH, OpenACC] Fortran "declare create"/allocate support for OpenACC

2018-12-07 Thread Jakub Jelinek
On Thu, Oct 04, 2018 at 02:04:13PM +0100, Julian Brown wrote: > gcc/ > * omp-low.c (scan_sharing_clauses): Update handling of OpenACC declare > create, declare copyin and declare deviceptr to have local lifetimes. > (convert_to_firstprivate_int): Handle pointer types. >

Re: [PATCH, OpenACC] Fortran "declare create"/allocate support for OpenACC

2018-10-04 Thread Julian Brown
On Sun, 23 Sep 2018 10:48:52 +0200 Bernhard Reutner-Fischer wrote: > On Sat, 22 Sep 2018 at 00:32, Julian Brown > wrote: > > @@ -6218,13 +6221,20 @@ add_clause (gfc_symbol *sym, gfc_omp_map_op > map_op) { >gfc_omp_namelist *n; > > + if (!module_oacc_clauses) > +module_oacc_clauses = g

Re: [PATCH, OpenACC] Fortran "declare create"/allocate support for OpenACC

2018-09-23 Thread Bernhard Reutner-Fischer
On Sat, 22 Sep 2018 at 00:32, Julian Brown wrote: > > On Fri, 21 Sep 2018 03:14:22 +0200 > Bernhard Reutner-Fischer wrote: > > > > diff --git a/gcc/fortran/trans-array.c b/gcc/fortran/trans-array.c > > > index 95ea615..2ac5908 100644 > > > --- a/gcc/fortran/trans-array.c > > > +++ b/gcc/fortran/t

Re: [PATCH, OpenACC] Fortran "declare create"/allocate support for OpenACC

2018-09-21 Thread Julian Brown
On Fri, 21 Sep 2018 03:14:22 +0200 Bernhard Reutner-Fischer wrote: > > diff --git a/gcc/fortran/trans-array.c b/gcc/fortran/trans-array.c > > index 95ea615..2ac5908 100644 > > --- a/gcc/fortran/trans-array.c > > +++ b/gcc/fortran/trans-array.c > > @@ -88,6 +88,7 @@ along with GCC; see the file CO

Re: [PATCH, OpenACC] Fortran "declare create"/allocate support for OpenACC

2018-09-20 Thread Bernhard Reutner-Fischer
[Please Cc the fortran list on fortran patches] On Thu, 20 Sep 2018 19:59:08 -0400 Julian Brown wrote: > From b63d0329fb73679b07f6318b8dd092113d5c8505 Mon Sep 17 00:00:00 2001 > From: Julian Brown > Date: Wed, 12 Sep 2018 20:15:08 -0700 > Subject: [PATCH 2/2] Fortran "declare create"/allocate s

[PATCH, OpenACC] Fortran "declare create"/allocate support for OpenACC

2018-09-20 Thread Julian Brown
This patch (a combination of several previous patches by Cesar) adds support for OpenACC 2.5's "declare create" directive with Fortran allocatable variables (2.13.2. create clause). Allocate and deallocate statements now allocate/deallocate memory on the target device as well as on the host. This