| 查看: 2206 | 回复: 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 |
» 猜你喜欢
【长期招聘】复旦大学 AI 制药实验室 博士后招聘
已经有11人回复
2027博士申请-临床检验诊断学、病原生物学、微生物方向
已经有5人回复
各位基础老师们,看完中央《从严治党》的决定后,对学术界更加有信心了吧
已经有4人回复

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










回复此楼