Re: Who uses clapack?

From: Ron Shepard (ron-shepard_at_NOSPAM.comcast.net)
Date: 12/12/04


Date: Sun, 12 Dec 2004 11:21:35 -0600

In article <slrncroaij.tik.romanNOSPAM@theta1.cft.edu.pl>,
 Roman Werpachowski <"r o m a nNOSPAM"@theta1.cft.edu.pl> wrote:

> The only sensible way would be to have two functions: one which does the
> allocation, another which does not. The problem is, that sometimes one
> can flexibly choose a work space area, like in (D,S)SYEV routine. Small
> workspace conserves memory but large workspace gives better convergence.
> Which options should the self-allocating version of (D,S)SYEV choose?

Modern Fortran allows optional arguments, so the "sensible" way in
that language would be to specify the workspace with an optional
array. If specified during the call, then it is used, otherwise the
subroutine allocates its own workspace. Of course, this puts
additional burdens on other languages in cross-language projects to
support the fortran calling conventions. BTW, fortran also allows
the call to use a generic name (e.g. call syev() in the above
example), which is resolved to the specific precision based on the
data types of its arguments, in order to eliminate the (D,S)
portability problems when moving code between machines.

$.02 -Ron Shepard



Relevant Pages

  • Re: Who uses clapack?
    ... > allocation, another which does not. ... > workspace conserves memory but large workspace gives better convergence. ... that language would be to specify the workspace with an optional ... support the fortran calling conventions. ...
    (comp.lang.fortran)
  • Re: Who uses clapack?
    ... >>allocation, another which does not. ... >>workspace conserves memory but large workspace gives better convergence. ... > support the fortran calling conventions. ... of which are not even defined by the Fortran language. ...
    (comp.lang.fortran)
  • Re: Who uses clapack?
    ... >>allocation, another which does not. ... >>workspace conserves memory but large workspace gives better convergence. ... > support the fortran calling conventions. ... of which are not even defined by the Fortran language. ...
    (sci.math.num-analysis)
  • Re: allocatable non-dummy local variables and pointers to them
    ... must release the memory used by a process when the process terminates. ... I do remember that Fortran Powerstation 4.0 did have a memory leak ... digging to find whether it claims to be an f90 or f95 compiler. ... compiler has to behave for allocatables that get undefined allocation ...
    (comp.lang.fortran)
  • Re: Speed penalty for using allocatable arrays?
    ... "Leading dimension" means dimension 1, ... Fortran compilers, rather than having being left those writing Fortran ... allocation available in Fortran 90/95. ... the arrays are allocated once at the ...
    (comp.lang.fortran)

Quantcast