Skip to content

Commit

Permalink
Reduce the maximum codegen threads to 2
Browse files Browse the repository at this point in the history
  • Loading branch information
sjoelund committed Apr 4, 2016
1 parent 0aff3d1 commit 5f55444
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Compiler/SimCode/SimCodeMain.mo
Expand Up @@ -632,7 +632,7 @@ algorithm
if (not Flags.isSet(Flags.PARALLEL_CODEGEN)) or numThreads==1 or (not stringEq(Flags.getConfigString(Flags.RUNNING_TESTSUITE),"")) then
true := max(func() for func in codegenFuncs);
else
true := max(l for l in System.launchParallelTasks(min(4, numThreads) /* Boehm GC does not scale to infinity */, codegenFuncs, runCodegenFunc));
true := max(l for l in System.launchParallelTasks(min(2, numThreads) /* Boehm GC does not scale to infinity */, codegenFuncs, runCodegenFunc));
end if;
then ();

Expand Down

0 comments on commit 5f55444

Please sign in to comment.