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

rename_inames does not map domains #726

Open
isuruf opened this issue Jan 10, 2023 · 0 comments · May be fixed by #727
Open

rename_inames does not map domains #726

isuruf opened this issue Jan 10, 2023 · 0 comments · May be fixed by #727

Comments

@isuruf
Copy link
Collaborator

isuruf commented Jan 10, 2023

For eg:

knl = lp.make_kernel(
    [
        "{ [i]: 0<=i<10 }",
        "{ [k]: 0<=k<i }",
    ],
    "out[i, k] = 2*a[i, k]"
)
knl = lp.rename_inames(knl, ["i"], "j")

results in the following domains:

{ [j] : 0 <= j <= 9 }
{ [k] : k >= 0 }

Looking at the intermediate domains before unused inames are removed we see the issue.

{ [i, j] : 0 <= i <= 9 and 0 <= j <= 9 }
[i] -> { [k] : 0 <= k < i }

Note that the domain with k does not have j in it.

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

Successfully merging a pull request may close this issue.

1 participant