stan-dev / stan-dev/math

refactor mpi_cluster

Open
#903 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

mpi
Dominant language
C++
Stars
839
Forks
220
Avg merge
2d 4h
Merged PRs (30d)
14

Description

Summary:

The mpi_cluster resource in stan-math should be revisited and it's design possibly improved.

Description:

The suggested improvements which need consideration are

Reproducible Steps:

NA

Current Output:

The current output. Knowing what is the current behavior is useful.

Expected Output:

Describe what you expect the output to be. Knowing the correct behavior is also very useful.

Additional Information:

Provide any additional information here.

Current Version:

develop

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 locating the mpi_cluster resource and its listening_state method in the Stan Math codebase. Review how listening_state returns by reference and how unique_lock is used, then compare the proposed singleton and lock_guard alternatives; the work is done when the design choice and resulting resource behavior are documented and validated.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
distributed-systems
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.