Error using parpool with threads in 2020a
조회 수: 18 (최근 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!