alphalinux.org high-perf list (1998-2001)
 help / color / mirror / Atom feed
* Re: Free Compaq Math Library for Linux
@ 1999-03-03 18:46 Joachim Wesner
  0 siblings, 0 replies; 4+ messages in thread
From: Joachim Wesner @ 1999-03-03 18:46 UTC (permalink / raw)


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2274 bytes --]

Oops, is it March 15, already ???

Robert Harley wrote:

> 

> Joachim quoted:

> >> Now, this CPML will enable customers to significantly increase the

> >> precision and speed of mathematical calculations by more than 10 times

> >> compared to other mathematical libraries currently available on Linux.

> 

> and wrote:

> 

> >I'd say, don't expect that much. And precision, AFAIK, is actually

> >comparable or worse than current libs

> 

> The file http://www.unix.digital.com/linux/cpml.0.1.tar.gz

> contains a README that gives the following numbers:

Snip on many numbers

 

> 

> Those suggest that the precision really is good and, compared to libm

> at least, there are several functions for which there is a 10x speed-up.

I see, this really is VERY good, I like it. But, where is the factor of

10 compared to any other lib currently available ? That's what O could

not believe ?

> 

> >(I played around with some DU binary, sqrt is NOT correctly rounded).

> 

> That happens is you use the "-fast" flag which is documented as:

> 

> ==============================================================================

>   -fast

>       Provides a single method for turning on a collection of optimizations

>       for increased performance.

> 

>       Note that the -fast flag can produce different results for floating-

>       point arithmetic and math functions, although most programs are not

>       sensitive to these differences.  [...]

> ==============================================================================

> 

> I doubt very much if the non "-fast" sqrt() has any last bit errors...

Yes, you must be right !! 

 

> >AND, regarding the latest discussion here, it's HEAVILY table driven !

> 

> Doh!  Is there any consensus on what size of tables are accpetable for

> a library?  For a specific app, it would be "as big as necessary to go

> as fast as possible" but for a library routine I try to stick to <=

> 256 bytes.

> 

Yes, I agree, I'm actually *IN* the "why not do it table driven"

fraction !! I already had started to work on a table driven version of

libffm, but could not (yet) go on. No further need to continue, I guess.

Thanx, Compaq !!

Joachim

(Robert, sorry for the 2nd mail, wrong reply address !)

^ permalink raw reply	[flat|nested] 4+ messages in thread
* Re: Free Compaq Math Library for Linux
@ 1999-03-03 17:36 Robert Harley
  0 siblings, 0 replies; 4+ messages in thread
From: Robert Harley @ 1999-03-03 17:36 UTC (permalink / raw)


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 4237 bytes --]

Joachim quoted:

>> Now, this CPML will enable customers to significantly increase the

>> precision and speed of mathematical calculations by more than 10 times

>> compared to other mathematical libraries currently available on Linux.

and wrote:

>I'd say, don't expect that much. And precision, AFAIK, is actually

>comparable or worse than current libs

The file http://www.unix.digital.com/linux/cpml.0.1.tar.gz

contains a README that gives the following numbers:

==============================================================================

              Accuracy                           Performance

        -----------------------   -----------------------------------------

                                               CPML            Fast CPML

                     Fast           Input   -----------       -----------

Func    CPML  libm   CPML  FFM      Value   Tru64 Linux libm  Tru64 Linux FFM

-----  ------------------------   --------------------------------------------

sqrt     .50   .50   1.90   .97       10.0    68   68   1017    41    44   75

sin      .54   .83   1.91  3.20       1.96    68   74    268    54    61   85

log10    .55  1.92   3.22  3.57        2.1    56   62    367    43    49  105

rsqrt   1.43     -      -  2.19       10.0    45   50      -     -     -   73

atan     .53   .76      -  1.86       200.    81   83    242     -     -   95

acos     .59   .88      -  1.44       -.99    89   95   1185     -     -  161

atan2   1.27  1.43      -  2.89    1.1,2.1   105  108    408     -     -  139

sinh     .51  1.78      -  2.43        2.1    78   83    535     -     -  122

log      .55   .85   3.45  3.78        2.1    56   62    299    43    49  104

tanh     .61  2.08      -  3.34        2.1   134  139    489     -     -  155

asin     .63   .85      -  2.50        .99    92   99   1193     -     -  162

tan      .54   .83   2.67  3.46       7.85    90  101    505    75    81   97

log2     .58     -      -  3.26       10.0    57   61      -     -     -  102

cosh     .51  1.31      -  2.51        2.1    79   82    440     -     -  122

cos      .53   .81   1.97  3.00       1.57    68   73    251    53    61   89

exp      .50   .85   3.53  2.14        2.1    62   67    376    47    52   87

pow      .51   .82   3.76  2706   1.1,10.1   113  118   1047    91    91  203

cot      .54     -      -  4.05        2.1    84   92      -     -     -   88

==============================================================================

Those suggest that the precision really is good and, compared to libm

at least, there are several functions for which there is a 10x speed-up.

>(I played around with some DU binary, sqrt is NOT correctly rounded).

That happens is you use the "-fast" flag which is documented as:

==============================================================================

  -fast

      Provides a single method for turning on a collection of optimizations

      for increased performance.

      Note that the -fast flag can produce different results for floating-

      point arithmetic and math functions, although most programs are not

      sensitive to these differences.  [...]

==============================================================================

I doubt very much if the non "-fast" sqrt() has any last bit errors...

>AND, regarding the latest discussion here, it's HEAVILY table driven !

Doh!  Is there any consensus on what size of tables are accpetable for

a library?  For a specific app, it would be "as big as necessary to go

as fast as possible" but for a library routine I try to stick to <=

256 bytes.

The sqrt code I posted a few days ago can be sped up by abut 5 cycles

(and the branch removed) by doubling the table size to 512 bytes to

handle even and odd exponents in one go.

It's quite annoying because the entries are floats but have only a

byte of information each.  A table of bytes would be 4 times smaller

but then it would cost several cycles to stash the byte into a float.

Bye,

  Rob.

PS: I haven't looked into Kazushige's reply yet.  I'll get around to it RSN!

^ permalink raw reply	[flat|nested] 4+ messages in thread
* Free Compaq Math Library for Linux
@ 1999-03-03 15:39 Andrei A. Dergatchev
  1999-03-03 16:59 ` Joachim Wesner
  0 siblings, 1 reply; 4+ messages in thread
From: Andrei A. Dergatchev @ 1999-03-03 15:39 UTC (permalink / raw)


Hi,

I just have come across this site:

http://www.compaq.com/newsroom/pr/1999/pr020399b.html

and found the following information, which might be of interest

for our list:

"A beta version of Compaq Portable Math Library (CPML) for Linux

will be available free on March 15, 1999 at the following URL:

http:www.unix.digital.com/linux/cpml.htm."

Regards,

Andrei

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

end of thread, other threads:[~1999-03-03 18:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-03-03 18:46 Free Compaq Math Library for Linux Joachim Wesner
  -- strict thread matches above, loose matches on Subject: below --
1999-03-03 17:36 Robert Harley
1999-03-03 15:39 Andrei A. Dergatchev
1999-03-03 16:59 ` Joachim Wesner

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