compilation Fortran 90 - Lapack

compilation Fortran 90 - Lapack

hi !

I have installed intel fortran compiler 9.0 and MKL 8.0
i have written a little program in f90 to test blas and
Lapack routines...

i have tested dgemm for blas....works perfectly

but i have a problem with lapack routines :
i would like to test for example the dgetri function.

but when the compilation, i have the error :

"/tmp/ifortOf6eUc.o(.text+0x26e): In function `MAIN__':
Test.f90: undefined reference to `dgetri_'"

for the Blas and the Lapack, options are :
f90 -L /opt/intel/mkl/8.0/lib/32 -lmkl -lmkl_lapack -lmkl_ia32 -lguide -lm -lpthread

I don't understand why it works with blas and not for Lapack...

thanks for help

PS : system : Fedora Core 4
kernel : 2.6.13-1.1526_FC4
version gcc 4.0.1 20050727

2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

I'm not sure exactly what the problem might be. dgetri_ should be found in libmkl_lapack.a which you have included on your link line. There is one thing that you are doing that I wouldn't and that is the redundant inclusion of "-lmkl" and "-lmkl_ia32". The first links in libmkl.so and the second libmkl_ia32.a both of which are just different versions (dynamic and static) of the same library essentially.

So try removing "-lmkl" from your link line.

-Todd

Leave a Comment

Please sign in to add a comment. Not a member? Join today