[patch][gomp4] openacc loops
Cesar Philippidis
cesar@codesourcery.com
Tue Jun 3 23:00:00 GMT 2014
This patch, which is derived from Ilmir Usmanov's work posted here
<https://gcc.gnu.org/ml/gcc-patches/2014-04/msg00027.html>, implements
the loop directive in openacc. The original patch is mostly intact,
however, I did disable support for do concurrent loops since openacc
2.0a supports fortran up to fortran 2003. Furthermore, in order to make
the patch yield more interesting results, I've also enabled the private
clause. Is this patch ok for the gomp-4_0-branch?
One item on my to do list is adding support for subarrays in openacc in
fortran. So far I've got Ilmir's patch
<https://gcc.gnu.org/ml/gcc-patches/2014-05/msg01832.html> to work with
some local arrays, but not with allocatable arrays. I saw some chatter
on IRC this morning regarding array pointers and allocatable arrays. I'm
curious about how aliasing is going to be detected. Is that going to be
handled inside libgomp or by the compiler? Eg, consider a subroutine
which takes in to allocatable arrays as parameters, a and b. What
happens when a == b? We don't want to have two different copies of
whatever a and b point to on the target.
Thanks,
Cesar
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fortran-oacc-loops.diff
Type: text/x-patch
Size: 16945 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20140603/81be50ad/attachment.bin>
More information about the Fortran
mailing list