How to enable multi-core CPU processing during MATLAB code running?
16 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
Jan
2022-11-22
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 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!