Expand documentation

Aberta
#115 1 comentário 3 reações 0 responsáveis Ver no GitHub

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
3/5
Tempo estimado
1-2 dias
Facilidade para iniciantes
45/100
Tipo de issue
Documentação
Clareza
Razoavelmente clara
Status de atividade
Estagnada
Stack de tecnologia
julia

Direção de pesquisa

Nenhum arquivo de documentação ou teste foi indicado. Comece localizando a documentação existente de DistributedArrays e o material sobre o construtor DArray; em seguida, revise os exemplos atuais de dzeros, slicing, conversão e construtores. O trabalho estará concluído quando o armazenamento de DistributedArray, o comportamento de cópia e as orientações de desempenho estiverem documentados, e quando for adicionado um exemplo mais claro de construtor intermediário com sua explicação dos índices de processo.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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

Linguagem predominante
Julia
Estrelas
205
Forks
34
Métricas de merge de PRs
Nenhum PR com merge em 30d

Preparar o ambiente

Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de JuliaParallel/DistributedArrays.jl

Todas as issues de JuliaParallel/DistributedArrays.jl

Issues semelhantes

Mais issues de Julia

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.