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

Semantics of no_deps hint on inner loops is not clear #554

Open
roastduck opened this issue Jul 23, 2023 · 0 comments
Open

Semantics of no_deps hint on inner loops is not clear #554

roastduck opened this issue Jul 23, 2023 · 0 comments

Comments

@roastduck
Copy link
Owner

Suppose we mark no_deps in the j loop inside another i loop, like

for i in range(m):
  #! no_deps: a
  for j in range(n):
    a[f(i, j)]

Does it mean for all $\forall i, j_1, j_2, f(i, j_1) \ne f(i, j_2)$, or $\forall i_1, i_2, j_1, j_2, f(i_1, j_1) \ne f(i_2, j_2)$? The current code implements the latter, but I think users may want the former in most of the cases. We need to make it clear.

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