https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88076

--- Comment #2 from Nicolas Koenig <koenigni at gcc dot gnu.org> ---
> Once you are done on this, you might consider implementing a -parallel as in
> ifort.
> 
> This could conveniently be triggered in frontend-passes.c, I suspect. ie.
> this would be a good place to check for dependencies within a do loop and
> signal, if there are none, that the loop can be parallelised. Then, with
> everything that you have learned about trans-*.c in dealing with coarrays,
> you should be able to do what is needed for do loops (and scalarization
> loops).
> 

I have a few ideas how we could do that, but it might get quite interesting. Do
we spin up the threads once in the beginning or only when needed? And do we use
OpenMP (It might give problems if OpenMP is used by the code itself)? But I'll
think about that once the coarrays are done, which might take a bit :D

> Just a thought.
> 
> Paul

Reply via email to