Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Michal Jaegermann <michal@ellpspace.math.ualberta.ca>
Subject: Re: Perf. of F77 on Alpha
Date: Thu, 13 Nov 1997 14:41:06 -0700 (MST)	[thread overview]
Message-ID: <199711132141.OAA25393@ellpspace.math.ualberta.ca> (raw)
In-Reply-To: <346B7C36.F55B1A2@cica.es>

> 
> The following (stupid) program:
[calculates a lot of square roots and stores them in an array - snip]
> takes 21 seconds when compiled with g77 -O2 -funroll-loops and 11
> seconds when compiled with Digital f77 -fast on our 500 MHz 21164.
> This difference should be mainly due to the efficient implementation
> of the Digital sqrt library function.

Actually if this would be really true that would be very surprising.
It is really hard to slow down any sane implementation of sqrt to
that extent.  Newton-Raphson converges very fast and there are some
shortcuts (Alpha does not have a sqrt in a hardware, does it?).

In a light of recent annoucements about egcs based g77 I would strongly
suspect that this is array index calculations which kill here g77
performance.  Anybody with egcs-g77 handy to check this hypothesis?

Fixing sqrt is likely a magnitude times easier than fixing a compiler
code generator and optimizer. :-)

  Michal

-- 
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

       reply	other threads:[~1997-11-13 21:41 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <346B7C36.F55B1A2@cica.es>
1997-11-13 21:41 ` Michal Jaegermann [this message]
1997-11-13 22:34   ` Perf. of F77 on Alpha Tom Linden
1997-11-13 22:16 Claus Denk
  -- strict thread matches above, loose matches on Subject: below --
1997-11-13 22:13 Toon Moene
1997-11-13 22:08 Wes Bauske
1997-11-13 20:16 Barksdale, Ray
     [not found] <346B57C0.41C6@paralleldata.com>
1997-11-13 19:52 ` Michal Jaegermann
1997-11-13 19:40 Wes Bauske
     [not found] <Pine.SGI.3.96.971113110232.6251A-100000@zorn>
1997-11-13 16:00 ` Tom Linden
1997-11-13 16:18   ` David van der Spoel
1997-11-13 10:06 David van der Spoel
1997-11-13  9:25 Stefan Schroepfer
     [not found] <Pine.SGI.3.96.971112231225.4609A-100000@zorn>
1997-11-13  6:37 ` Maurice W. Hilarius
1997-11-12 22:23 David van der Spoel
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox