MPI generated quantities
Open
Nobody has claimed this yet.
feature
- Dominant language
- R
- Stars
- 160
- Forks
- 69
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 15
Description
Similar to sample_mpi method it make sense to have generated_quantities_mpi that is able to run the block with MPI. An alternative could be to have generated_quantities detect if the fitted_param is based on MPI run, if so it performs MPI run on the block. That is,
generate_quantities_mpi(
fitted_params,
mpi_cmd = "mpiexec", # use mpi
mpi_args = NULL, # use mpi
data = NULL,
seed = NULL,
output_dir = NULL,
sig_figs = NULL,
parallel_chains = getOption("mc.cores", 1),
threads_per_chain = NULL
)
or
generate_quantities(
fitted_params,
use_mpi_from_fitted_params = TRUE, # use mpi settings from fitted_params
data = NULL,
seed = NULL,
output_dir = NULL,
sig_figs = NULL,
parallel_chains = getOption("mc.cores", 1),
threads_per_chain = NULL
)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by comparing the existing sample_mpi method with generated_quantities and inspect how fitted_params records MPI settings. Decide whether a dedicated generated_quantities_mpi entry point or automatic MPI detection is appropriate, then verify that generated quantities runs with the requested MPI command and arguments.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- r
- Domain
- api
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100