From: edhall@ayched.com
To: Ian Grant <I.A.N.Grant@damtp.cam.ac.uk>
Cc: axp-list@redhat.com
Subject: Re: On Alpha, SQRT slows down after RH5.1 upgrade
Date: Mon, 22 Jun 1998 23:33:08 -0700 [thread overview]
Message-ID: <199806230633.XAA19244@terminus.ayched.com> (raw)
In-Reply-To: Your message of "Mon, 22 Jun 1998 08:55:57 BST." <Pine.OSF.3.96.980622081821.15265B-100000@quark.amtp.cam.ac.uk>
On Mon, 22 Jun 1998 Ian Grant wrote:
> On Sat, 20 Jun 1998 edhall@ayched.com wrote:
> > I've recently upgraded my 164LX to Red Hat 5.1. As a result, one of my
> > numerical programs (which happens to do lots of square roots) has slowed
> > down by a factor of about seven! Recompiling with profiling confirms that
> > it is now spending an overwhelming amount of its time in "__ieee754_sqrt".
> I haven't seen this, but I'm not too surprised. IIRC there was a bug in
> the glibc square root function on Alphas, so your previous code may have
> been faster, but the results could well have been wrong.
Maybe, but I doubt that a fix would cause it to slow down by over an order
of magnitude.
> You could install the SRPMs for the old glibc and the new one, locate the
> sqrt code and do a diff to see what's happened.
Good idea; I tried a somewhat different tack, and used an adaptation of Cray's
fast math library's sqrt(). Now my code runs faster than ever. And at least
for the domain I'm using it over, the Cray routine seem accurate.
-Ed Hall
edhall@ayched.com
next prev parent reply other threads:[~1998-06-23 6:33 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-06-20 21:16 On Alpha, SQRT slows down after RH5.1 upgrade edhall
1998-06-22 7:55 ` Ian Grant
1998-06-23 6:33 ` edhall [this message]
1998-06-23 22:03 ` Richard Henderson
1998-06-25 13:40 ` Kazushige Goto
1998-06-25 16:04 ` Richard Henderson
1998-06-26 12:47 ` Kazushige Goto
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