Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Distributed einsum calls from python #463

Open
obackhouse opened this issue Jul 31, 2024 · 0 comments
Open

Distributed einsum calls from python #463

obackhouse opened this issue Jul 31, 2024 · 0 comments

Comments

@obackhouse
Copy link

Are einsum calls from Python using some distributed layout not supported? The following code segfaults for me on >1 process

import numpy as np
import tiledarray as ta

world = ta.get_default_world()

ref = np.random.rand(4, 4)

x = ta.TArray([4, 4], 2, world=world)
for i, tile in enumerate(x):
    if i % world.size == world.rank:
        slices = tuple(slice(a, b) for a, b in zip(tile.range.start, tile.range.stop))
        tile.data = ref[slices].copy()
world.fence()

y = ta.TArray()
ta.einsum("ij,jk->ik", x, x, y)

as does something even simpler like ta.einsum("ij->ij", x, y).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant