(j3.2006) an intrinsic for SORT()

Bill Long longb
Tue Feb 6 13:52:36 EST 2018


> On Feb 6, 2018, at 12:07 PM, Van Snyder <van.snyder at jpl.nasa.gov> wrote:
> 
> On Tue, 2018-02-06 at 16:24 +0000, Bill Long wrote:
>>  So the rationale for the intrinsic is purely one of convenience. 
> 
>> And the code is not that hard to write.  It?s unclear if providing an
>> intrinsic for this is worthwhile.
> 
> 
>>  Certainly as a first pass,  we should look at only a single-image
>> sort routine. 
> 
> Where's the compelling use case for this?
> 
> As a first pass, we should ignore this.  There are many things that are
> more important and that can't be done with already-existing library
> routines.  Let's not waste our time re-inventing the wheel.


I?m happy with doing nothing here.  But, IF we do something, start with a single-image routine only. 

The advantage of an intrinsic is that it provides a portable calling sequence.  And the user does not need to be concerned about finding and linking a library.  We have other, similar, intrinsics.  MATMUL, for example.  Certainly the ?use case? of sorting a numeric array exists.  The question is whether the advantages of making that operation an intrinsic is sufficient motivation for making this a feature. 

Cheers,
Bill

> 
> 
> _______________________________________________
> J3 mailing list
> J3 at mailman.j3-fortran.org
> http://mailman.j3-fortran.org/mailman/listinfo/j3

Bill Long                                                                       longb at cray.com
Principal Engineer, Fortran Technical Support &   voice:  651-605-9024
Bioinformatics Software Development                      fax:  651-605-9143
Cray Inc./ 2131 Lindau Lane/  Suite 1000/  Bloomington, MN  55425





More information about the J3 mailing list