[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ATLAS and octave
From: |
John W. Eaton |
Subject: |
Re: ATLAS and octave |
Date: |
Wed, 9 Feb 2000 03:05:13 -0600 (CST) |
Here is all I did to build a copy of Octave that uses ATLAS:
1. build ATLAS
2. merge all four of the libraries that the ATLAS build creates into
a single libatlas.a and install it in /some/dir.
3. relink Octave by running
make SPECIAL_MATH_LIB=/some/dir/libatlas.a
That seems to be all that is needed.
Would it be possible to modify the ATLAS makefiles to just build a
libatlas.a? Then Octave could simply have
AC_CHECK_LIB(atlas, ATL_xerbla)
in the configure script, and set SPECIAL_MATH_LIB accordingly.
Things might get a little more complicated for shared libraries. Some
systems seem to barf when multiple shared libraries define the same
symbol. But it would probably be possible to solve that, either by
doing whatever is necesary to tell the dynamic linker not to barf, or
by omitting the duplicate symbols from libcruft.
BTW, I see the following speedup on my system (266MHz Pentium II):
octave:1> a = rand (1000); b = rand (1000);
octave:2> t = cputime (); a * b; cputime () - t
without ATLAS: 94.4 seconds
with ATLAS: 10.5 seconds
Wow!
Thanks,
jwe
-----------------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.che.wisc.edu/octave/octave.html
How to fund new projects: http://www.che.wisc.edu/octave/funding.html
Subscription information: http://www.che.wisc.edu/octave/archive.html
-----------------------------------------------------------------------
- Re: ATLAS and octave, (continued)
- Re: ATLAS and octave, R Clint Whaley, 2000/02/04
- Re: ATLAS and octave, R Clint Whaley, 2000/02/05
- Re: ATLAS and octave, stevenj, 2000/02/05
- Re: ATLAS and octave, R Clint Whaley, 2000/02/05
- Re: ATLAS and octave, R Clint Whaley, 2000/02/05
- Re: ATLAS and octave,
John W. Eaton <=
- Re: ATLAS and octave, stevenj, 2000/02/05
- Re: ATLAS and octave, R Clint Whaley, 2000/02/09
- Re: ATLAS and octave, R Clint Whaley, 2000/02/09
- Re: ATLAS and octave, Steven G. Johnson, 2000/02/09
- Re: ATLAS and octave, chenu-tournier marc, 2000/02/10