From: "Wes Bauske" <wsb@paralleldata.com>
To: axp-list@redhat.com
Subject: Re: RH5.1 axp floating point performance
Date: Fri, 14 Aug 1998 02:06:43 +0000 [thread overview]
Message-ID: <35D39BB3.2ACD6BFD@paralleldata.com> (raw)
In-Reply-To: 199808140100.SAA02697@lamrc.lamrc.com
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 <math.h>
>
> 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
next prev parent reply other threads:[~1998-08-14 12:26 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-08-13 17:12 RH5.1 axp floating point performance Cooperberg, David
1998-08-14 1:26 ` Michal Jaegermann
1998-08-14 2:06 ` Wes Bauske [this message]
1998-08-14 12:45 ` Harvey J. Stein
1998-08-14 19:52 ` Wes Bauske
1998-08-14 3:01 ` Alvin Starr
1998-08-14 12:36 ` Ken Hansen
[not found] ` <35D43B4E.59E2B600@iis.fhg.de>
[not found] ` <35D48F2C.F3C@njcc.com>
1998-08-16 16:38 ` Stefan Schroepfer
1998-08-16 18:44 ` Richard Henderson
1998-08-17 9:43 ` Stefan Schroepfer
1998-08-14 8:46 ` Stefan Schroepfer
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