Can't start parpool with the 'threads' option

조회 수: 11(최근 30일)
Arwel 2020년 5월 19일
댓글: Steven Lord 2020년 6월 4일
I am able to run parfor loops by staring a parpool like this.....
.. and then things work.
However, according to this part of the documentation.. .... I should be able to open a parallel pool that is tread based by going..
pool = parpool('threads');
.. as per the example. However, when I try this I get an error....
Error using parpool (line 113)
'threads' is not the name of a profile. Valid names are:
So, it seems I need to create the 'threads' profile somehow. I can't find how to do this though.
Can someone post me in the right direction with this? Thread-based is far more suited to what I want to do.
(I'm using R2019a on Linux)


Steven Lord
Steven Lord 2020년 5월 19일
According to the Release Notes this functionality was introduced in release R2020a.
  댓글 수: 3
Steven Lord
Steven Lord 2020년 6월 4일
I don't know if there's a license-based limitation on the number of threads or what that limitation is if there is one.
There's obviously a machine-based limitation in that if you try to start more threads than your machine is capable of running things will likely slow ... way ... down. But that would be based on your particular machine's capabilities.

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

Community Treasure Hunt

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

Start Hunting!

Translated by