JuliaParallel / JuliaParallel/DistributedArrays.jl

map with multiple arguments

Aperta
#123 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
enhancement
Lingua principale
Julia
Stelle
205
Fork
34
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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.

```julia
@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!

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
julia
Ambito
distributed-systems
Tipo di issue
Funzionalità
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
42/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.