MATLAB Parallel Computing Toolbox and Process Priority Settings

조회 수: 3 (최근 30일)
Kareem Elgindy
Kareem Elgindy 2022년 4월 15일
댓글: Kareem Elgindy 2023년 1월 17일
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?
  댓글 수: 2
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.
Kareem Elgindy
Kareem Elgindy 2023년 1월 17일
Thanks for your time to answer this question, but I think the answer to this question is still open.

댓글을 달려면 로그인하십시오.

답변 (1개)

Alvaro
Alvaro 2023년 1월 17일
The MATLAB central file linked in Edric's answer should let you modulate priorities when called within an spmd block:
Regarding on whether it would help or not, I would think that it depends on the number of resource-hungry processes that you have running on your machine. Basically, if you close all the other programs you have running besides MATLAB then setting a higher priority should not significantly affect the performance of your MATLAB workers.

카테고리

Help CenterFile Exchange에서 Cluster Configuration에 대해 자세히 알아보기

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by