Skip to content

Unifying communicator API #165

@carterbox

Description

@carterbox

There are a lot of these types of switches in the solver implementations. The Comm API should be reworked to avoid these switches.

if comm.use_mpi:
    cost = comm.Allreduce_reduce(cost, 'cpu')
else:
    cost = comm.reduce(cost, 'cpu')

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions