Changeset 304 for trunk/src/civ.m
- Timestamp:
- Nov 28, 2011, 6:39:23 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/civ.m
r303 r304 2045 2045 filename_joblist=fullfile(Rootbat,'job_list.txt'); 2046 2046 fid=fopen(filename_joblist,'w'); 2047 2047 walltime_onejob=600;%seconds 2048 2048 for p=1:length(batch_file_list) 2049 2049 oar_command=['oarsub -n CIVX '... 2050 2050 '-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}]; 2052 2052 fprintf(fid,[oar_command '\n']); 2053 2053 end 2054 2054 fclose(fid); 2055 2055 ncores=36; 2056 walltime=datestr(length(batch_file_list)*10/24/60/ncores,13);2057 2056 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)... 2059 2059 ' "oar-dispatch -f ' filename_joblist '"']; 2060 2060 filename_oarcommand=fullfile(Rootbat,'oar_command');
Note: See TracChangeset
for help on using the changeset viewer.