How to enable multi-core CPU processing during MATLAB code running?
15 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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?
0 commentaires
Réponses (1)
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.
0 commentaires
Voir également
Catégories
En savoir plus sur Introduction to Installation and Licensing dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!