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

16 ビュー (過去 30 日間)
vahid AliMohammadi
vahid AliMohammadi 2022 年 11 月 21 日
回答済み: Jan 2022 年 11 月 22 日
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?

回答 (1 件)

Jan
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.

カテゴリ

Help Center および File ExchangeIntroduction to Installation and Licensing についてさらに検索

製品


リリース

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by