Faq how to fix AMD cpu bug in Intel Math Kernel Library

From Eigenvector Research Documentation Wiki
Jump to navigation Jump to search

Solo or Solo_MIA running on computers using certain AMD CPU processors can on rare occasions crash due to a bug in the Intel Math Kernel library. This library was used in MATLAB version 2014a, which was used to build Solo and Solo+MIA up to and including version 8.9. We have not heard of this bug causing crashes with version 9.0 or later of Solo or Solo_MIA which use Matlab version 2020b or later.

The Mathworks website has a bug report for this issue: https://www.mathworks.com/support/bugreports/1043644 and it is also discussed on this page: https://www.mathworks.com/matlabcentral/answers/375023-why-my-matlab-has-encountered-with-an-internal-problem-ans-needs-to-close-when-i-tried-to-run-a-code#answer_298203

These pages from The Mathworks, the makers of Matlab, describe two slightly different suggested fixes. Both involve setting Environment Variables on your computer. This is simple to do and only needs to be done once. If you are not familiar with this then please read the section for "Windows" at: https://www.mathworks.com/matlabcentral/answers/223482-how-do-i-set-add-or-change-environment-variables

Possible fixes, A or B: Open the System Properties and create new Environment Variables.

Option A: The first page above suggests setting these two Environment Variables: Set MATLAB_DISABLE_CBWR with value = 1 and set MKL_CBWR with value = SSE4_2

Option B: The second page above suggests setting this one Environment Variable: MKL_DEBUG_CPU_TYPE=4

We recommend you first try Option A. Set these Environment Variables and save them by clicking "OK" in the "New System Variable" window for each one, and then in the "Environment Variables" window to close that. Then start Solo or Solo_MIA again and test. If the problem still happens then please open the Environment Variables window again, select and delete each of those two that you added, and then add the Option B variable and value = 4, save by clicking "OK" and now restarting Solo/Solo_MIA and test again.