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
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