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

Make bitcast work for tensors of pointers #171

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

parsifal-47
Copy link
Contributor

I could be missing some high-level ideas about Triton Structured, here is my reasoning:
When bitcasting tensor<ptr> -> tensor<ptr<something_else>> arith::bitcast does not work and all memref/tensor casts. However no manipulations to the data are needed, this is a transformation like casting between different pointer types. I introduced ptr_cast on tts level which becomes unrealized conversion once all types for pointers are settled. This change fixes all comparison tests that require pointer casting at store. Let me know what you think!

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.

1 participant