MATLAB LAPACK/BLAS Configuration

조회 수: 18 (최근 30일)
Liam H
Liam H 2020년 5월 1일
댓글: Aaron G 2022년 3월 31일
I am calling an external program from within MATLAB that requires a LAPACK/BLAS version. For this I am using the non-MATLAB LAPACK/BLAS version as Openblas is giving me greater speed with it. I am using Ubuntu 18.04 LTS.
In order to link to the external program I am setting the:
BLAS_VERSION, LAPACK_VERSION env variables to the location of the openblas libraries. However, it seems like MATLAB will use these env variables and now try and use that version of LAPACK and BLAS which then cases a number of errors (such as not being able to find the eigenvalues of a 2x2 matrix - giving an out of memory issue. This has been documented before: https://au.mathworks.com/matlabcentral/answers/518117-out-of-memory-error-when-working-with-small-matrices)
I am wondering, is there a way to force matlab to use its own version of LAPACK/BLAS (the one it shipped with) whilst my external program is using the openblas version?
I have tried to use the suggestion provided in the link about, however, I receive the following error: "/bin/sh: error while loading shared libraries: libiomp5.so: cannot open shared object file: No such file or directory".
Any help on this would be much appreciated.
Thanks!
  댓글 수: 1
Aaron G
Aaron G 2022년 3월 31일
Hi Liam,
I'm having the same issue that you describe here. Did you find a solution?
I saw your suggestion of running with `(unset BLAS_VERSION; unset LAPACK_VERSION; matlab) but that also makes the environment variables invisible to my external programm (which is called from within matlab).
Best regards,
Aaron

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

제품


릴리스

R2020a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by