Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.

Problems with mkl_ia32

hubertfarnsworth
Beginner
756 Views
Hi everyone!

I have some trouble with the MKL 10.0.1.14 and also tried the..011 version. I installed them on my Ubtuntu 7.10 machine but it does not seem to work.
The installation works fine but when I try to tell the ./configure script of a program to use the MKL instead of BLAS it does not find the routines (e.g. sgemm_) in the mkl_ia32. I suppose thats where it should be in.
Also, if I go the MKL lib directory and try
ar -t libmkl_ia32.a
it says: File format not recognized.

I think there's something wrong, but I did not find the mistake yet. Maybe someone had this problem too or knows how to help me. Thanks in advance!
0 Kudos
2 Replies
TimP
Honored Contributor III
756 Views
libmkl_ia32.a is a text file containing the names of 3 libraries. ar should work when run directly on each of those libraries.
For static linking, follow the example using e.g. -Wl,--start-group libmkl_ia32.a -Wl,--end-group
and a compiler driver which is compatible with that (you may need ifort and icc 10.1.012 or later).
Your post would be much easier to understand with an actual example (at least your command line and error).
0 Kudos
hubertfarnsworth
Beginner
756 Views
First of all: Thanks for the hint with the content of libmkl_ia32.a!

Here's a little example. I try to configure the HARMINV library. I can specify a library that is used instead of blas by running
./configure --with-blas=LIBRARY
where I have tried the following values for LIBRARY:
mkl_ia32, mkl_core, mkl_intel
No matter which one I choose it always says

[...]
checking for sgemm_ in -lLIBRARY... no
[Check for other Libs and abort]

(Of course with the corresponding value for LIBRARY). So the configure script cannot find the Routine sgemm_ in the MKL libs.
My LD_LIBRARY_PATH variable contains the directory in which the MKL libs reside, so ld should find them.

You see my problem is not the compilation. I do not even get that far. I can't tell the configure script to use MKL instead of BLAS.
0 Kudos
Reply