On Wed, Mar 02, 2022 at 03:12:30PM +0000, Stubbs, Andrew wrote:
> Has anyone ever considered having GCC add the "simd" clause to offload (or 
> regular) loop nests automatically?
> 
> For example, something like "-fomp-auto-simd" would transform "distribute 
> parallel" to "distribute parallel simd" automatically. Loop nests that 
> already contain "simd" clauses or directives would remain unchanged, most 
> likely.

I'm afraid we can't do that, at least not always.  The simd has various
restrictions on what can appear inside of the body, etc. and we shouldn't
reject valid code just because we decided to add simd automatically (even if
the user asked for those through an option).
So, it could be done only if we would do analysis that it is safe to do
that.

        Jakub

Reply via email to