- Timestamp:
- Jun 20, 2015, 7:02:48 PM (10 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/series.m
r912 r914 149 149 RunModeList=[RunModeList;{'cluster_oar'}]; 150 150 set(handles.MonitorCluster,'Visible','on'); % make visible button for access to Monika 151 set(handles.num_CPUTime,'Visible','on'); % make visible button for access to Monika 152 set(handles.CPUTime_txt,'Visible','on'); % make visible button for access to Monika 151 153 end 152 154 [s,w]=system('qstat --version');% look for cluster system 'sge' … … 651 653 RootFile=''; 652 654 else %scan the input folder 653 [RootPath, SubDir,RootFile,i1_series,i2_series,j1_series,j2_series,tild,FileInfo,MovieObject]=...655 [RootPath,~,RootFile,i1_series,i2_series,j1_series,j2_series,tild,FileInfo,MovieObject]=... 654 656 find_file_series(fullfile(InputTable{iview,1},InputTable{iview,2}),[InputTable{iview,3} InputTable{iview,4} InputTable{iview,5}]); 655 657 end … … 1711 1713 end 1712 1714 end 1713 CPUTime= 5;% job time estimated at 5min per iteration (on index i and j) by default1715 CPUTime=1;% job time estimated at 1 min per iteration (on index i and j) by default 1714 1716 if isfield(Param.Action, 'CPUTime') && ~isempty(Param.Action.CPUTime) 1715 1717 CPUTime=Param.Action.CPUTime;%Note: CpUTime for one iteration ref_i has to be multiplied by the number of j indices nbfield_j … … 1722 1724 if isempty(Param.IndexRange.NbSlice)% if NbSlice is not defined 1723 1725 BlockLength= ceil(20/(CPUTime*nbfield_j));% short iterations are grouped such that the minimum time of a process is 20 min. 1724 BlockLength=max(BlockLength,ceil(numel(ref_i)/ 1000));% possibly increase the BlockLength to have less than 1000 jobs1726 BlockLength=max(BlockLength,ceil(numel(ref_i)/500));% possibly increase the BlockLength to have less than 500 jobs 1725 1727 NbProcess=ceil(numel(ref_i)/BlockLength) ; % nbre of processes sent to oar 1726 1728 else … … 2001 2003 'walltime=' datestr(min(1.05*walltime_onejob/86400*max(NbProcess*BlockLength*nbfield_j,NbCore)/NbCore,max_walltime/86400),13) ' '... 2002 2004 '-E ' regexprep(filename_joblist,'\.txt\>','.stderr') ' '... 2003 '-O ' regexprep(filename_joblist,'\.txt\>','. stdout') ' '...2005 '-O ' regexprep(filename_joblist,'\.txt\>','.log') ' '... 2004 2006 extra_oar ' '... 2005 2007 '"oar-parexec -s -f ' filename_joblist ' '...
Note: See TracChangeset
for help on using the changeset viewer.