From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 16208 invoked from network); 23 Jun 1998 06:33:41 -0000 Received: from terminus.ayched.com (205.147.7.170) by mail2.redhat.com with SMTP; 23 Jun 1998 06:33:41 -0000 Received: from terminus.ayched.com (localhost [127.0.0.1]) by terminus.ayched.com (8.8.7/8.8.7) with ESMTP id XAA19244; Mon, 22 Jun 1998 23:33:09 -0700 Message-Id: <199806230633.XAA19244@terminus.ayched.com> X-Mailer: exmh version 2.0.2 To: Ian Grant cc: axp-list@redhat.com From: edhall@ayched.com Subject: Re: On Alpha, SQRT slows down after RH5.1 upgrade In-Reply-To: Your message of "Mon, 22 Jun 1998 08:55:57 BST." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 22 Jun 1998 23:33:08 -0700 Sender: edhall@terminus.ayched.com 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