RsBundle  Diff

Differences From Artifact [6349072887]:

  • File src/mpi/problem.rs — part of check-in [61e9d3a40a] at 2023-04-06 16:24:18 on branch mpi — mpi::problem: forward errors correctly (user: fifr size: 10538)

To Artifact [a3817d9edc]:

  • File src/mpi/problem.rs — part of check-in [59550c6fae] at 2023-04-06 16:24:53 on branch mpi — mpi::problem: mark oracle error as error source (user: fifr size: 10548)

41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#[derive(Debug, Error)]
pub enum Error<E> {
    /// MPI error.
    #[error("MPI error")]
    MPI,
    /// Original oracle error.
    #[error("Error by underlying oracle")]
    OracleError(E),
}

pub trait DistributedFirstOrderProblem: FirstOrderProblem + Send + Sync {
    /// Abstract information about a model update.
    ///
    /// The update must be a serializable representation of a model
    /// change, which can be transferred to different nodes in a







|







41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#[derive(Debug, Error)]
pub enum Error<E> {
    /// MPI error.
    #[error("MPI error")]
    MPI,
    /// Original oracle error.
    #[error("Error by underlying oracle")]
    OracleError(#[source] E),
}

pub trait DistributedFirstOrderProblem: FirstOrderProblem + Send + Sync {
    /// Abstract information about a model update.
    ///
    /// The update must be a serializable representation of a model
    /// change, which can be transferred to different nodes in a