[MPIWG Fortran] INTENT and ASYNCHRONOUS

Jeff Squyres (jsquyres) jsquyres at cisco.com
Wed Jun 6 10:37:30 CDT 2018


On Jun 6, 2018, at 11:29 AM, Bill Long <longb at cray.com> wrote:
> 
>> -----
>> OMPI_FORTRAN_IGNORE_TKR_TYPE, INTENT(IN), ASYNCHRONOUS :: origin_addr
>>                                           ^
>> "../../../../../openmpi-master-201806060243-64a5baa/ompi/mpi/fortran/use-mpi-f08/accumulate_f08.F90", Line = 16, Column = 46: ERROR: Attributes ASYNCHRONOUS and INTENT must not appear in the same attribute list.
>> -----
> 
> I don’t see a restriction like that, at least in F2018.  I tried this:
> 
>   Subroutine csub (x) 
>     real,intent(inout),asynchronous :: x
>   end Subroutine csub
> 
> with maximum diagnostics and got no messages with the Cray compiler which is quite good at testing conformance. 

Ok.  Thanks.

>> Or is this a compiler bug?
> 
> It would appear to be the case.  It might be the case that the usage in the routine is incompatible with INTENT(IN), but that message should be differently worded.   Of course, OMPI_FORTRAN_IGNORE_TKR_TYPE is certainly not a valid type declaration.  I assume they intend TYPE(*). 

Yeah, that's a #define.

-- 
Jeff Squyres
jsquyres at cisco.com



More information about the mpiwg-fortran mailing list