Why do I get the error "Error using parallel.J​ob/fetchOu​tputs (line 1250) Task with ID 1 returned 0 outputs but 1 were expected."?

11 ビュー (過去 30 日間)

Why do I get the error...

Error using parallel.Job/fetchOutputs (line 1250)
Task with ID 1 returned 0 outputs but 1 were expected.
...when submitting MATLAB Parallel Server jobs?

採用された回答

MathWorks Support Team
MathWorks Support Team 2024 年 3 月 21 日
This is a generic error message. Please obtain the log files of the job submitted using the pctLogging function to find more details on the error, which was introduced in R2024a. Use the commands below to retrieve your log files.
1. Make sure your current working directory is a directory you can create files in
2. Run the MATLAB commands shown below. Make sure to insert your cluster profile name.
c=parcluster('My_Cluster_Name'); % Change "My_Cluster_Name" to the your cluster profile name.
pctLogging.setParallelLogging(c,'on')
pctconfig('preservejobs',true);
j=batch(c,@pwd,1,{}, 'pool', 3);
j.wait
pctLogging.gatherParallelLogs(c)
pctLogging.setParallelLogging(c,'off')
3. Once the commands are done running, it should create a ZIP archive in your working directory, which contain the log files with more details.

その他の回答 (0 件)

タグ

タグが未入力です。

Community Treasure Hunt

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

Start Hunting!

Translated by