MATLAB Parallel Computing Toolbox and Process Priority Settings

3 ビュー (過去 30 日間)
Kareem Elgindy
Kareem Elgindy 2022 年 4 月 15 日
コメント済み: Raymond Norris 2022 年 4 月 16 日
Before I started using MATLAB Parallel Computing Toolbox, I often set the priority of MATLAB in the Task Manager in Windows as either High or Realtime to speed up the execution. Now, after running a code using the aforementioned toolbox, I started to see several instances of MATLAB in the list of ongoing processes, so which instance should I increase its priority to gain more speed? Should I change them all? Does changing the priority even has any effect in terms of speed in this case?
  1 件のコメント
Raymond Norris
Raymond Norris 2022 年 4 月 16 日
I can't tell you if it actually helps, but if you're going to change the Task priority, you'd probably want to do it for all the MATLAB processes you see running. You should expect to see a number of MATLAB.exe processes (the size of the pool you started, plus one for the client). You could try then running the following from within MATLAB
[FAILED,~] = system('wmic process where name="MATLAB.exe" CALL setpriority "high priority"')
Again, not sure how well this will work.


回答 (0 件)




Community Treasure Hunt

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

Start Hunting!

Translated by