GithubHelp home page GithubHelp logo

Comments (3)

minrk avatar minrk commented on June 25, 2024

I don't think anyone is working on it at the moment, but it should be possible.

from ipyparallel.

dalbabur avatar dalbabur commented on June 25, 2024

What would it take to implement it? I could attempt to with some directions.

from ipyparallel.

minrk avatar minrk commented on June 25, 2024

map needs to partition inputs, so that each engine gets its chunk of the input sequence(s), which is done here. In DirectView, this is implemented by partitioning the input in the client and then sending a different message to each endpoint.

In BroadcastView, the client sends just one message (that's kind of its whole deal), so the partitioning would need to be handled in the BroadcastScheduler, instead. Reconstruction could either happen in the scheduler, or only aggregated in the scheduler and reconstructed finally in the client.

Perhaps the simplest implementation would be to still compute the partition in the client, but then send all partitions to the scheduler. Then, as each scheduler relays its messages, it selects the subset of chunks it needs to send along each path, and returns the results in a similar shape for the client to reconstruct.

All that said, you can use BroadcastView to run maps today, as long as you do the partitioning separately, as either SPMD-style partitioning on engines (works best for BroadcastView), or via e.g. DirectView.scatter.

here's a notebook that implements map by combining BroadcastView and DirectView. We could actually ship a simplest-possible BroadcastView.map that is exactly the broadcast_map in that notebook (with some more unique temp variable names to avoid collisions). It's not as efficient as a 'true' Broadcast Map, but it does work, and can always be optimized later.

from ipyparallel.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.