From: Wes Bauske <wsb@paralleldata.com>
Subject: Re: Perf. of F77 on Alpha
Date: Thu, 13 Nov 1997 16:08:00 -0600 [thread overview]
Message-ID: <5246f37381c783c1386b6c91c32eb610.axp-list@archive.invalid> (raw)
Michal Jaegermann wrote:
>
> >
> > Some tests I did indicate any Alpha divide (float/int) is slow.
> > The table lookup for sqrt() is probably the fastest technique for
> > an approximation.
>
> Actually on machines like Alpha a table lookup is NOT a good technique
> in general. It tends to generate page faults and kills caches.
> For a fast RISC a short localized computation can be vastly preferable
> over a table lookup. Things were different in the past.
That's true if the table is large. Not true if the table is "reasonable"
Depends on page size but a 4K page gives you 1024 floats for a table,
sufficient for lots of types of calculations. In fact, certain RISC
vendor high performance libraries use this technique plus a twiddle.
>
> If 1/sqrt() is on a critical path then a specialized code which computes
> this function instead of calling sqrt and dividing 1.0 by results
> could be a much better answer.
I agree. For mis-behaved functions, this is the only way to go.
>
> Michal
>
> --
> To unsubscribe: send e-mail to axp-list-request@redhat.com with
> 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
--
Regards,
Wes
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
next reply other threads:[~1997-11-13 22:08 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-11-13 22:08 Wes Bauske [this message]
-- strict thread matches above, loose matches on Subject: below --
1997-11-13 22:16 Perf. of F77 on Alpha Claus Denk
1997-11-13 22:13 Toon Moene
[not found] <346B7C36.F55B1A2@cica.es>
1997-11-13 21:41 ` Michal Jaegermann
1997-11-13 22:34 ` Tom Linden
1997-11-13 20:16 Barksdale, Ray
[not found] <346B57C0.41C6@paralleldata.com>
1997-11-13 19:52 ` Michal Jaegermann
1997-11-13 19:40 Wes Bauske
[not found] <Pine.SGI.3.96.971113110232.6251A-100000@zorn>
1997-11-13 16:00 ` Tom Linden
1997-11-13 16:18 ` David van der Spoel
1997-11-13 10:06 David van der Spoel
1997-11-13 9:25 Stefan Schroepfer
[not found] <Pine.SGI.3.96.971112231225.4609A-100000@zorn>
1997-11-13 6:37 ` Maurice W. Hilarius
1997-11-12 22:23 David van der Spoel
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