JuliaParallel / JuliaParallel/DistributedArrays.jl

map with multiple arguments

Open
#123 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Julia
Stars
205
Forks
34
PR merge metrics
No merged PRs in 30d

Description

It would be great if map could also be called with 2 or more distributed arrays as argument. Currently the fall-back map is used.

@everywhere using DistributedArrays
x = distribute([1:10;])
y = distribute(2*[1:10;],x);
@which map(x -> x+1,x)
@which map(x,y -> x+1,x,y)

The output is the following:
map(f, d::DistributedArrays.DArray) at /home/abarth/.julia/v0.5/DistributedArrays/src/mapreduce.jl:6
map(f, iters...) at abstractarray.jl:1711

In any case, thank you for your great library!

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with src/mapreduce.jl, especially the map implementation reported in the issue, and reproduce the two @which calls using the supplied DistributedArrays example. Trace how map dispatch handles one distributed array versus multiple iterators. Done means the multi-array call no longer falls back to abstractarray.jl and has coverage for the demonstrated case.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
distributed-systems
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.