-
Notifications
You must be signed in to change notification settings - Fork 152
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
Dream sampler. Parallel computation #266
Comments
Hi @baramousa |
thanks for the quick reply. just another question let us say i want to implement the hymod example below. if i want to implement it it parallel then i need to set parellel to equal "mpi" for linux machine and to "mpc" for windows machine. am i getting it right ? |
Yes, thats correct. |
ok. thanks a lot . I wil try it and give my feedback |
Hi @thouska . i tried to run your hymod_dream example in parallel. it seams to run but then i get a warning. First this is the code: Then i get this warning: Convergence rates =1.5744 4.8378 1.4476 1.3106 1.5791
|
Hi @baramousa |
Hi @baramousa, |
Hi @thouska . Sorry for the late reply. I downloaded Anaconda which has the pythom 3.8 or newer one, and tried the parallelisation of dream on windows and it seems to work. However my issue now is that my model write input and output data as text files. And in order for the parallelisation to work effictively, each chain should has it is own directory were write and read input and output files. My question is if there is a way to extract the id/number of the currently running chains so i can insert them in my model to create a directory for each of them. |
Hi @baramousa, Basically under 'mpi' you can access the cpu_id this way:
Under 'mpc' it is done like this:
I would recommend to work with these, instead of usinf the chain_id (in case of dream) or complex_id (in case of sce-ua), as the above example works independent of the choice of the algorithm in spotpy. |
Hi @thouska , i am guessing it has to do with this script in _algorithm.py :
|
Hi @baramousa, However, I looked again into this, played a lot around and can finally come up with a fix (see commit above). from:
into:
Now it works fine for me. At least in 90% of the cases. From time to time the header is broken, but the rest should be fine. @baramousa: Could you test for your case and give your feedback here? |
Hi @thouska , |
Hi @baramousa |
Hi, this is not really an issue. i just want to know which version of dream this package is?. Is it the basic dream or dreamzs or mt-dreamzs.. Am asking because i want to know if parallel computation is possible . As far as i know basic dream can be run only sequential while the others can be run in parallel.
Thanks @thouska
The text was updated successfully, but these errors were encountered: