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

Error in opening the Library module file. [MKL_VSL]

f_oliveira
Beginner
512 Views
Hi all.

I'm trying to use the mkl 8.0.2 with ifort 9.031 but I can't. I tried a simple program which just load the mkl_vsl libraries (by coding "USE MKL_VSL" in the program) and it doesn't compile and return the message "Error in opening the Library module file [MKL_VSL]". The program compiles correctly when I copy the file /mkl/8.0.2/include to the same directory of the program and compile it first and it accept some variable declarations (of course I can't invoke the functions). I used the scripts mklvars32 to set environment variables (I've tried the 64) and checked. The command I'm using to compile is very simple:



ifort myprog.f -L/opt/intel/mkl/8.0.2/lib/32 -lmkl_ia64




I also tried to put all libraries but. I'm using Fedora 4

Well, I'm sorry if this is a very simple question but I'm novice to this business.

Many thanks.

Message Edited by f.oliveira@auckland.ac.nz on 04-27-200605:02 AM

0 Kudos
2 Replies
Andrey_G_Intel2
Employee
512 Views
It looks like you are using 64bits libraries at 32bits platform or contrariwise. And you forget specify include path to mkl_vsl.fi for compiler.
In your case correct command lines looks as:
for ia32 platforms: ifort -I/opt/intel/mkl/8.0.2/include myprog.f -L/opt/intel/mkl/8.0.2/lib/32 -lmkl_ia32
for ia64 platforms: ifort -I/opt/intel/mkl/8.0.2/include myprog.f -L/opt/intel/mkl/8.0.2/lib/64 -lmkl_ia64
for em64t platforms: ifort -I/opt/intel/mkl/8.0.2/include myprog.f -L/opt/intel/mkl/8.0.2/lib/em64t -lmkl_em64t
0 Kudos
f_oliveira
Beginner
512 Views
Thanks for the suggestion. I did it and it still wasn't working. There were also a problem with SELinux (by the way it has a problem with matlab also). I deactivated it and it is working now. Thanks.
F
0 Kudos
Reply