Open
Description
Summary:
Allows other types of mpi communicator used in mpi_cluster
Description:
Currently we only allow MPI_COMM_WORLD
in MPI jobs. This is not enough if we want to mix Stan with other MPI-enabled libraries when Stan only utilized part of the MPI cluster in the whole cluster, or to allow Stan to dispatch part of cluster to a specific task. An application is when used with a PDE solver where there may be multiple groups of nodes, each of which running in its own communicator for part of the PDE problem.
Reproducible Steps:
n/a, new feature
Current Output:
n/a
Expected Output:
mpi_cluster
uses user-supplied communicator
.
Additional Information:
Provide any additional information here.
Current Version:
v2.18.0