[Top][All Lists]

[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 13:47:30 -0600 (CST)

On  9-Feb-2000, R Clint Whaley <address@hidden> wrote:

| >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.
| That will get you ATLAS's BLAS, but I don't think it will get you ATLAS's
| LU or Cholesky.

For linking, the libraries are listed in the following order:

  liboctinterp.a liboctave.a $(SPECIAL_MATH_LIB) libcruft.a

    * liboctinterp.a is stuff like the parser and interpreter.

    * liboctave.a includes all the C++ interfaces to the numerical routines.

    * $(SPECIAL_MATH_LIB) provides fast blas/lapack stuff, if it is
      referenced by liboctave.a.

    * libcruft.a picks up the rest of the Fortran stuff.

I just ran my copy of Octave that is linked with ATLAS and set a
breakpoint in ATL_doptrf, then ran chol (rand (3)) and it stopped here:

Breakpoint 1, 0x836f070 in ATL_dpotrf () at 
257       delete ps;

(I suspect the filename is wrong because ATLAS was not compiled with

However, one problem with just using

  liboctave.a libatlas.a libcruft.a

is that you may not pick up all of the BLAS from libatlas.a that might
be used by libcruft.a, so really we need to omit all of the blas from
libcruft if we are linking with ATLAS, and then use either

  liboctave.a libatlas.a libcruft.a


  liboctave.a libatlas.a libcruft.a libblas.a

in which case libatlas.a doesn't need to contain the blas either...



Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:
How to fund new projects:
Subscription information:

reply via email to

[Prev in Thread] Current Thread [Next in Thread]