Replies: 2 comments
-
Hi @rlepigre , this has been discussed quite a few times (don't have time now to dig old discussions issues, but I think it was titled "jobserver protocol") As far as I know, there is not easy solution yet, but indeed, it would be great to be able to implement something in the lines you propose. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a situation where I need to call
make
to build a large set of files, so currently I'm doing something like the following (simplified):The problem is that if I do not specify a
-j
option formake
, then the build takes ages. On the other hand, one might want to tweak the given number of jobs to the number of available CPUs. Another issue is that if dune runs withN
processes, then at some point during the build there may be up toN - 1 + 4
jobs, which is not very nice. In my case, I actually have several such rules, so the situation is even worst.I thought I might be able to use the
DUNEJOBS
variable here, but I don't think that's true.If there is no solution, it could be nice to extend actions DSL with a
(with-jobs N ...)
stanza, that specifies thatN
jobs need to be allocated for the action. Any thoughts on that?Beta Was this translation helpful? Give feedback.
All reactions