Changeset 902
- Timestamp:
- May 28, 2015, 11:30:04 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/series.m
r901 r902 1599 1599 Param.IndexRange.NbSlice=[]; 1600 1600 end 1601 if isempty(Param.IndexRange.NbSlice)1602 NbProcess=NbCore;% choose one process per core if NbSlice is not imposed1603 switch RunMode1604 case 'cluster_oar'1605 NbProcess=numel(ref_i); % split big list witdh oar-parexec (Gabriel Moreau)1606 end1607 else1608 NbProcess=Param.IndexRange.NbSlice;% the parameter NbSlice sets the nbre of run processes1609 NbCore=min(NbCore,NbProcess);% reduces the number of cores if it exceeds the number of processes1610 end1611 1601 1612 1602 %% create the output data directory if needed … … 1718 1708 ref_j=first_j:incr_j:last_j; 1719 1709 end 1710 end 1711 1712 if isempty(Param.IndexRange.NbSlice) 1713 NbProcess=NbCore;% choose one process per core if NbSlice is not imposed 1714 switch RunMode 1715 case 'cluster_oar' 1716 NbProcess=numel(ref_i); % split big list witdh oar-parexec (Gabriel Moreau) 1717 end 1718 else 1719 NbProcess=Param.IndexRange.NbSlice;% the parameter NbSlice sets the nbre of run processes 1720 NbCore=min(NbCore,NbProcess);% reduces the number of cores if it exceeds the number of processes 1720 1721 end 1721 1722 BlockLength=ceil(numel(ref_i)/NbProcess);% nbre of input fields in each process
Note: See TracChangeset
for help on using the changeset viewer.