MATLAB crashes in one computer but not in the other running the same code

조회 수: 8 (최근 30일)
Onur
Onur 2024년 11월 23일
댓글: Walter Roberson 2025년 2월 27일
I am running the same code in MATLAB 2020 in two computers (what I do is basically matrix diagonalization with eigs). One of them is a desktop using a processor with 16 cores (24 threads) and 64 GB RAM, and the other is a laptop using a processor with 4 cores (8 threads) and 32 GB RAM. Interestingly MATLAB crashes in the desktop but runs flawlessly in the laptop (MATLAB is using around 1 GB RAM in both computers). Looking at the task manager, I realized that almost 100% of CPU is used when MATLAB is running in the desktop. So, I limited the maximum # of threads to 6 (which was by default equal to the # of physical cores, which in this case is 16); this helped reduce the CPU usage to ~%55 but did not solve the crashing issue. How can I fix this problem?
  댓글 수: 3
Onur
Onur 2024년 11월 23일
Thanks for the answer, but both are using an Intel processor.
Walter Roberson
Walter Roberson 2025년 2월 27일
Is it possible that the desktop is using an Intel Gen 13 or Gen 14 processor, but the laptop is using a different generation?

댓글을 달려면 로그인하십시오.

답변 (1개)

埃博拉酱
埃博拉酱 2024년 11월 24일
Can you describe the details of your crash? Is it just your code crashing or is the entire MATLAB process crashing? Is the operating system Windows or Linux? Are you running pure MATLAB code or do you include C++ code that you wrote?
  댓글 수: 3
Torsten
Torsten 2024년 11월 24일
Yes, and if this doesn't help, you should contact Technical Support:
Thai Phuong
Thai Phuong 2025년 2월 27일
I got the same problem, the codes worked perfectly before. And it doesnt crash on other computers, just mine. I've monitored Matlab memory use, there are some peak at the crash moment, but not systematicly. Matlab reinstallation does not help. I am struggling to debug as it is not code problem, but something else.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Code Generation for ARM Cortex-M and ARM Cortex-A Processors에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by