-
Notifications
You must be signed in to change notification settings - Fork 15
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
Execute multiple runs of irace in parallel within R #59
Comments
The I would be happy to review and merge a function Lines 561 to 599 in 7513fef
It would be great if most of the code in parallel-irace could be moved to R. |
If I understand this correctly, on platforms other than Windows the Apparently, nested |
I would start even simpler. Create first a function that does sequentially what you want to do in parallel. I would be happy to review and merge that function even without the parallel part. Then make that function work in parallel. For the parallel part, I would suggest to try with If you are not happy with the performance, you could try the future package, but I haven't investigated it myself, so I don't know how easy is to use. There is yet another third option: https://callr.r-lib.org/#multiple-background-r-processes-and-poll |
I have merged but I also did a few minor changes after the merging. In particular, I have moved the function to its own file, since I expect it to keep growing when you implement the parallel version. I also do not think the handling of random seeds is completely correct, since Looking forward to the next part! |
Yeah, looks like I'm concatenating the lists incorrectly, the seed generated by |
How should we approach the parallel execution? The Do you see any pitfalls with adapting |
Please, duplicate/copy the parts that you need and do not modify |
Would that allow someone to repeat individual runs knowing the seed? I think it may be easier to randomly generate as many integers randomly (or sequentially starting from global_seed) as seeds are needed, then set the |
When executing
irace
from the shell, you can useparallel-irace
to parallelize multiple runs of irace in addition to parallelizing executions of thetargetRunner
within a single run, right? Would it be possible to provide airace_parallel(runs)
R function that does the same, whereruns
is a list of tuples ofscenario
andparameters
?I'm not familiar with how the parallelization in R works, so I don't know how much work something like this might be. I personally would already be happy with executing multiple runs on multiple threads, I have no need for MPI or Slurm etc.
If this is something that should not be part of this repository, I would also be happy with some pointers to try and implement it myself.
The text was updated successfully, but these errors were encountered: