Expand documentation

Aperta
#115 1 commento 3 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
45/100
Tipo di issue
Documentazione
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
julia

Direzione di ricerca

Non è indicato alcun file di documentazione né alcun test. Inizia individuando la documentazione esistente di DistributedArrays e il materiale sul costruttore DArray, quindi esamina gli esempi attuali di dzeros, slicing, conversione e costruttori. Il lavoro è completato quando sono documentati l'archiviazione di DistributedArray, il comportamento delle copie e le indicazioni sulle prestazioni, e viene aggiunto un esempio più chiaro di costruttore intermedio con la relativa spiegazione degli indici di processo.

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

Descrizione

We are finding the documentation for DistributedArrays to be lacking in a few ways:

  1. There is no description of the actual DistributedArray type. It would be helpful to know how DistributedArrays are stored across processes. A lot of people who are using DistributedArrays are experienced at distributed programming, and will find it helpful to know how things are implemented. For instance, it would be helpful to get an idea (without looking at the source code) of how the local parts are tied together in a single type.

  2. When are values copied/not copied? For example:

da = dzeros(100,100)
sa = da[1:10, 35:50]
out = convert(DArray, sa)

Does the last line here copy the values of sa? More generally, information about performance would be really useful, as well as some performance tips.

  1. Expound a bit more on DArray constructor. Perhaps an example somewhere between dfill and the Game of Life would help, like this:
procs = addprocs(5)

# Construct a DArray 
da = DArray((2,5), procs, [1,5]) do I  
	# construct a local part
	localpart = Array{Float64}(2,1)	
	for i in first(I)  # first(I) = 1:2
		localpart[i] =  i
	end
	return localpart
end

It would help to describe this example as follows:

This DArray is distributed so that each of 5 processes holds one column. I is a tuple of indices describing the indices of the DArray that reside on a given process. On the first process, I = (1:2,1:1). In the init function, we construct the local column as a regular Array and return it to the DArray constructor. Note that it is important to return localpart: if we don't do this, then Julia returns the last variable that was assigned, which is localpart[2] - but the DArray constructor is expecting an array.

cc @pearlzli

Lingua principale
Julia
Stelle
205
Fork
34
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di JuliaParallel/DistributedArrays.jl

Tutte le issue di JuliaParallel/DistributedArrays.jl

Issue simili

Altre issue su Julia

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.