How to enable multi-core CPU processing during MATLAB code running?

15 vues (au cours des 30 derniers jours)
vahid AliMohammadi
vahid AliMohammadi le 21 Nov 2022
Réponse apportée : Jan le 22 Nov 2022
MATLAB is used in my academic projects, but after buying a new laptop with a powerful processor, I found that only 1 core is being used when the software is under load or processing codes.
But,Now the question is, is there any way to distribute the processing load of the operations on all CPU cores of the system by making appropriate settings, so that both processing power and speed increase?

Réponses (1)

Jan
Jan le 22 Nov 2022
It depends on the code. Many functions are multithreaded and use more cores for large inputs. This applies e.g. to sum(), filter(), and functions, which calls BLAS libraries internally as matrix multiplications.
Codes can be run in parallel also using parfor or spmd, which require the Parallel Processing Toolbox. Then you can run calculations on the GPU also.

Catégories

En savoir plus sur Introduction to Installation and Licensing dans Help Center et File Exchange

Produits


Version

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by