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
18 次查看(过去 30 天)
显示 更早的评论
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 个评论
James Tursa
2014-6-30
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?
采纳的回答
Chester Gillon
2014-7-13
3 个评论
Julianna Ianni
2015-9-28
编辑:Julianna Ianni
2015-9-28
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
2022-6-13
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!
更多回答(4 个)
Star Strider
2014-6-29
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 个评论
Star Strider
2014-6-29
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
2014-6-29
2 个评论
Image Analyst
2014-6-29
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
2016-11-12
A bug report was created. The situation affected AMD Jaguar CPU.
1 个评论
Walter Roberson
2021-7-27
A user today posted evidence that the bug might also have affect some Opteron models.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!