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

[Compiler] Can't generate SAM graph for 4-tensor expression #69

Open
lrubens opened this issue Dec 9, 2022 · 1 comment
Open

[Compiler] Can't generate SAM graph for 4-tensor expression #69

lrubens opened this issue Dec 9, 2022 · 1 comment

Comments

@lrubens
Copy link
Collaborator

lrubens commented Dec 9, 2022

I can't seem to be able to generate the SAM graph for this 4-tensor expression: "X(i,j,k,l)=B(i,k,j,m)*C(i,l,j,m) -f=X:ssss -f=B:ssss -f=C:ssss".

@weiya711
Copy link
Owner

You're using TACO wrong since right now all of those formats CANNOT be run in concordant traversal. Since you specified the formats for X to be in i -> j -> k -> l order but B must be in i -> k -> j -> m order, which creates a conflict between j,k. The same is true between X and C creating a conflict between j,l.

To fix this you have to specify the mode orderings. you can do this by -f=B:ssss:0,2,1,3 and do the correct mode ordering for C such that everything is in concordant traversal when the loops are sorted topologically (i, j, k, l, m).

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

2 participants