Ticket #910 (new feature request)

Opened 6 years ago

Last modified 9 months ago

--make should have a -j flag for parallel building

Reported by: igloo Owned by:
Priority: normal Milestone: _|_
Component: Compiler Version: 6.4.2
Keywords: Cc: bos, hackage.haskell.org@…, dterei
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: None/Unknown Difficulty: Unknown
Test Case: N/A Blocked By:
Blocking: Related Tickets:

Description

It should be possible to give --make a -j flag, similar to make's, to tell it to use multiple proceses to build modules. This would allow executables, libraries and cabal packages to be built faster for people with multiple CPUs.

Attachments

ghc-parallel-comp.patch Download (67.2 KB) - added by simonmar 6 years ago.

Change History

Changed 6 years ago by igloo

  • summary changed from --make should have a -j flag for paralel building to --make should have a -j flag for parallel building

Changed 6 years ago by simonmar

Changed 6 years ago by simonmar

This seems like a good place to hang my patch to implement ghc --make -jN, which was used for the experiments in the 2005 Haskell Workshop paper on SMP GHC, but almost certainly isn't ready for prime time.

Changed 6 years ago by igloo

  • testcase set to N/A

Changed 5 years ago by bos

  • cc bos added

Would love to have this.

Changed 5 years ago by simonmar

  • milestone changed from 6.8 to 6.1

Not for 6.8, probably.

Changed 4 years ago by simonmar

  • component changed from Driver to Compiler
  • milestone changed from 6.10 branch to _|_

We're not planning this for 6.10. It's more likely that Cabal will get parallel make support first, in which case there's less need for us to tackle this.

Changed 4 years ago by simonmar

  • architecture changed from Multiple to Unknown/Multiple

Changed 4 years ago by simonmar

  • os changed from Multiple to Unknown/Multiple

Changed 15 months ago by liyang

  • cc hackage.haskell.org@… added
  • failure set to None/Unknown

Changed 9 months ago by dterei

  • cc dterei added
Note: See TracTickets for help on using tickets.