Changeset 2257


Ignore:
Timestamp:
09/18/09 06:22:16 (16 years ago)
Author:
Mathieu Morlighem
Message:

change numcpus to be <= numprocs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/utils/Nightly/runme.m

    r2201 r2257  
    138138                md.name=testname;
    139139                %check and modify number of cpus if necessary
    140                 np=feature('numCores');
    141                 if np<md.np;
    142                         disp(['warning: changing number of cpus to ' num2str(np) ]);
    143                         md.np=np;
     140                numcpus=find_option(options,'numprocs');
     141                if ~isempty(numcpus) & numcpus>1,
     142                        if md.np>numcpus,
     143                                disp(['warning: changing number of cpus to ' num2str(numcpus) ]);
     144                                md.np=numcpus;
     145                        end
    144146                end
    145147        end
Note: See TracChangeset for help on using the changeset viewer.