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

where is the mkl_lapacke.h file?

manubaum
Beginner
2,182 Views
I try to make this (http://software.intel.com/sites/products/documentation/hpc/mkl/lapack/mkl_lapack_examples/lapacke_dgesvd_col.c.htm) example working. I am using the Intel Compiler in Version 11.1 but just can't find this file!
Therefore
- where can I get the mkl_lapacke.h file
- how to compile the example above (I am aware of the linking advisor)
Thanks in advance.
0 Kudos
4 Replies
Todd_R_Intel
Employee
2,182 Views

The mkl_lapacke.h header is for the C interface to LAPACK. That was added in Intel MKL 10.3 which is a part of the Intel Composer XE 2011 product introduced latelast year. I'm afraid that's why you're not finding it it in version 11.1. I'd encourage you to take a look at the latest version, but if notyou'll need to modify this example to call the Fortran interface. To that end the User Guide might help. See the following section:

Language-specific Usage Option
-> Mixed-language Programming with the Intel Math Kernel Library
----> Calling LAPACK, BLAS, and CBLAS Routines from C/C++ Language Environments

0 Kudos
mecej4
Honored Contributor III
2,182 Views
The prebuilt lapack_e library was not available until MKL 10.3 was released, but if you do not mind taking the trouble to build it yourself (which should take just a few minutes), the source code is available on Netlib:

http://netlib.org/lapack/#_standard_c_language_apis_for_lapack

through the benevolence of Intel.

Note, in addition, that it is not enough to obtain the header file, which is needed at compile time; you also need the library available at link time.

0 Kudos
manubaum
Beginner
2,182 Views
I installed the Composer XE 2011 (2011.2.137), but there is still no mkl_lapacke.h file!!!
0 Kudos
manubaum
Beginner
2,182 Views
Nevermind, I found it.
0 Kudos
Reply