|
[Sponsors] |
February 27, 2020, 13:04 |
Building source code with MKL and OpenBLAS
|
#1 | |
New Member
Michalis Hadjiandreou
Join Date: Feb 2020
Posts: 3
Rep Power: 6 |
Dear Community,
Although I have been successful in building the basic configuration from source, I encountered some issues when wanting to rebuild it with MKL and openBlas features. Firstly, I downloaded and installed the MKL library and as a result its content is found in /opt/intel/mkl. When trying to build using meson, by the following code, Code:
./meson.py build -Denable-autodiff=true -Denable-directdiff=true -Denable-pywrapper=true -Denable-mkl=true -Denable-openblas=true -Dblas-name=openblas -Dmkl_root=/opt/intel/mkl Quote:
Code:
Run-time dependency mkl-static-lp64-seq found: NO (tried pkgconfig and cmake) I would greatly appreciate any form of advise and I apologize if this is a rookie mistake but I am a recent user of both SU2 and Linux. Thank you in advance |
||
February 28, 2020, 06:56 |
|
#2 |
Senior Member
Pedro Gomes
Join Date: Dec 2017
Posts: 466
Rep Power: 13 |
Hi
I updated the documentation for this yesterday https://su2code.github.io/docs_v7/Bu...2-Linux-MacOS/ That message just means that meson did not find the library via pkg-config and so it reverted to the path in -Dmkl_root and it found the required libraries there otherwise the build would have failed. Now what you need is for the operating system to know where the libraries are, do: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/intel/mkl/lib/intel64 before running SU2 or simply add it to the .bashrc file. Couple of additional clarifications: It is either MKL or OpenBLAS, not both at the same time, MKL takes precedence. We don't compile any of the BLAS dependencies, we just link against them. Cheers |
|
|
|