Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

LAPACK + IMSL

Wen_C_
Débutant
1 824 Visites

Some of the IMSL subroutines utilizing the high performance LAPACK, how do I know that the program is linking to the right LAPACK ? I am using Visual Studio 2013.  Thank you.

0 Compliments
7 Réponses
TimP
Contributeur émérite III
1 824 Visites

Many of us never had access to an Intel-compatible IMSL.

Some possibilities:

add -# option in your link step to get an echo of all libraries used, if not already evident in your build log

Dependency Walker to see which .dll is used by your .exe.

Even if the lapack functions came from outside MKL, it's more important to know which BLAS functions are linked.

0 Compliments
Steven_L_Intel1
Employé
1 823 Visites

The way IMSL works, if you're linking to IMSL at all, you select the MKL-accelerated LAPACK by which set of libraries you link to (typically by choice of LINK_FNL_xxx.h INCLUDE file.) In IMSL 6, the default was the non-MKL version and to get the MKL version you specified the _HPC include file. In version 7 the default is MKL-accelerated and you have to ask for the "IMSL-only" library specifically.

You could, of course, also call the version of LAPACK in MKL by linking to that.

0 Compliments
Wen_C_
Débutant
1 823 Visites

Thanks, I am using IMSL 7.01, Intel Fortran 2015.  So, can I assume that it is linked to the MLK,  By the way, in the manual: Using the IMSL Libraries from the Integrated Development Environment (Windows* OS)

To use the static library form of the libraries and the Intel® Math Kernel Library:

INCLUDE 'link_fnl_static_hpc.h'   This does NOT work.

INCLUDE 'link_fnl_static.h'   This works.

that is why I am not sure.

 

 

0 Compliments
mecej4
Contributeur émérite III
1 824 Visites

Wen C. wrote:
INCLUDE 'link_fnl_static_hpc.h'   This does NOT work.

That include file is no longer provided with IMSL 7. See https://software.intel.com/en-us/articles/installing-and-using-the-imsl-libraries . That page is dated September 2011, but obviously has been updated with more recent information.

0 Compliments
Steven_L_Intel1
Employé
1 823 Visites

I'm away from my installation right now, but yes, the _hpc .h file is no longer there. I think the new one, which doesn't use MKL, is something like link_fnl_static_imsl.h. Look in the Include folder to see what it's called. The article will get updated to include the new include file info, as will the documentation.

0 Compliments
Wen_C_
Débutant
1 823 Visites

Thanks, the https site explains well.

0 Compliments
Steven_L_Intel1
Employé
1 824 Visites

Now that I'm back with my IMSL install, yes, the non-MKL versions are now link_fnl_static_imsl.h and link_fnl_shared_imsl.h. 

0 Compliments
Répondre