enthought / enthought/distarray

Distribution.from_shape is producing localarrays with size 0

Aperta
#442 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub
bug
Lingua principale
Python
Stelle
5
Fork
1
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

With 4 engines:

``` python
In [1]: from distarray.dist import Context, Distribution

In [2]: context = Context()

In [3]: distribution = Distribution.from_shape(context, (9, 8), dist=('b', 'n'))

In [4]: distribution.localshapes()
Out[4]: [(3, 8), (3, 8), (3, 8), (0, 8)]
```

This appears to be from [this line](https://github.com/enthought/distarray/blob/master/distarray/metadata_utils.py#L143).

The size of this axis of the `grid_shape` is set to `comm_size`, which doesn't divide into the size of the corresponding axis of the DistArray.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.