Back to the main page.

Bug 2618 - qsublist cannot determine pbsids when nr of jobs>999

Status CLOSED FIXED
Reported 2014-06-20 10:29:00 +0200
Modified 2014-07-15 17:25:10 +0200
Product: FieldTrip
Component: qsub
Version: unspecified
Hardware: PC
Operating System: Windows
Importance: P5 normal
Assigned to: Robert Oostenveld
URL:
Tags:
Depends on:
Blocks:
See also:

Marcel Zwiers - 2014-06-20 10:29:39 +0200

Batches with over 999 jobs result in incorrect handling of the pbs/job ids. Example: qsubcellfun(@pause,repmat({0},1,1010), 'timreq',0, 'memreq',0, 'Stack',1) [..] job marzwi_dccn_c355_p10401_b1_j262 returned, it required 0 seconds and 9.3 MB job marzwi_dccn_c355_p10401_b1_j263 returned, it required 0 seconds and 10.6 MB Warning: cannot determine the pbsid that corresponds to jobid marzwi_dccn_c355_p10401_b1_j1000 > In qsublist at 89 In qsubget at 66 In qsubcellfun at 362 Warning: cannot determine the pbsid that corresponds to jobid marzwi_dccn_c355_p10401_b1_j1001 > In qsublist at 89 In qsubget at 66 In qsubcellfun at 362 Warning: cannot determine the pbsid that corresponds to jobid marzwi_dccn_c355_p10401_b1_j1002 > In qsublist at 89 In qsubget at 66 In qsubcellfun at 362 [..]


Marcel Zwiers - 2014-06-20 11:22:34 +0200

Somehow putting a dbstop at line 69 of qsublist does not stop matlab, but I think I found the bug at line 100 of qsublist case 'del' sel = strmatch(jobid, list_jobid); If jobid='100', strmatch (which is, btw, deprecated and will be removed in future versions) will match both '100' and '1001'. Solution: Use either: sel = strmatch(jobid, list_jobid, 'exact'); or better even (= future proof): sel = strcmp(jobid, list_jobid); if any(sel) NB: The same strmatch-patch should be applied elsewhere in the code too


Robert Oostenveld - 2014-06-20 11:42:33 +0200

(In reply to Marcel Zwiers from comment #1) indeed! >> strmatch('100', {'1000', '1001'}) ans = 1 2 >> strcmp('100', {'100', '1000', '1001'}) ans = 1 0 0


Robert Oostenveld - 2014-06-20 11:49:54 +0200

this should fix it mac011> svn commit Sending qsubfeval.m Sending qsublist.m Transmitting file data .. Committed revision 9643.


Robert Oostenveld - 2014-07-15 17:25:10 +0200

Closed several bugs that were recently resolved. If it is closed in error, please reopen.