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

8 visualizaciones (últimos 30 días)
Onur
Onur el 23 de Nov. de 2024
Comentada: Torsten el 24 de Nov. de 2024
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?
  2 comentarios
Walter Roberson
Walter Roberson el 23 de Nov. de 2024
Would it just happen to be the case that the laptop is using an Intel processor, but the desktop is using an AMD processor?
Onur
Onur el 23 de Nov. de 2024
Thanks for the answer, but both are using an Intel processor.

Iniciar sesión para comentar.

Respuestas (1)

埃博拉酱
埃博拉酱 el 24 de Nov. de 2024
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?
  2 comentarios
Onur
Onur el 24 de Nov. de 2024
The entire process crashes, both systems are Windows. I am running a pure MATLAB code. Perhaps I should try reinstalling MATLAB.

Iniciar sesión para comentar.

Categorías

Más información sobre Introduction to Installation and Licensing en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by