% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mpi.R
\docType{data}
\name{mpi}
\alias{mpi}
\title{MPI-distributed DRESS functions.}
\description{
An environment containing MPI-distributed versions of
\code{delta_dress_fit}.  Switch from CPU to MPI by prefixing calls
with \code{mpi$}.
}
\details{
The \code{mpi} environment provides:
\describe{
  \item{\code{mpi$delta_dress_fit(...)}}{MPI-distributed
        \code{\link{delta_dress_fit}} (CPU backend).
        Same arguments plus \code{comm_f}.}
  \item{\code{mpi$cuda$delta_dress_fit(...)}}{MPI-distributed
        \code{\link{delta_dress_fit}} (CUDA backend).
        Each rank runs GPU-accelerated DRESS.}
}

MPI support requires rebuilding the package with \code{DRESS_MPI}
(auto-detected when \code{mpicc} is available).
}
\examples{
\dontrun{
  # CPU
  r1 <- delta_dress_fit(4L, c(0L,1L,2L,2L), c(1L,2L,0L,3L), k = 1L)

  # MPI -- same signature, distributed
  r2 <- mpi$delta_dress_fit(4L, c(0L,1L,2L,2L), c(1L,2L,0L,3L), k = 1L)

  # MPI + CUDA
  r3 <- mpi$cuda$delta_dress_fit(4L, c(0L,1L,2L,2L), c(1L,2L,0L,3L), k = 1L)
}
}
