MATLAB 2024 default number of threads
17 ビュー (過去 30 日間)
古いコメントを表示
Hello,
I have 16 logical threads in my system but matlab rejects to use more than 8. How can I increase the limit. I used to be able to control it in 2022 version, but once I upgraded to 2024 I could not use more than 8.
2 件のコメント
Walter Roberson
2025 年 3 月 3 日
Could you confirm that you are using the Parallel Computing toolbox, and that you are talking about BackgroundPool (thread-based) instead of about Parpool (process-based) ?
回答 (2 件)
Walter Roberson
2025 年 3 月 3 日
If you have a license for Parallel Computing Toolbox, NumWorkers is equal to the number of physical cores you have. For example, if you run MATLAB on a machine with four physical cores, the value is 4. You can reduce this value using maxNumCompThreads before first usage of backgroundPool.
So you cannot increase the number of threads beyond the number of physical cores your system has.
Edric Ellis
2025 年 3 月 4 日
You can change the maximum number of workers to use with a thread pool by modifying the NumWorkers property in the "Cluster Profile Manager". This will allow you to run a thread pool of size 16.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Parallel Computing Fundamentals についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!