Git Product home page Git Product logo

Comments (15)

JesusTorrado avatar JesusTorrado commented on August 28, 2024

Hi Vivian,

I have been doing some tests but have had no problem resuming with MCMC or PolyChord.

The last line in out_... suggests that resuming is not possible because the previous run was send with a different number of MPI processes from the new one. Do you think that's the case? If it is, I am afraid, this is a limitation that is hard to tackle right now.

Also, I am a little surprised that the chains files are deleted. This should never happen! Does it delete the chains when it tries to resume but fails?

(Sorry for the delay with this! I have too many projects going on right now)

from cobaya.

vivianmiranda avatar vivianmiranda commented on August 28, 2024

from cobaya.

vivianmiranda avatar vivianmiranda commented on August 28, 2024

from cobaya.

JesusTorrado avatar JesusTorrado commented on August 28, 2024

You are right, sorry! It does in the case in which there is a different number of MPI processes. This should definitely not happen! Fixing it right now! I hope you haven't lost anything important :(

from cobaya.

vivianmiranda avatar vivianmiranda commented on August 28, 2024

from cobaya.

JesusTorrado avatar JesusTorrado commented on August 28, 2024

Wow, I am really very sorry!!!

from cobaya.

vivianmiranda avatar vivianmiranda commented on August 28, 2024

from cobaya.

JesusTorrado avatar JesusTorrado commented on August 28, 2024

Thanks! :)

Still debugging: it's a tricky one! But won't close for today until I get it done. Stay tuned!

from cobaya.

JesusTorrado avatar JesusTorrado commented on August 28, 2024

Done! It was a error in my MPI-wrapping of the output class. I am very grateful to you for suffering through all these bugs!

On Monday, I'll try to incorporate your fix for the new Planck likelihood code, so that you don't need to keep your own version.

from cobaya.

vivianmiranda avatar vivianmiranda commented on August 28, 2024

I am not suffering! I am enjoying your new very cool code! I am glad I can contribute in some small ways!

from cobaya.

vivianmiranda avatar vivianmiranda commented on August 28, 2024

Hi I still get problems. Now this

Traceback (most recent call last):
File "/scratch/midway2/viniciusvmb/krause/cosmo_cobaya/bin/cobaya-run", line 11, in
load_entry_point('cobaya', 'console_scripts', 'cobaya-run')()
File "/scratch/midway2/viniciusvmb/krause/cosmo_cobaya/cosmolike_core/cobaya/cobaya/run.py", line 126, in run_script
run(info)
File "/scratch/midway2/viniciusvmb/krause/cosmo_cobaya/cosmolike_core/cobaya/cobaya/run.py", line 45, in run
_force_reproducible, _force_reproducible_default))
File "/scratch/midway2/viniciusvmb/krause/cosmo_cobaya/cosmolike_core/cobaya/cobaya/output.py", line 208, in get_Output
return Output(*args, **kwargs)
File "/scratch/midway2/viniciusvmb/krause/cosmo_cobaya/cosmolike_core/cobaya/cobaya/output.py", line 191, in init
setattr(self, var, comm.bcast(getattr(self, var), root=0))
AttributeError: 'Output_MPI' object has no attribute 'resuming'

Best

from cobaya.

vivianmiranda avatar vivianmiranda commented on August 28, 2024

And if I run without mpirun I get the error

Traceback (most recent call last):
File "/scratch/midway2/viniciusvmb/krause/cosmo_cobaya/bin/cobaya-run", line 11, in
load_entry_point('cobaya', 'console_scripts', 'cobaya-run')()
File "/scratch/midway2/viniciusvmb/krause/cosmo_cobaya/cosmolike_core/cobaya/cobaya/run.py", line 126, in run_script
run(info)
File "/scratch/midway2/viniciusvmb/krause/cosmo_cobaya/cosmolike_core/cobaya/cobaya/run.py", line 66, in run
modules=info.get(_path_install)) as sampler:
File "/scratch/midway2/viniciusvmb/krause/cosmo_cobaya/cosmolike_core/cobaya/cobaya/sampler.py", line 202, in get_sampler
info_sampler[name], posterior, output_file, resume=resume, modules=modules)
File "/scratch/midway2/viniciusvmb/krause/cosmo_cobaya/cosmolike_core/cobaya/cobaya/sampler.py", line 161, in init
self.initialize()
File "/scratch/midway2/viniciusvmb/krause/cosmo_cobaya/cosmolike_core/cobaya/cobaya/samplers/mcmc/mcmc.py", line 65, in initialize
get_mpi_comm().barrier()
AttributeError: 'NoneType' object has no attribute 'barrier'

So I can't use Cobaya at all now

from cobaya.

vivianmiranda avatar vivianmiranda commented on August 28, 2024

I was able to create the following workaround on output.py

screen shot 2018-12-14 at 4 29 44 pm

from cobaya.

JesusTorrado avatar JesusTorrado commented on August 28, 2024

Thanks for the fix, and sorry! Nothing goods come out of a last-minute Friday-evening attempt of a bugfix.

from cobaya.

vivianmiranda avatar vivianmiranda commented on August 28, 2024

from cobaya.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.