- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I just learned that Intel has LAPACK installed in the oneAPI base toolkit but when testing the example codes such as https://www.intel.com/content/www/us/en/docs/onemkl/developer-reference-fortran/2024-2/blas-code-examples.html and https://www.intel.com/content/www/us/en/docs/onemkl/code-samples-lapack/2024-1/cgesv-example-fortran.html I am unable to compile. I get the following errors:
Severity Code Description Project File Line Suppression State
Error error LNK2019: unresolved external symbol SDOT referenced in function SDOT.void Test.obj
Severity Code Description Project File Line Suppression State
Error error LNK2019: unresolved external symbol CGESV referenced in function CGESV.t272p.t273p.t274p.t275p.t276p.t277p.t278p.t279p Test.obj
I simply created a main program code Fortran project and pasted the example codes in and saved the source code as test.for.
I double checked the installation and confirmed that I used default which did install the Intel MKL when I installed base and HPC toolkits. How do I properly link these libraries? I tried to read the documentation for Intel MKL and I failed to find the page that gave instructions on linking the libraries, if anyone can point me to the page that would also work. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You need to tell the project you are using mkl:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks, Andrew. Is dgeqrf the QR decomposition subroutine? More importantly, the ?geqrf page says the subroutines return "elementary reflectors for Q", does that mean it uses the householder reflection implementation? I currently have a custom-implemented QR decomposition using the Gram-Schmidt approach but it can become unstable while the householder approach should be much better.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
My knowledge of mkl routines is pretty minimal, there are some on here that have in depth knowledge but there is also an mkl forum.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page