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

Using Lapack with ifort on linux

notmuchnoise
Beginner
337 Views

Hello,

I was wondering if someone could help me please?

Im trying to access some of the routines in the lapack

In my f90 code i have

program a
use mkl95_lapack
implicit none

etc

call steve(variables here)

Normally I would compile a program with "ifort program.f90"

i use this to set ifort up prior to compiling "source /opt/intel/Compiler/11.1/064/bin/ifortvars.sh intel64"

The ifort files are located along the file tree "/opt/intel/Compiler/11.1/064"

with the mkl directory at "/opt/intel/Compiler/11.1/064/mkl"

I'm unsure as to what commands I would use now that I require the use of lapack?

at the moment i get the following error:

a.f90(2): error #7002: Error in opening the compiled module file. Check INCLUDE paths. [MKL95_LAPACK]
use mkl95_lapack
----^
compilation aborted for a.f90 (code 1)

Thanks for any help

(sorry about the very beginner question)

0 Kudos
2 Replies
ArturGuzik
Valued Contributor I
337 Views

Compiler makes it clear, can't find module you specified. check your LD path first, to make sure compiler knows where to find it (/include folder). On the other hand, you say that you set the environmen already. What about location for *.mod files?

A.

0 Kudos
Ying_H_Intel
Employee
337 Views

Hello,

The mkl95_lapack.mod is in /opt/intel/Compiler/11.x/0xx/mkl/include/[32|em64t]

Assume 32bit,the command may like

ifort -I//opt/intel/Compiler/11.x/0xx/mkl/include/32 main.f

-L/opt/intel/Compiler/11.1/059/mkl/lib/32 -lmkl_intel_c -lmkl_intel_thread -lmkl_core -liomp5

See more details from

http://software.intel.com/en-us/articles/blas-and-lapack-fortran95-mod-files/

http://software.intel.com/en-us/articles/intel-mkl-link-line-advisor/

Regards,

Ying

0 Kudos
Reply