Running the same function a number of times I managed to get a crash-dump generated, which is attached.
Matrix multiply crashes Matlab 2014a on a AMD A6-1450 APU, under either Windows 8.1 64-bit or Linux 64-bit
10 views (last 30 days)
Show older comments
Chester Gillon
on 29 Jun 2014
Commented: Ammar Dabaan
on 13 Jun 2022
Attempting to run the following function in Matlab 2014a 64-bit under Windows 8.1 64-bit crashes Matlab (the crash has occurred on all 5 attempts):
function matrix_multiply_crashes_matlab
weights = rand([8 5]);
samples = rand([1024 8]);
output = samples * weights;
end
From stepping in the debugger, the crash happens in the matrix multiply. After the crash Matlab doesn't appear to report a stack dump, I just get a Windows "MATLAB (R2014a) has stopped working dialogue:
Running the same function in Matlab 2014a 64-bit under Linux 64-bit (CentOS 6.5) doesn't cause Matlab to crash.
3 Comments
James Tursa
on 30 Jun 2014
Have you replaced the MATLAB supplied BLAS/LAPACK library with a different one? E.g., did MATLAB come with one library (not MKL), but you are using an MKL library instead?
Accepted Answer
Chester Gillon
on 13 Jul 2014
3 Comments
Julianna Ianni
on 28 Sep 2015
Edited: Julianna Ianni
on 28 Sep 2015
Thanks! I had the same problem with R2015b and an AMD A8-6410 on Windows 8 and setting MKL_DEBUG_CPU_TYPE=4 seems to work.
Ammar Dabaan
on 13 Jun 2022
Thanks! i got here a lenovo legion 5 with amd 4600h ryzen 5 cpu, and i've been having craches messages all over the place with matlab 2015a, and setting the mkl environment variable, they are gone.
Thanks again, you saved my day!
More Answers (4)
Star Strider
on 29 Jun 2014
I ran your statements in R2014a, Windows 8 64 and it executed without problems.
Since I can’t reproduce your error, perhaps the memory function can provide a clue.
2 Comments
Star Strider
on 29 Jun 2014
I have a 1½-year old HP AMD A10 Vision Dual Graphics Enabled machine. I had to look up the Intel Math Kernel Library because I’d heard (on gaming sites - guilty pleasure) that it doesn’t always work and play well with non-Intel machines (see ‘Criticisms’ on that link).
This Answer: AMD vs Intel (MKL.DLL vs ACML.DLL) and BLAS.SPEC help might also shed some light on the problem.
That said, I’m not certain how to advise you to proceed. I have no idea what the differences might be between your machine and mine. (It’s obvious that memory is not the problem.) It would likely be worthwhile to search the AMD FORUMS to see if that provides the information you need. (While you’re there, check to be sure you have the latest drivers.) If it doesn’t, contact AMD Tech Support to see what help they can offer. The AMD library is free, but I have no idea how to configure it so that your processor and C++ compilers automatically implement it rather than the Intel version.
I’ll help as I can, but in the interim, I can only wish you good luck!
Image Analyst
on 29 Jun 2014
2 Comments
Image Analyst
on 29 Jun 2014
I would think that not being able to run basic simple MATLAB code without crashing is an installation problem and they would offer free help. Student editions don't get free help either but if they can't even run the program they can get free help. I would try on Monday to call them. There are hundreds of reasons why MATLAB could crash and answers folks don't know all of them or have the resources to fix them for you like the Mathworks does.
By the way, the code runs for me on Windows 7 just fine.
Walter Roberson
on 12 Nov 2016
A bug report was created. The situation affected AMD Jaguar CPU.
1 Comment
Walter Roberson
on 27 Jul 2021
A user today posted evidence that the bug might also have affect some Opteron models.
See Also
Categories
Find more on Introduction to Installation and Licensing in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!