Automatic openacc loop partitioning

Nathan Sidwell
Fri Nov 13 14:22:00 GMT 2015

this patch applies automatic loop partitioning to loops that are marked 'auto' 
and 'independent'. 'independent' is implicit inside a parallel region.

We were unnecessarily still emitting a sorry for the auto, seq and independent 
clauses in omp lowering.  The main event is in the target compiler, when we know 
which partitioning axes are available.  A simple DFS walk of the loops assigns 
the innermost available partition to such loops.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: trunk-auto-1113.diff
Type: text/x-patch
Size: 14960 bytes
Desc: not available
URL: <>

More information about the Gcc-patches mailing list