[MPIWG Fortran] ticket 351

Bill Long longb at cray.com
Mon Nov 9 08:37:32 CST 2015


On Nov 9, 2015, at 8:24 AM, Jeff Hammond <jeff.science at gmail.com> wrote:

> Did you read the ticket?  We need this for the same reason MPI_Init() takes argc/argv even though C main() already has them.

But the C standard does not implicitly assume every program is parallel. 

> 
> While it may be true that process managers are magically fixing argc/argv, this is not guaranteed by any standard.

The Fortran standard is intentionally vague to allow for environments where there is no command line, but rather (for example) the code starts executing by clicking a graphic button on the screen.  The standard is likely to not include specific words about program launchers that might turn into bit rot in the future.   If your favorite compiler returns the launcher text as part of the command line, complain.

While the new proposed routines are trivial to implement (assuming they have the same arguments as the corresponding Fortran ones),  they add to one of MPI’s most serious flaws - way to many routines already. 

Cheers,
Bill


> 
> Jeff
> 
> On Mon, Nov 9, 2015 at 6:21 AM, Bill Long <longb at cray.com> wrote:
> Hi Jeff,
> 
> I don’t see the value of this.  The Fortran intrinsics GET_COMMAND and friends should already do what you want.  Fortran programs are now presumed parallel. The intrinsics should know how to strip off the “launcher” part of the command line.  At least that is how the Cray versions have worked from the beginning.   Experiments are  in order for other vendors, as a check.
> 
> Cheers,
> Bill
> 
> 
> 
> On Nov 9, 2015, at 8:13 AM, Jeff Hammond <jeff.science at gmail.com> wrote:
> 
> > we did a lot of work on https://svn.mpi-forum.org/trac/mpi-forum-web/ticket/351.  do we intend to move forward this for MPI 4+?  if yes, we need to migrate the trac ticket to a github issue.
> >
> > jeff
> >
> > --
> > Jeff Hammond
> > jeff.science at gmail.com
> > http://jeffhammond.github.io/
> > _______________________________________________
> > mpiwg-fortran mailing list
> > mpiwg-fortran at lists.mpi-forum.org
> > http://lists.mpi-forum.org/mailman/listinfo.cgi/mpiwg-fortran
> 
> Bill Long                                                                       longb at cray.com
> Fortran Technical Support  &                                  voice:  651-605-9024
> Bioinformatics Software Development                     fax:  651-605-9142
> Cray Inc./ Cray Plaza, Suite 210/ 380 Jackson St./ St. Paul, MN 55101
> 
> 
> _______________________________________________
> mpiwg-fortran mailing list
> mpiwg-fortran at lists.mpi-forum.org
> http://lists.mpi-forum.org/mailman/listinfo.cgi/mpiwg-fortran
> 
> 
> 
> -- 
> Jeff Hammond
> jeff.science at gmail.com
> http://jeffhammond.github.io/
> _______________________________________________
> mpiwg-fortran mailing list
> mpiwg-fortran at lists.mpi-forum.org
> http://lists.mpi-forum.org/mailman/listinfo.cgi/mpiwg-fortran

Bill Long                                                                       longb at cray.com
Fortran Technical Support  &                                  voice:  651-605-9024
Bioinformatics Software Development                     fax:  651-605-9142
Cray Inc./ Cray Plaza, Suite 210/ 380 Jackson St./ St. Paul, MN 55101





More information about the mpiwg-fortran mailing list