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
8 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Chester Gillon
el 29 de Jun. de 2014
Comentada: Ammar Dabaan
el 13 de Jun. de 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 comentarios
James Tursa
el 30 de Jun. de 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?
Respuesta aceptada
Chester Gillon
el 13 de Jul. de 2014
3 comentarios
Julianna Ianni
el 28 de Sept. de 2015
Editada: Julianna Ianni
el 28 de Sept. de 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
el 13 de Jun. de 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!
Más respuestas (4)
Star Strider
el 29 de Jun. de 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 comentarios
Star Strider
el 29 de Jun. de 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
el 29 de Jun. de 2014
2 comentarios
Image Analyst
el 29 de Jun. de 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
el 12 de Nov. de 2016
A bug report was created. The situation affected AMD Jaguar CPU.
1 comentario
Walter Roberson
el 27 de Jul. de 2021
A user today posted evidence that the bug might also have affect some Opteron models.
Ver también
Categorías
Más información sobre Startup and Shutdown en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!