Changeset 417 for trunk/src/civ.m
- Timestamp:
- May 9, 2012, 6:51:16 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/civ.m
r416 r417 1608 1608 case 'oar' 1609 1609 1610 oar_modes={'oar- dispatch','mpilauncher','oar-parexec'};1610 oar_modes={'oar-parexec','oar-dispatch','mpilauncher'}; 1611 1611 text={'Batch processing on servcalcul3 LEGI';... 1612 1612 'Please choose one of the followint modes';... 1613 '* oar-parexec : best choice';... 1613 1614 '* oar-dispatch : jobs in a container of several cores';... 1614 1615 '* mpilauncher : one single parallel mpi job using several cores';... 1615 '* oar-parexec (under development) ';...1616 1616 '**********************************'... 1617 1617 }; … … 1620 1620 switch oar_modes{S} 1621 1621 case 'oar-parexec' %oar-dispatch.pl 1622 ncores=str2double(...1623 inputdlg('Number of cores (max 36)','oarsub parameter',1,{'12'})...1624 );1622 answer=inputdlg({'Number of cores (max 36)','extra oar options'},'oarsub parameter',1,{'12',''}); 1623 ncores=str2double(answer{1}); 1624 extra_oar=answer{2}; 1625 1625 walltime_onejob=600;%seconds 1626 1626 filename_joblist=fullfile(Rootbat,'job_list.txt'); … … 1630 1630 end 1631 1631 fclose(fid) 1632 oar_command=['oarsub -n test '... 1633 '-l /core=' num2str(ncores) ','... 1634 'walltime=' datestr(1.05*walltime_onejob/86400*max(length(batch_file_list),ncores)/ncores,13) ' '... 1635 '-E ' regexprep(filename_joblist,'\.txt\>','.errors') ' '... 1636 '-O ' regexprep(filename_joblist,'\.txt\>','.log') ' '... 1637 '"oar-parexec -f ' filename_joblist ' -l ' filename_joblist '.log"']; 1632 oar_command=['oarsub -n CIVX '... 1633 '-t idempotent --checkpoint ' num2str(walltime_onejob+60) ' '... 1634 '-l /core=' num2str(ncores) ','... 1635 'walltime=' datestr(1.05*walltime_onejob/86400*max(length(batch_file_list),ncores)/ncores,13) ' '... 1636 '-E ' regexprep(filename_joblist,'\.txt\>','.stderr') ' '... 1637 '-O ' regexprep(filename_joblist,'\.txt\>','.stdout') ' '... 1638 extra_oar ' '... 1639 '"oar-parexec -s -f ' filename_joblist ' '... 1640 '-l ' filename_joblist '.log"']; 1638 1641 filename_oarcommand=fullfile(Rootbat,'oar_command'); 1639 1642 fid=fopen(filename_oarcommand,'w'); … … 1651 1654 for p=1:length(batch_file_list) 1652 1655 oar_command=['oarsub -n CIVX '... 1653 '-E ' regexprep(batch_file_list{p},'\.bat\>','. errors') ' -O ' regexprep(batch_file_list{p},'\.bat\>','.log')...1656 '-E ' regexprep(batch_file_list{p},'\.bat\>','.stderr') ' -O ' regexprep(batch_file_list{p},'\.bat\>','.stdout ')... 1654 1657 '-l "/core=1,walltime=' datestr(walltime_onejob/86400,13) '" ' batch_file_list{p}]; 1655 1658 fprintf(fid,[oar_command '\n']); … … 1659 1662 '-l /core=' num2str(ncores)... 1660 1663 ',walltime=' datestr(1.05*walltime_onejob/86400*max(length(batch_file_list),ncores)/ncores,13) ' '... 1661 '-E ' regexprep(filename_joblist,'\.txt\>','. errors') ' '...1662 '-O ' regexprep(filename_joblist,'\.txt\>','. log') ' '...1664 '-E ' regexprep(filename_joblist,'\.txt\>','.stderr') ' '... 1665 '-O ' regexprep(filename_joblist,'\.txt\>','.stdout') ' '... 1663 1666 '"oar-dispatch -f ' filename_joblist '"']; 1664 1667 filename_oarcommand=fullfile(Rootbat,'oar_command');
Note: See TracChangeset
for help on using the changeset viewer.