フィルターのクリア

Unable to run parpool in Net application. Failed to initialize the interactive session.

8 ビュー (過去 30 日間)
Hans Dohse
Hans Dohse 2023 年 9 月 19 日
コメント済み: Hans Dohse 2023 年 9 月 25 日
I have an initialization routine in my .Net compiled MatlabAlgo dll.
poolobj = gcp('nocreate'); % If no pool, do not create new one.
if isempty(poolobj)
poolobj = parpool( 'local','IdleTimeout', 240);
end
I run this from a thread in my C# application.
I get the following error:
Parallel pool failed to start with the following error.
Failed to initialize the interactive session.
C:\Program Files\MATLAB\R2021b\mcr\toolbox\parallel\cluster\parpool.m, name parpool, line 146.
Version R2021b
Windows 11
.NET
  2 件のコメント
Sam Marshalik
Sam Marshalik 2023 年 9 月 20 日
Can you verify that you are able to run MATLAB on that machine and open a parpool (with the above commands) in that MATLAB session?
Hans Dohse
Hans Dohse 2023 年 9 月 25 日
Yes I have no problem running it from Matlab.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeParallel Computing Fundamentals についてさらに検索

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by