[Haskell-cafe] Cabal: Can only one processor core be used?

coot at coot.me coot at coot.me
Tue Apr 2 11:47:03 UTC 2024


Let's also mention that there's work to have a single semaphore which governs the concurrency in a better way which allows the tooling to dynamically decide how many cores to use for compiling a package when multiple of them are being compiled.

Regards,
Marcin


Sent with Proton Mail secure email.

On Tuesday, 2 April 2024 at 13:37, Alexey Vagarenko <vagarenko at gmail.com> wrote:

> Hi,
>
> There is -j flag for this: https://cabal.readthedocs.io/en/3.4/cabal-project.html#cfg-field-jobs
>
> On Tue, Apr 2, 2024 at 4:23 PM Volker Wysk <post at volker-wysk.de> wrote:
>
> > Hi
> >
> > I've searched the web and the cabal user guide on how to use more processor
> > cores for compilation via cabal. I couldn't find anything.
> >
> > It looks like only one processor core can be used with cabal, even though
> > (I've read on the web) GHC supports parallel compilation.
> >
> > Cabal compilation times can be a pain. It can't be that you can use only one
> > processor core with cabal, can it ..?
> >
> > Cheers,
> > Volker
> > _______________________________________________
> > Haskell-Cafe mailing list
> > To (un)subscribe, modify options or view archives go to:
> > http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
> > Only members subscribed via the mailman list are allowed to post.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 509 bytes
Desc: OpenPGP digital signature
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20240402/1dc96d7a/attachment.sig>


More information about the Haskell-Cafe mailing list