Changeset 348


Ignore:
Timestamp:
Dec 23, 2011, 3:35:53 PM (12 years ago)
Author:
gostiaux
Message:

Now launches jobs using oar-parexec

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/series/ima_levels_batch.m

    r347 r348  
    3333cd(path);
    3434mkdir([subdir_ima '_levels']);
    35   [xx,msg2] = fileattrib(subdir_ima,'+w','g'); %yield writing access (+w) to user group (g)
     35  [xx,msg2] = fileattrib([subdir_ima '_levels'],'+w','g'); %yield writing access (+w) to user group (g)
    3636if ~strcmp(msg2,'')
    3737    msgbox_uvmat('ERROR',['pb of permission for ' subdir_ima ': ' msg2])%error message for directory creation
     
    8888ncores=1;
    8989walltime_onejob=10;%seconds
    90 filename_joblist=fullfile(Rootbat,'job_list.txt');
    91 fid=fopen(filename_joblist,'w');
     90filename_joblist=fullfile(path,[subdir_ima '_levels'],'job_list.txt')
     91fid=fopen(filename_joblist,'w+')
    9292for p=1:length(batch_file_list)
    9393    fprintf(fid,[batch_file_list{p} '\n']);
    9494end
    95 fclose(fid)
    96 oar_command=['oarsub -n test '...
     95fclose(fid);
     96oar_command=['oarsub -n ima_levels '...
    9797    '-l /core=' num2str(ncores) ','...
    9898    'walltime=' datestr(1.05*walltime_onejob/86400*max(length(batch_file_list),ncores)/ncores,13) ' '...
     
    100100    '-O ' regexprep(filename_joblist,'\.txt\>','.log') ' '...
    101101    '"oar-parexec -f ' filename_joblist ' -l ' filename_joblist '.log"'];
    102 filename_oarcommand=fullfile(Rootbat,'oar_command');
     102filename_oarcommand=fullfile(path,[subdir_ima '_levels'],'oar_command');
    103103fid=fopen(filename_oarcommand,'w');
    104104fprintf(fid,[oar_command '\n']);
Note: See TracChangeset for help on using the changeset viewer.