Changeset 304 for trunk/src/civ.m


Ignore:
Timestamp:
Nov 28, 2011, 6:39:23 PM (12 years ago)
Author:
gostiaux
Message:

walltime arranged for submission in batch of n<ncores jobs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/civ.m

    r303 r304  
    20452045                filename_joblist=fullfile(Rootbat,'job_list.txt');
    20462046                fid=fopen(filename_joblist,'w');
    2047 
     2047                walltime_onejob=600;%seconds
    20482048                for p=1:length(batch_file_list)
    20492049                    oar_command=['oarsub -n CIVX '...
    20502050                   '-E ' regexprep(batch_file_list{p},'\.bat\>','.errors') ' -O ' regexprep(batch_file_list{p},'\.bat\>','.log ')...
    2051                         '-l "/core=1,walltime=00:10:00"   ' batch_file_list{p}];
     2051                        '-l "/core=1,walltime=' datestr(walltime_onejob/86400,13) '"   ' batch_file_list{p}];
    20522052                    fprintf(fid,[oar_command '\n']);
    20532053                end
    20542054                fclose(fid);
    20552055                ncores=36;
    2056                 walltime=datestr(length(batch_file_list)*10/24/60/ncores,13);
    20572056                oar_command=['oarsub -t container -n civx-container '...
    2058                     '-l /core=' num2str(ncores) ',walltime=' walltime...
     2057                    '-l /core=' num2str(ncores)...
     2058                    ',walltime=' datestr(1.05*walltime_onejob/86400*max(length(batch_file_list),ncores)/ncores,13)...
    20592059                    ' "oar-dispatch -f ' filename_joblist '"'];
    20602060                filename_oarcommand=fullfile(Rootbat,'oar_command');
Note: See TracChangeset for help on using the changeset viewer.