Skip to content
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

Limit number of cores/threads used #114

Open
mherkhachatryan opened this issue Jan 30, 2024 · 3 comments
Open

Limit number of cores/threads used #114

mherkhachatryan opened this issue Jan 30, 2024 · 3 comments

Comments

@mherkhachatryan
Copy link

How can one limit of number of cores or threads used by polychord. I have tried to to set with OMP_NUM_THREADS environmental variable inside docker, but it does not seem to help.

Any help would be appreciated.

@mherkhachatryan
Copy link
Author

I deployed polychord inside docker container, limit container usage with this docker-compose command

    deploy:
      resources:
        limits:
          cpus: '3.0'

it's running 2nd day, but on multinest inside same environment sampling would take on same number of data points and parameters like 40 minutes.

@williamjameshandley
Copy link
Member

Hi @mherkhachatryan, PolyChord is MPI parallelised, so OMP_NUM_THREADS wouldn't change runtime unless your likelihood has parallelisation.

A good rule of thumb for nested sampling is to start with a very low number of live points (say 5), and see how long that takes to run.

You can then work out how long a full run will take with the scaling

T_run ~ T_0 * (nlive/nlive0) / n_mpi_threads

@mherkhachatryan
Copy link
Author

mherkhachatryan commented Mar 8, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants