Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Alvin Starr <alvin@iplink.net>
To: "Cooperberg, David" <david.cooperberg@lamrc.com>
Cc: "'axp-list@redhat.com'" <axp-list@redhat.com>
Subject: Re: RH5.1 axp floating point performance
Date: Thu, 13 Aug 1998 23:01:45 -0400 (EDT)	[thread overview]
Message-ID: <Pine.OSF.3.91.980813230013.1053R-100000@caesar.iplink.net> (raw)
In-Reply-To: <199808140100.SAA02697@lamrc.lamrc.com>

On Thu, 13 Aug 1998, 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);
> }

If I remember correctly this issue came up before and was explained as a 
problem with the sqrt function. The 4.2 was faster but had a bug that 
could cause some inaccuracy. 

Alvin Starr                   ||   voice: (416)585-9971
Interlink Connectivity        ||   fax:   (416)585-9974
alvin@iplink.net              ||


  parent reply	other threads:[~1998-08-14 12:24 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
1998-08-14 12:45   ` Harvey J. Stein
1998-08-14 19:52     ` Wes Bauske
1998-08-14  3:01 ` Alvin Starr [this message]
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