Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ocamlbuild -j does not compile in parallel a parallelizable development #4935

Closed
vicuna opened this issue Dec 8, 2009 · 2 comments
Closed

Comments

@vicuna
Copy link

vicuna commented Dec 8, 2009

Original bug ID: 4935
Reporter: letouzey
Status: closed (set by @gasche on 2016-02-16T00:24:19Z)
Resolution: suspended
Priority: normal
Severity: feature
Version: 3.11.1
Category: -for ocamlbuild use https://github.com/ocaml/ocamlbuild/issues
Related to: #5138
Monitored by: @ygrek "Julien Signoles" @hcarty

Bug description

I'm trying to compile Coq via ocamlbuild (See also bug #4934). Currently, the use of the -j option brings almost no time gain on a multi-core machine (while make -j is close to 2x gain on dual-core and 3.5x gain on quad-core).

Here again, I may well be the culprit and not have written my myocamlbuild.ml in an appropriate manner. Any hint is welcome...

Best regards,
Pierre Letouzey

Instructions to reproduce:

  1. you'll need camlp5 installed
  2. get a copy of coq development archive
    svn checkout svn://scm.gforge.inria.fr/svn/coq/trunk/ [^]
  3. ./configure -local -opt
  4. Launch a first build (./build is a wrapper for ocamlbuild, with no -j) :
    ./build
  5. Redo the same with -j 0 :
    rm -rf _build
    ocamlbuild -j 0 coq.otarget

Here, on a quad-core machine, first build says:
Finished, 2716 targets (0 cached) in 00:13:10.

While the second one says
Finished, 2716 targets (0 cached) in 00:12:37.

On the same machine, make -j perform the same build in about 4min.

@vicuna
Copy link
Author

vicuna commented Feb 15, 2016

Comment author: egallego

This issue is superseded by ocaml/ocamlbuild#52

@vicuna
Copy link
Author

vicuna commented Feb 16, 2016

Comment author: @gasche

Moving to the new ocamlbuild bugtracker.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant