-
Notifications
You must be signed in to change notification settings - Fork 189
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
Can every index be sparse? #537
Comments
What schedule did you try and use with this expression and format pair? If you tried to parallelize the |
Thank you for your answer Rohany.
|
If you do not attempt to parallelize your code, then every index can indeed be sparse. What error do you get when running that program? |
Segmentation fault. Have you tried to run the code ? Are you suggesting that it has to be a problem with my environment ? |
Can you get a backtrace with gdb? It will be more fruitful if you compile TACO in debug mode ( |
Here it is: terminate called after throwing an instance of 'taco::TacoException' Backtrace: |
So the first part of the problem is that TACO is getting confused by you using the same variable in multiple places in the expression (which is a bug). Changing this
to
and this
to
makes that crash go away. However, the resulting problem is more serious -- TACO spits out some invalid code:
This is a harder bug to fix, and unfortunately I don't have much time to track down and fix this (maintaining TACO is not my primary obligation right now). If there's anyone else who has time cc @tensor-compiler/core-developers they could take it. Theoretically, TACO should be able to generate code for this kernel. |
Ok, thank you very much for your help. |
I tried to generate in the online generation the simple example having every index sparse and it fails.
Am I misunderstanding something?
It seems that some index in the outcome tensor should be Dense, is it true?
The text was updated successfully, but these errors were encountered: