(j3.2006) overloading reshape

mark leair PGI mark.leair
Fri Feb 13 18:18:17 EST 2015


I have a question from one of our engineers working on CUDA Fortran and OpenACC.

We are attempting to overload many of the F90 array intrinsics for CUDA Fortran/OpenACC to work on device data.

The way reshape() is defined, it cannot be overloaded in Fortran.  The rank of the result array is dependent on the size of the shape argument.  Generic matching does not depend on size, only type, kind and rank.

I think this is the only intrinsic function that takes an array that cannot be overloaded in pure fortran.

Does anyone know of a work-around to this issue?



This email message is for the sole use of the intended recipient(s) and may contain
confidential information.  Any unauthorized review, use, disclosure or distribution
is prohibited.  If you are not the intended recipient, please contact the sender by
reply email and destroy all copies of the original message.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.j3-fortran.org/pipermail/j3/attachments/20150213/25284e81/attachment.html 

More information about the J3 mailing list