enthought / enthought/distarray
Distribution.from_shape is producing localarrays with size 0
- Vorherrschende Sprache
- Python
- Sterne
- 5
- Forks
- 1
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
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.
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Rechercherichtung
Reproduzieren Sie das Beispiel mit vier Engines unter Verwendung von Distribution.from_shape und localshapes. Untersuchen Sie anschließend distarray/metadata_utils.py in Zeile 143 sowie die Berechnung der umgebenden Grid-Shape. Bestimmen Sie, wie sich die Größe des Communicators auf eine Achse auswirkt, die nicht gleichmäßig teilbar ist, und betrachten Sie das Issue als erledigt, wenn dieselbe Distribution kein zero-sized localarray mehr erzeugt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- python
- Bereich
- distributed-systems
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 45/100