From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 12348 invoked from network); 14 Aug 1998 12:26:05 -0000 Received: from new.mx7.smtp.psi.net (38.8.34.2) by mail2.redhat.com with SMTP; 14 Aug 1998 12:26:05 -0000 Received: from paralleldata.com by new.mx7.smtp.psi.net (8.8.5/SMI-5.4-PSI) id WAA22884; Thu, 13 Aug 1998 22:12:18 -0400 (EDT) Received: by paralleldata.com from localhost (router,SLMail V2.5); Thu, 13 Aug 1998 21:08:47 -0500 Received: by paralleldata.com from paralleldata.com (208.252.135.59::mail daemon; unverified,SLMail V2.5); Thu, 13 Aug 1998 21:08:46 -0500 Sender: "Wsb" Message-ID: <35D39BB3.2ACD6BFD@paralleldata.com> Date: Fri, 14 Aug 1998 02:06:43 +0000 From: "Wes Bauske" Organization: Parallel Data Systems X-Mailer: Mozilla 4.04 [en] (X11; U; Linux 2.0.33 i686) MIME-Version: 1.0 To: axp-list@redhat.com Subject: Re: RH5.1 axp floating point performance References: <199808140100.SAA02697@lamrc.lamrc.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cooperberg, David wrote: > > I have noticed a considerable decline in floating-point performance in > upgrading from Redhat4.2 (for alpha) to Redhat 5.1 (same alpha). As an > example, the spec.c code below > executes in 27. seconds (time output) when run on my 433MHz RH5.1 alpha > when compiled as "gcc spec.c -o spec -lm" while it runs in 4.3 seconds > on > the same machine if I link to the old (from RH4.2) math library, > -lm-1.99, > (though the compile gives me warnings). I have tried a variety of > compiler > flags when linking with the new math library but have not improved > performance. I gather RH5.1 has a new glibc package and was wondering > if I > have to live with this huge performance hit. Is there a patch or flag I > am > missing? Has anyone else had problems? > > #include > > int main() > { > int i, j; > double ftemp; > > ftemp=1.; > for(i=1;i<10000;i++) { > for(j=1;j<1000;j++) { > ftemp+= 2.*sqrt(ftemp); > ftemp*=0.5; > } > } > printf("%g\n",ftemp); > } > The problem is they de-activated the ASM version of sqrt() because it had edge case problems. (Richard?) So, maybe you should try the libffm.a code that was just mentioned a few replies back... Wes