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

ht.eye fails for distributed non-squared tensors #528

Closed
Cdebus opened this issue Apr 6, 2020 · 0 comments · Fixed by #534 or #540
Closed

ht.eye fails for distributed non-squared tensors #528

Cdebus opened this issue Apr 6, 2020 · 0 comments · Fixed by #534 or #540

Comments

@Cdebus
Copy link
Contributor

Cdebus commented Apr 6, 2020

Description
Creating a distributed 2D ht.eye with different x and y dimensions throws errors

To Reproduce
Steps to reproduce the behavior:

  1. Affected: heat>factories>eye
  2. To Reproduce:
      a = ht.eye( (ht.MPI_WORLD.size * 2, ht.MPI_WORLD.size * 3), dtype=ht.float32, split=1)
     >> mpirun -n 2 
  1. Error message
  File "/p/home/jusers/debus1/hdfml/heat/heat/core/factories.py", line 524, in eye
    data[pos_x][pos_y] = 1
IndexError: index 4 is out of bounds for dimension 0 with size 4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant