[Wien] undefined function calls when linking to BLAS/LAPACK
pieper at ifp.tuwien.ac.at
pieper at ifp.tuwien.ac.at
Sat May 15 21:17:14 CEST 2004
> The linker options you have below point at both the ATLAS libs you compiled
> and at the slow, unoptimized liblapack_lapw.a located in <WIEN_ROOT>/SRC_lib.
True, I cheated there, since up to now I did not compile the full lapack with
ifort. Since ifort compiled code is not binary compatible with codes from other
fortran compilers I linked against the unoptimized lapack.
Anyway, my previous experience with ifc 6.0 indicates that you have to compile
the full lapack, not just the minimum version of ATLAS, and I seem to remember
that you even have to copy some routine from the Wien-provided lib to the
optimized archive. In the installation guide of some other package which also
depends on ATLAS + lapack I found the following description, which might be
helpfull:
Complete lapack library is required when using ATLAS, see
http://math-atlas.sourceforge.net/errata.html#completelp
for instructions.
Below follows basic steps for building ATLAS+LAPACK from scratch.
In case of trouble, consult the documentation of the corresponding
software.
* Get and unpack
http://www.netlib.org/lapack/lapack.tgz
to /path/to/src/
* Copy proper
/path/to/src/LAPACK/INSTALL/make.inc.?????
to
/path/to/src/LAPACK/make.inc
* Build LAPACK:
cd /path/to/src/LAPACK
make lapacklib # On 400MHz PII it takes about 15min.
that will create lapack_LINUX.a when using
INSTALL/make.inc.LINUX, for example.
If using Intel Fortran Compiler, see additional notes below.
* Get the latest stable ATLAS sources from
http://math-atlas.sourceforge.net/
and unpack to /path/to/src/
* Build ATLAS:
cd /path/to/src/ATLAS
make # Number of questions will be asked
make install arch=Linux_PII # This takes about 45min.
where arch may vary (see the output of the previous command).
* Make optimized LAPACK library:
cd /path/to/src/ATLAS/lib/Linux_PII/
mkdir tmp; cd tmp
ar x ../liblapack.a
cp /path/to/src/LAPACK/lapack_LINUX.a ../liblapack.a
ar r ../liblapack.a *.o
cd ..; rm -rf tmp
* Move all lib*.a files from /path/to/src/ATLAS/lib/Linux_PII/,
say, to /usr/local/lib/atlas.
> also, I just noticed a note on the ATLAS site that says order of libraries
> linked in is important (this does not solve my problem however)
Maybe this only solves problems you solved previously by putting the linker
options in twice?
Martin
-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/
More information about the Wien
mailing list