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?

 採用された回答

Raymond Norris
Raymond Norris 2020 年 7 月 14 日

0 投票

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 件のコメント

Francesc Massanes Basi
Francesc Massanes Basi 2020 年 7 月 14 日
Thanks for your answer Raymond, it would be a nice feature for my application, but I get it, I did something like that yesterday and will keep it until it is enabled at deployment.
Julie F.
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 件)

カテゴリ

ヘルプ センター および File ExchangeParallel Computing Fundamentals についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by