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!

@parsifal-47
Copy link
Contributor Author

among currently open, this is probably the most interesting PR for me in terms of understanding some fundamental ideas @nhat-nguyen could you please take a look when you have a chance

@nhat-nguyen
Copy link
Collaborator

@haishanzzzz and his team at Meta has an unpublished PR that also handles bitcast, so let's wait until he's back so we can coordinate how to handle this.

@parsifal-47
Copy link
Contributor Author

@haishanzzzz are you back? could you please take a look?

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.

2 participants