Skip to content

Indexing not Stable #703

@Inzlinger

Description

@Inzlinger

Description
When using indices to acces array elements the order in the result is not stable for different splits.

To Reproduce

import heat as ht

a = ht.array([0,1], split = 0)

indices = ht.array([0, 1, 0, 1], split=0)

b = a[indices]
b.balance_()

print(b._DNDarray__array)

print(b)

With 1 process this gives [0, 1, 0, 1] as expected
Run this with n=2 and it changes the order to [0, 0, 1, 1].

Expected behavior
The same ordering in the result for all splits.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingindexing

Type

No fields configured for Bug.

Projects

Status
In Progress

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions