On 12/08/2015 08:22 AM, James Norris wrote: >> 2. It appears that deviceptr code in GOACC_parallel_keyed is mostly >> identical to GOACC_data_start. Can you put that duplicate code into >> a function? That would be easier to maintain in the long run. >> > > Fixed.
Where? I don't see a patch. Since you're working on fortran, can you take a look at how gfc_match_omp_clauses is handling OMP_CLAUSE_DEVICEPTR. It seems overly confusing to me. Could it be done in a similar way as OMP_CLAUSE_COPYIN, i.e., using gfc_match_omp_map_clause? Cesar