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

tensor,module: add a utility to allow for debugging generated kernels #378

Closed
wants to merge 1 commit into from

Conversation

rohany
Copy link
Contributor

@rohany rohany commented Jan 22, 2021

This commit adds a function debugCompileSource to a Tensor that
allows for the Tensor to use a kernel from a provided source file
instead of generating a new one. This allows developers to add
prints/assertions to TACO generated code to debug faster.

Inspired by Amalee's PR (#302), I would have found a command like this
very useful for debugging generated code.

This commit adds a function `debugCompileSource` to a `Tensor` that
allows for the `Tensor` to use a kernel from a provided source file
instead of generating a new one. This allows developers to add
prints/assertions to TACO generated code to debug faster.

Inspired by Amalee's PR (tensor-compiler#302), I would have found a command like this
very useful for debugging generated code.
@stephenchouca
Copy link
Contributor

stephenchouca commented Jan 22, 2021

Can you clarify how this differ from the compileSource method in TensorBase?

@rohany
Copy link
Contributor Author

rohany commented Jan 22, 2021

Hmm, I think I missed that function when looking around. To use it, do you pass in a string of the full source to use, or just the compute function? I'll close this as it's not needed.

@rohany rohany closed this Jan 22, 2021
@stephenchouca
Copy link
Contributor

I believe you should only need to pass in the source for the compute/assembly/evaluate functions as the argument.

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 this pull request may close these issues.

None yet

2 participants