Re: [gomp4] enable GOMP_MAP_FIRSTPRIVATE_INT in OpenACC

2017-02-10 Thread Tom de Vries
On 30/01/17 11:18, Thomas Schwinge wrote: +static tree +convert_from_firstprivate_pointer (tree var, bool is_ref, gimple_seq *gs) +{ + tree type = TREE_TYPE (var); + tree new_type = NULL_TREE; + tree tmp = NULL_TREE; + tree inner_type = NULL_TREE; [...]/source-gcc/gcc/omp-low.c: In funct

Re: [gomp4] enable GOMP_MAP_FIRSTPRIVATE_INT in OpenACC

2017-02-01 Thread Cesar Philippidis
On 01/30/2017 02:18 AM, Thomas Schwinge wrote: > Hi Cesar! > > On Fri, 27 Jan 2017 07:45:52 -0800, Cesar Philippidis > wrote: >> If you take a close look at lower_omp_target, you'll notice that I'm >> gave reference types special treatment. Specifically, I disabled this >> optimization on non-IN

Re: [gomp4] enable GOMP_MAP_FIRSTPRIVATE_INT in OpenACC

2017-01-30 Thread Thomas Schwinge
Hi Cesar! On Fri, 27 Jan 2017 07:45:52 -0800, Cesar Philippidis wrote: > If you take a close look at lower_omp_target, you'll notice that I'm > gave reference types special treatment. Specifically, I disabled this > optimization on non-INTEGER_TYPE and floating point values, because the > nvptx

[gomp4] enable GOMP_MAP_FIRSTPRIVATE_INT in OpenACC

2017-01-27 Thread Cesar Philippidis
This patch does the following two things: 1) Enable GOMP_MAP_FIRSTPRIVATE_INT in OpenaCC. 2) Extends the 'INT' values to handle floats and doubles via type casting. OpenACC handles OMP_CLAUSE_FIRSTPRIVATE slightly different to OpenMP; lower_omp_target changes it to a data map clause. Conseq