- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am now writing a makefile for a code not written by me. It uses 'MKL'. But the difficult part for me is that I do not know which 'lib' to include.
Now when I try to generate a executable file, errors are:
undefined reference to XXX
I know I do not link the correct MKL lib to the code since I do not know subroutine is include in which lib.
What should I do? I do not want to link all the 'lib' files in $(MKLROOT)/lib.
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
For situations where simple calls to MKL suffice, simply use the -mkl option when compiling and linking. If you wish to use BLAS95/Lapack95, or you wish to build multi-threaded applications, use the MKL Link Line Advisor tool:
https://software.intel.com/en-us/articles/intel-mkl-link-line-advisor
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page