Re: [PATCH, OpenACC] Enable GOMP_MAP_FIRSTPRIVATE_INT for OpenACC

2018-12-22 Thread Julian Brown
On Tue, 18 Dec 2018 13:47:34 +0100 Jakub Jelinek wrote: > On Thu, Dec 13, 2018 at 03:44:25PM +, Julian Brown wrote: > > +static tree > > +convert_to_firstprivate_int (tree var, gimple_seq *gs) > > +{ > > + tree type = TREE_TYPE (var), new_type = NULL_TREE; > > + tree tmp = NULL_TREE; > > +

Re: [PATCH, OpenACC] Enable GOMP_MAP_FIRSTPRIVATE_INT for OpenACC

2018-12-18 Thread Jakub Jelinek
On Thu, Dec 13, 2018 at 03:44:25PM +, Julian Brown wrote: > +static tree > +convert_to_firstprivate_int (tree var, gimple_seq *gs) > +{ > + tree type = TREE_TYPE (var), new_type = NULL_TREE; > + tree tmp = NULL_TREE; > + > + if (omp_is_reference (var)) > +type = TREE_TYPE (type); > + > +

Re: [PATCH, OpenACC] Enable GOMP_MAP_FIRSTPRIVATE_INT for OpenACC

2018-12-13 Thread Julian Brown
On Fri, 7 Dec 2018 15:05:46 +0100 Jakub Jelinek wrote: > On Thu, Dec 06, 2018 at 10:40:41PM +, Julian Brown wrote: > > + && (TREE_CODE (inner_type) == REAL_TYPE > > + || (!omp_is_reference (var) > > + && INTEGRAL_TYPE_P (inner_type)) > > +

Re: [PATCH, OpenACC] Enable GOMP_MAP_FIRSTPRIVATE_INT for OpenACC

2018-12-07 Thread Jakub Jelinek
On Thu, Dec 06, 2018 at 10:40:41PM +, Julian Brown wrote: > + && (TREE_CODE (inner_type) == REAL_TYPE > + || (!omp_is_reference (var) > + && INTEGRAL_TYPE_P (inner_type)) > + || TREE_CODE (inner_type) == INTEGER_TYPE) Not sure I u

Re: [PATCH, OpenACC] Enable GOMP_MAP_FIRSTPRIVATE_INT for OpenACC

2018-12-06 Thread Julian Brown
On Tue, 4 Dec 2018 15:27:12 +0100 Jakub Jelinek wrote: > On Thu, Sep 20, 2018 at 07:38:04PM -0400, Julian Brown wrote: > > 2018-09-20 Cesar Philippidis > > Julian Brown > > > > gcc/ > > * omp-low.c (maybe_lookup_field_in_outer_ctx): New function. > > (convert_to_firs

Re: [PATCH, OpenACC] Enable GOMP_MAP_FIRSTPRIVATE_INT for OpenACC

2018-12-04 Thread Jakub Jelinek
On Thu, Sep 20, 2018 at 07:38:04PM -0400, Julian Brown wrote: > 2018-09-20 Cesar Philippidis > Julian Brown > > gcc/ > * omp-low.c (maybe_lookup_field_in_outer_ctx): New function. > (convert_to_firstprivate_int): New function. > (convert_from_firstprivate_i

[PATCH, OpenACC] Enable GOMP_MAP_FIRSTPRIVATE_INT for OpenACC

2018-09-20 Thread Julian Brown
This patch (by Cesar) changes the way that mapping of firstprivate scalars works for OpenACC. For scalars whose type has a size equal to or smaller than the size of a pointer, rather than copying the value of the scalar to the target device and having a separate mapping for a pointer to the copied