Replies: 4 comments 11 replies
-
|
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.
-
Beta Was this translation helpful? Give feedback.
-
|
From what I could understand, the jobserver protocol feature was not integrated. Is that right? What would be wrong with the idea of requesting some parallelism in a rule, e.g., Obviously, someone still needs to implement all this, but would the idea be useful and acceptable? |
Beta Was this translation helpful? Give feedback.
-
Shouldn't this annotation go on the underlying actions that consume these jobs? So |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a situation where I need to call
maketo 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
-joption 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 withNprocesses, then at some point during the build there may be up toN - 1 + 4jobs, 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
DUNEJOBSvariable 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 thatNjobs need to be allocated for the action. Any thoughts on that?Beta Was this translation helpful? Give feedback.
All reactions