| 查看: 1852 | 回复: 1 | ||
| 【悬赏金币】回答本帖问题,作者空自忙将赠送您 10 个金币 | ||
[求助]
parfor进行并行计算时卡在了getCompleteIntervals函数里并且不进行下去了
|
||
|
有没有大佬遇到过这种情景呀 卡在了obj.displayOutput这一句中 谢谢各位呀 function [tags, results] = getCompleteIntervals(obj, numIntervals) q = obj.IntervalCompleteQueue; timeUnitSeconds = iTimeUnitSeconds(); tags = nan(numIntervals, 1); results = cell(numIntervals, 2); for i = 1:numIntervals r = []; err = []; while isempty(r) assert(obj.NumIntervalsInController > 0, ... 'Internal error in PARFOR - no intervals to retrieve.'); r = q.poll(1, timeUnitSeconds); obj.displayOutput(); if isempty(r) % Only test to see if the session is failing if we didn't get a % results from the queue if ~obj.Session.isSessionRunning errorMessageInput = iGetParpoolLinkForError(); error(message('parallel:lang:parfor:SessionShutDown', errorMessageInput)); end else |
» 猜你喜欢
求调剂
已经有4人回复
一志愿北京化工大学材料与化工296分求调剂
已经有11人回复
一志愿天津大学,英一数二305分求调剂,四六级已过
已经有7人回复
0703求调剂
已经有3人回复
085600 材料与化工 295 求调剂
已经有6人回复
求调剂材料专硕293
已经有5人回复
311求调剂
已经有3人回复
311求调剂
已经有3人回复
材料工程专硕调剂自荐信,初试323
已经有6人回复
328,0703考生求调剂,一志愿为东北师范大学
已经有4人回复

2楼2021-12-04 09:40:16













回复此楼
10