[gomp4] Fix Fortran deviceptr

Cesar Philippidis cesar@codesourcery.com
Tue Dec 8 17:11:00 GMT 2015


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



More information about the Gcc-patches mailing list