-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BroadcastView map Not Implemented #861
Comments
I don't think anyone is working on it at the moment, but it should be possible. |
What would it take to implement it? I could attempt to with some directions. |
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. here's a notebook that implements map by combining BroadcastView and DirectView. We could actually ship a simplest-possible |
The documentation made it seem like BroadcastView.map had been implemented. Is this feature coming?
The text was updated successfully, but these errors were encountered: