Changeset 922 for trunk/src/series.m
- Timestamp:
- Nov 24, 2015, 10:48:46 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/series.m
r919 r922 1768 1768 extxml=cell(1,NbProcess); % initialisation of the set of labels used for the files documenting each process 1769 1769 for iprocess=1:NbProcess 1770 extxml{iprocess}='.xml'; 1771 end 1772 for iprocess=1:NbProcess 1770 1773 if ~strcmp(get(handles.RUN,'BusyAction'),'queue')% allow for STOP action 1771 1774 disp('program stopped by user') … … 1828 1831 case {'PCWIN','PCWIN64'} %Windows system 1829 1832 filexml=regexprep(filexml,'\\','\\\\');% add '\' so that '\' are left as characters 1830 system([ fullfile(ActionPath,[ActionName '.sh'])' ' RunTime ' ' filexml]);% TODO: adapt to DOS system1833 system([ActionFullName ' ' RunTime ' ' filexml]);% TODO: adapt to DOS system 1831 1834 case {'GLNX86','GLNXA64','MACI64'}%Linux system 1832 system([ fullfile(ActionPath,[ActionName '.sh'])' ' RunTime ' ' filexml]);1835 system([ActionFullName ' ' RunTime ' ' filexml]); 1833 1836 end 1834 1837 end … … 1941 1944 'hostname && date \n '... 1942 1945 'umask 002 \n'... 1943 fullfile(ActionPath,[ActionName '.sh'])' ' RunTime ' ' filexml];%allow writting access to created files for user group1946 ActionFullName ' ' RunTime ' ' filexml];%allow writting access to created files for user group 1944 1947 fprintf(fid,cmd);%fill the executable file with the char string cmd 1945 1948 fclose(fid);% close the executable file … … 1951 1954 end 1952 1955 end 1953 msgbox_uvmat('CONFIRMATION',[Action Name ' launched in background: press STATUS to see results'])1956 msgbox_uvmat('CONFIRMATION',[ActionFullName ' launched in background: press STATUS to see results']) 1954 1957 end 1955 1958 … … 1967 1970 'hostname && date \n '... 1968 1971 'umask 002 \n'... 1969 fullfile(ActionPath,[ActionName '.sh'])' ' RunTime ' ' filexml{iprocess}];%allow writting access to created files for user group1972 ActionFullName ' ' RunTime ' ' filexml{iprocess}];%allow writting access to created files for user group 1970 1973 else 1971 1974 cmd=[... … … 2021 2024 WallTimeOneJob=min(4*JobTime+10,WallTimeTotal*60/2);% estimated max time of an individual job for checkpoint 2022 2025 disp(['WallTimeOneJob: ' num2str(WallTimeOneJob) ' minutes']) 2023 oar_command=['oarsub -n UVmat_' Action Name ' '...2026 oar_command=['oarsub -n UVmat_' ActionFullName ' '... 2024 2027 '-t idempotent --checkpoint ' num2str(WallTimeOneJob*60) ' '... 2025 2028 '-l /core=' num2str(NbCore) ','... … … 2028 2031 '-O ' filename_log ' '... 2029 2032 extra_oar ' '... 2030 2033 '"oar-parexec -s -f ' filename_joblist ' '... 2031 2034 '-l ' filename_joblist '.log"']; 2035 2036 2037 2032 2038 fprintf(oar_command);% display system command on the Matlab command window 2033 2039 [status,result]=system(oar_command)% execute system command and show the result (ID number of the launched job) on the Matlab command window … … 2037 2043 fprintf(fid,result);% store the result (job ID number) 2038 2044 fclose(fid); 2039 msgbox_uvmat('CONFIRMATION',[Action Name ' launched as ' num2str(NbProcess) ' processes in cluster: press STATUS to see results'])2045 msgbox_uvmat('CONFIRMATION',[ActionFullName ' launched as ' num2str(NbProcess) ' processes in cluster: press STATUS to see results']) 2040 2046 2041 2047 case 'cluster_pbs' % for LMFA Kepler machine … … 2078 2084 fprintf(pbs_command);% display in command line 2079 2085 %system(pbs_command); 2080 msgbox_uvmat('CONFIRMATION',[Action Name ' command ready to be launched in cluster'])2086 msgbox_uvmat('CONFIRMATION',[ActionFullName ' command ready to be launched in cluster']) 2081 2087 case 'python' 2082 2088 command = [
Note: See TracChangeset
for help on using the changeset viewer.