| |||
| Home > Building System Models in Batch Mode > SIMGEN command-line options > Interaction between num-comps-file and num-build-cpus | |||
There is, however, an interaction between the num-comps-file and
the num-build-cpus options. The value for num-comps-file indicates
the maximum number of components per file.
If, for example, there are 40 components, num-comps-file is
set to 25, and num-build-cpus is set to 4, the
following action results:
Four .cpp files are produced because
there are four processors
Each .cpp file has 10 components
instead of the maximum value of 25.
Using only the num-comps-file option to
calculate the components per file would result in only two .cpp files
with one file containing 25 components and the second file containing
15. This split would only use two processors. A lower value is therefore
used for the actual number of components pre file to enable all four
processors to be used.