Changeset 1051 for trunk/src/cluster_command_psmn.m
- Timestamp:
- Jun 27, 2018, 11:20:37 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/cluster_command_psmn.m
r1043 r1051 17 17 function cmd=cluster_command_psmn(ListProcessFile, ActionFullName, DirLog, NbProcess, NbCore, CPUTimeProcess) 18 18 SubmitScriptFile = regexprep(ListProcessFile, '\job_list.txt\>', 'submit_script.sh'); 19 19 fid_list = fopen(ListProcessFile, 'r'); 20 20 fid_submit = fopen(SubmitScriptFile, 'w'); 21 21 i=1; 22 23 22 while(true) 23 process = fgets(fid_list); 24 24 if(process == -1) 25 25 break 26 26 end 27 27 n = numel(process); … … 31 31 '-e ' LogFile ' '... 32 32 '-o ' LogFile ' '... 33 '-q piv_debian '... 33 '-q piv_debian* '... 34 '-P PIV '... 34 35 '-N UVmat_' num2str(i) ' '... 35 36 process char(10)]); 36 37 i=i+1; 37 38 38 end 39 fclose(fid_list); 39 40 fclose(fid_submit); 40 41 system(['chmod +x ' SubmitScriptFile]);
Note: See TracChangeset
for help on using the changeset viewer.