How to enable parallel computing?

조회 수: 14 (최근 30일)
Elia Paini
Elia Paini 2022년 7월 15일
댓글: Rik 2022년 7월 15일
Hi, I'm trying to improve fsolve execution with parallel computing, by implementing this instruction:
options = optimoptions('fsolve','Display','none','Algorithm','trust-region','UseParallel',true);
However, I get this warning during each iteration:
Warning: Unable to create a parallel pool. Continuing with evaluations in serial. To avoid this warning, set the 'UseParallel' option to false.
I think it's possible to use parallel computing, since I'm using a 4 core CPU (AMD Ryzen 5 3500U). I tried to enable all cores manually, but the warning persists.
How to solve it? Thank you!
  댓글 수: 4
Elia Paini
Elia Paini 2022년 7월 15일
I enabled all cores "manually" with Windows msconfig.
I added Parallel Computing Toolbox and now it works. However, I can't see any difference in terms of speed, maybe for the processor itself.
Rik
Rik 2022년 7월 15일
Not every task can be sped up by throwing more cores at the problem.
If you want help with your specific task, you will have to post details about your specific task.

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Manual Performance Optimization에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by