Changeset 2ddae713 in OpenModelica

Timestamp:
2016-04-03T13:55:54+02:00 (8 years ago)
Author:
Martin Sjölund <martin.sjolund@…>
Branches:
Added-citation-metadata, maintenance/v1.14, maintenance/v1.15, maintenance/v1.16, maintenance/v1.17, maintenance/v1.18, maintenance/v1.19, maintenance/v1.20, maintenance/v1.21, maintenance/v1.22, maintenance/v1.23, master, omlib-staging
Children:
98214dc
Parents:
3ad7933b
git-author:
Martin Sjölund <martin.sjolund@…> (04/03/16 13:52:33)
git-committer:
Martin Sjölund <martin.sjolund@…> (04/03/16 13:55:54)
Message:

Enable code generation in parallel

The default will enable parallel code generation if you have more than
2 physical cores, and will use half of the physical cores for code
generation. The reason is that the templates allocate a lot of memory,
causing the GC to become slow if too many threads are used. On a 4-core
machine, 2 threads was 60~65% the speed of 1 thread and 3~4 threads around
75~105% the speed of 1 thread. It might need a new flag to tune the number
of threads used. -d=-parallelCodegen disables the new functionality.
NOTE: Parallel code generation is only used for the C code generator.

Location:
Compiler
Files:
5 edited

Note: See TracChangeset for help on using the changeset viewer.