dfm / dfm/emcee

Running emcee with mpi and openmp

Open
#286 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
1.6k
Forks
440
PR merge metrics
No merged PRs in 30d

Description

I am trying to run emcee with MPI, but my model in lnlike function is a C code runs with openmp. The code works faster if openmp is off. Is there anyway to make use of MPI and openmp together?. Any suggestions to include in the python script or Slurm script is appreciated. Thanks.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by checking how emcee invokes the lnlike function and how MPI is configured in a Python or Slurm script. Reproduce the C model with OpenMP enabled and disabled while comparing the execution behavior. Done would require a documented, working way to combine MPI and OpenMP, or a clear determination that the change belongs outside emcee.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, python
Domain
distributed-systems, performance
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
15/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.