Back to the main page.

Bug 1182 - qsub functions crash in getglobal

Status CLOSED FIXED
Reported 2011-11-23 14:44:00 +0100
Modified 2012-03-14 10:00:42 +0100
Product: FieldTrip
Component: qsub
Version: unspecified
Hardware: PC
Operating System: Windows
Importance: P3 normal
Assigned to: Eelke Spaak
URL:
Tags:
Depends on:
Blocks:
See also:

Eelke Spaak - 2011-11-23 14:44:43 +0100

>> x={1,2,3,4,5}; >> y=qsubcellfun(@sqrt,x,'timreq',2,'memreq',1024); stacking 5 matlab jobs in each qsub job ??? Undefined function or variable 'list'. Error in ==> getglobal at 12 for i=1:length(list) Error in ==> qsubfeval at 101 options = {'pwd', curPwd, 'path', getcustompath, 'global', getglobal, 'diary', diary, 'memreq', memreq, 'timreq', timreq, 'randomseed', randomseed}; Error in ==> qsubcellfun at 256 [curjobid curputtime] = qsubfeval(fname, argin{:}, 'memreq', memreq, 'timreq', timreq, 'diary', diary, 'batch', batch); Error in ==> qsubcellfun at 219 [stackargout{:}] = qsubcellfun(@cellfun, stackargin{:}, optarg{:}); --- Probably Robert is responsible for this :P see bug 1145


Eelke Spaak - 2011-11-23 14:49:56 +0100

It seems the line list = whos('global'); was missing in qsub/private/getglobal.m, so list was undefined. I added it again, and everything seems to work again (SVN revision 4800). I'm not sure whether this interferes with Robert's solution to bug 1145.


Eelke Spaak - 2011-11-23 14:50:07 +0100

resolvedfixed


Eelke Spaak - 2012-03-14 10:00:42 +0100

closing several bugs that have been RESOLVED for a long time