[Beowulf] Teaching Scientific Computation (looking for the perfect text)

Greg Lindahl lindahl at pbm.com
Tue Nov 20 15:22:27 PST 2007


On Tue, Nov 20, 2007 at 05:18:59PM -0500, Peter St. John wrote:

> It turns out that the automaton
> produces C which is morphed to look like Fortran, so for example this:
> 
> 100 WRITE (6, 200, X)
> 200 FORMAT(...)

In all fairness, this is extremely difficult. You can turn a few
simple formats into fprintfs(), but most formats are not that simple.
And the commonly-used * formats require funky calls. And since you
want to re-use a real Fortran I/O library instead of reinventing it,
you tend to end up with a translation which is close to what the
Fortran FE generates anyway: "start record", "emit this part of the
line", ..., "end record".

The actual computation is often pretty readable in Ctran.

-- greg




More information about the Beowulf mailing list