|Anonymous | Login | Signup for a new account||2014-09-22 14:14 CEST|
|Main | My View | View Issues | Change Log | Roadmap|
|View Issue Details|
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0005796||OCaml||OCamlbuild (the tool)||public||2012-10-23 03:34||2012-11-19 02:40|
|Target Version||Fixed in Version|
|Summary||0005796: ocamlbuild doesn't parallelize the build|
|Description||using -j 1 to -j 8 with a step size of 1 shows that|
there is almost no parallelization of the build.
|Steps To Reproduce||use option -j and make it vary up to the number of cores your machine have|
|Tags||No tags attached.|
|I believe the problem you observed reflects a deeper implementation problem in the current Ocamlbuild than a simple bug. It has been on OCamlbuild's maintainers TODO list for some time, but it's not an easy problem to solve. Of course, any outside help will be warmly appreciated, ocamlbuild accepts contributions -- but I would advise working on easier issues first.|
Instead of starting to hack into ocamlbuild, I will
start using ocp-build:
I guess it will parallelize the build correctly,
as does make since the 70s...
You may also be interested in OCamlMakefile and omake
|Which bit of OCamlbuild failed to parallelise for you? ocamlbuild discovers dependencies dynamically, so while it cannot do static scheduling as well as make, it's a lot more flexible. Some stages of the build are more serial than others, so seeing a build log helps.|
I don't want to invest anymore of my time with ocamlbuild.
I'll just get rid of this tool from my OCaml toolchain.
|This bug has been reported (PR#5754), it's being investigated if we can shift some of the rules known in advance to be static and find more opportunities for parallel build.|
|2012-10-23 03:34||berenger||New Issue|
|2012-10-23 10:12||gasche||Relationship added||duplicate of 0005754|
|2012-10-23 10:14||gasche||Note Added: 0008295|
|2012-10-23 10:14||gasche||Status||new => resolved|
|2012-10-23 10:14||gasche||Resolution||open => duplicate|
|2012-10-23 10:14||gasche||Assigned To||=> gasche|
|2012-10-23 10:29||berenger||Note Added: 0008298|
|2012-10-23 11:09||gasche||Note Added: 0008302|
|2012-10-24 00:11||avsm||Note Added: 0008315|
|2012-10-24 02:31||berenger||Note Added: 0008316|
|2012-11-19 02:40||meyer||Note Added: 0008527|
|Copyright © 2000 - 2011 MantisBT Group|