Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
* gcc vs Dec Unix c
@ 1998-01-08  5:00 fonte
  1998-01-09  5:00 ` Toon Moene
                   ` (3 more replies)
  0 siblings, 4 replies; 32+ messages in thread
From: fonte @ 1998-01-08  5:00 UTC (permalink / raw)
  To: fonte


  We have a Dec Alpha (EV56-LX 533 MHz w/ a NCR PCI Ultra SCSI
controller) running linux (RedHat 5.0).  The floating point performance
is poor.  From reading the news groups it seems the gcc compiled
executable is much slower then Dec's and the solution is to compile under
Dec Unix and then switch back to Linux.  Is this the best solution (if we
don't want to covert our code to fortran)?  Given only one system what is
the best way to do this?  We have Dec Unix 4.0b but it will not install
on our system (the kernel does not like our scsi controller).  For those
of you with similiar equipment out there what have you done i.e. what
works?	What srm do we need (we have lx164.rom which allows us to at
least start the installation of DU 4.0b).  We also have AlphaBios 5.60-3
which allows us to launch WinNT or Linux.  Do we need DU 4.0c?	And
finally if we do get DU up and running.  Once we compile our code under
DU what libraries do we need to move over to linux, where to they need to
be installed, etc.  I have not found a faq that deals with any of this.

   Thanks,

   Michael

-------------------==== Posted via Deja News ====-----------------------
      http://www.dejanews.com/     Search, Read, Post to Usenet



^ permalink raw reply	[flat|nested] 32+ messages in thread
* Re: gcc vs Dec Unix c
@ 1998-01-13  5:00 Robert Harley
  1998-01-14  5:00 ` cekim
  0 siblings, 1 reply; 32+ messages in thread
From: Robert Harley @ 1998-01-13  5:00 UTC (permalink / raw)



cekim@ix.netcom.com writes:
>PPRO 200 w/cos =10 minutes -120 billion cycles
>ALpha 533 w/cos =65 minutes -2.08 trillion cycles

I think everyone is missing the point here.
You called cos() with some very large arguments.

With small arguments the Alpha's software is twice as fast as the
PPro's hardware.

With large arguments, the Alpha slows down to a sixth the speed of the
PPro.  The reason is simple: the PPro gives wrong answers.  Intel
didn't bother to reduce mod pi properly.

Example:

cos(1.0) a million times:
        answer                  time    error
Alpha    0.54030230586813976501 0.344   4.76 E-17
PPro     0.54030230586813976501 0.620   4.76 E-17

cos(123456789.0) a million times:
        answer                  time    error
Alpha   -0.16283121219902166321 3.925   -1.00 E-17
PPro    -0.16283121220058985323 0.700   -1.57 E-12


Note that the error on the PPro is 100000 times too big for double
precision.

Bye,
  Rob.
PS: Note that there is lots of room to optimise the software cos() e.g.,
    I doubled the speed in one application.  The PPro's hardware
    obviously cannot be optimised by the user.



^ permalink raw reply	[flat|nested] 32+ messages in thread

end of thread, other threads:[~1998-01-17  5:00 UTC | newest]

Thread overview: 32+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-01-08  5:00 gcc vs Dec Unix c fonte
1998-01-09  5:00 ` Toon Moene
1998-01-09  5:00 ` Toon Moene
1998-01-09  5:00 ` Toon Moene
1998-01-09  5:00 ` Jaap Schellekens
1998-01-09  5:00   ` cekim
1998-01-09  5:00     ` Peter Mardahl
1998-01-09  5:00       ` Craig Burley
1998-01-10  5:00       ` cekim
1998-01-10  5:00         ` Craig Burley
1998-01-13  5:00           ` cekim
1998-01-13  5:00             ` Craig Burley
1998-01-13  5:00               ` James Van Buskirk
1998-01-14  5:00                 ` brianh
1998-01-14  5:00                   ` James Van Buskirk
1998-01-13  5:00               ` [++] x86 FCOS (Was: Re: gcc vs Dec Unix c) Terje Mathisen
1998-01-13  5:00                 ` Andy Glew
1998-01-14  5:00                   ` Terje Mathisen
1998-01-13  5:00             ` gcc vs Dec Unix c Yan-Song Chen
1998-01-13  5:00               ` Greg Lindahl
1998-01-15  5:00               ` Lupo LeBoucher
1998-01-15  5:00                 ` Greg Lindahl
1998-01-13  5:00             ` Rob Komar
1998-01-14  5:00             ` bmeyer
1998-01-15  5:00               ` cekim
1998-01-14  5:00     ` Donald K.Sinclair
1998-01-14  5:00       ` Rob Komar
1998-01-16  5:00         ` Torbjorn Lindgren
1998-01-17  5:00           ` Rob Komar
1998-01-14  5:00       ` cekim
  -- strict thread matches above, loose matches on Subject: below --
1998-01-13  5:00 Robert Harley
1998-01-14  5:00 ` cekim

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox