I had a few questions regarding the usage of the Armadillo library with MKL. Apologies in advance if this is not the right place for them. I'm currently on Ubuntu 16.04, using gcc 5.4.0.
Thank you so much!
here is from Armadillo FAQ:
You may take a look at the MKL Linker Adviser ( https://software.intel.com/en-us/articles/intel-mkl-link-line-advisor) which shows how to link all mkl's stuff.
Thank you for responding. I have read through Armadillo's FAQ, and the particularly pertinent point is
you can directly link with such libraries -- see answers to previous questions
When using OpenBLAS, for example, it's a simple matter of adding -lopenblas to gcc. However, there are many more options with MKL. I did look through the Linker Adviser and selected the options that I *thought* were right, but I'm not entirely sure if these are Armadillo's most optimal. Thus, I was wondering if anybody else who uses Armadillo with MKL could possibly respond.
Waiting for someone else to do exactly what you want done is not likely to be fruitful.
The decision as to which libraries to use should be informed by compatibility and suitability. These considerations are no different for MKL than any other library.
Sorry, I know nothing about Armadillo.
if only consider the replace the -lopenblas, you can use -lmkl_rt . (which is dynamic library and you can source /opt/intel/mkl/bin/mklvars.sh intel64 to setting the mkl environment).
Or link mkl static library as https://software.intel.com/en-us/articles/intel-mkl-link-line-advisor
If you still run the problem, could you please submit the issue to https://supporttickets.intel.com/?lang=en-US , where our support team will work with you on the exact problem.
Here is some mkl and other third-party library