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

taco "A(i,j) = B(i,j)" -f=A:sd -f=B:sd -print-assembly #86

Open
stephenchouca opened this issue May 22, 2017 · 0 comments
Open

taco "A(i,j) = B(i,j)" -f=A:sd -f=B:sd -print-assembly #86

stephenchouca opened this issue May 22, 2017 · 0 comments
Labels
bug Indicates an unexpected problem or unintended behavior

Comments

@stephenchouca
Copy link
Contributor

taco generates the following incorrect code:

...
for (int B1_pos = B0_pos[0]; B1_pos < B0_pos[1]; B1_pos++) {
  int iB = B0_idx[B1_pos];
  for (int jB = 0; jB < B1_size; jB++) {
    int B2_pos = (B1_pos * B1_size) + jB;
    int A2_pos = (A1_pos * A1_size) + jB;

  }
  A0_idx[A1_pos] = iB;
  if (A1_pos[A1_pos + 1] > A1_pos[A1_pos]) { // the second dimension of A is dense, so it won't actually have a pos array
    A1_pos++;
    if ((0 == ((A1_pos + 1) & A1_pos)) && (init_alloc_size <= (A1_pos + 1)))
      reallocate A0_idx[(2 * (A1_pos + 1))]
  }
}
...
@stephenchouca stephenchouca added the bug Indicates an unexpected problem or unintended behavior label May 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Indicates an unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

1 participant