Error using parpool with threads in 2020a
23 次查看(过去 30 天)
显示 更早的评论
I have compiled a code that uses parpool("threads"), in 2020a, my code works as expected when run inside of matlab. However, once the code is compiled, and executed with the latest 2020a runtime, it reports:
Unable to resolve the name parallel.ThreadPool.createPool.
Any ideas? This seems to be from a Java installation, right?
0 个评论
采纳的回答
Raymond Norris
2020-7-14
Hi Francesc. Support for threaded pools in deployed applications is a future enhancement. In the meantime, consider the following workaround
if isdeployed
p = parpool('local');
else
p = parpool('threads');
end
2 个评论
Julie F.
2020-9-11
I also encountered this issue... I was hoping thread pools would be available in deployed apps so we could take advantage of the performance imrpovements.
更多回答(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!