Error while opening shared libraries in Matlab 2020b

54 次查看(过去 30 天)
Hello everyone!
I have been doing some calculation in Matlab for the past few weeks on my normal workstation but now I am starting to use a Linux cluster in order to take advantage of a bigger number of processors (meaning that I am using the Parallel Computing Toolbox).
The code I wrote works fine on my Windows machine but when I try to run it on the Linux cluster I get the following error:
Error using integralCalc/iterateScalarValued (line 310)
BLAS loading error:
libiomp5.so: cannot open shared object file: No such file or directory
I tried reading some answers to similar problems but unfortunately I still haven't understood how to solve this issue (I don't know much about linux, I am just an electrical engineer, sorry).
The error reported above appears within a "parfor" cycle when I try to use the Matlab's function "integral3". I checked and it seems that the problem has nothing to do with the Parallelization because it appears also when repleacing the "parfor" with a simple "for". I did some other investigations and the same error appears even when trying other codes in which I use the "trapz" function or when I tryt to "Rotate 3D" a figure made using plot3.
Can anyone tell me what I should do about this ??
  2 个评论
Edric Ellis
Edric Ellis 2022-6-24
That file ("libiomp5.so") should be installed as part of a standard MATLAB installation. It should be found in <matlab>/sys/os/glnxa64. The fact that it cannot be found suggests that you may need to reinstall MATLAB. I would suggest contacting MathWorks support for help with this.
Gabriele Colombo
Gabriele Colombo 2022-6-24
Thank you for your answer! I followed your suggestion and contacted MathWorks: I will post their solution to the problem when I get it. If in the meantime anyone still knows how to help it would be very much appreciated!

请先登录,再进行评论。

回答(1 个)

Dinesh
Dinesh 2023-9-29
编辑:Dinesh 2023-9-29
Hi Gabriele,
I understand that you are trying to run your code in MATLAB which is installed in Linux and you are facing an error die to this. The libiomp5.so file is installed as a part of standard MATLAB installation.
There can be multiple reasons for this error. Two major ones being
  1. Bad or incomplete file installation.
  2. You are not loading the appropriate module. (generally a conflict)
To identify bad or incomplete file installation please navigate to <matlab>/sys/os/glnx64 and open Linux terminal in that directory and type
md5sum libiomp5.so
The output of the command for this should be '044a12631073210ba5dc5e226d6744bd libigmp5.so'.
If you are output is different or file is not found then you will have to reinstall MATLAB.
If the output is similar then the issue is probably with not being able to load the appropriate module. Please make sure there are no module load conflicts for this module.
Hope this helps.
Best Regards,
Dinesh Reddy Gatla.

类别

Help CenterFile Exchange 中查找有关 Startup and Shutdown 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by