Skip to content

Question about the structured-to-memref pass #126

Answered by nhat-nguyen
mfrancepillois asked this question in Q&A
Discussion options

You must be logged in to vote

@mfrancepillois

This suggests that this operation [tts.load] is useful for creating a sub-view from the pointer created by tts.make_tptr.
Is this correct?

If this is the case, I'm not sure why we need a memref.alloc + a memref.copy to convert this operation.

This question touches on a few design key points that I will try to address.

Our triton-to-linalg pass was originally created to help with compiling triton on accelerators. Because accelerators potentially have multiple levels of memory, tensors are first created from the main memory and distributed to many triton program instances, each operating on a slice of the main tensor at another memory level. As a result, each triton prog…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@sommerlukas
Comment options

@nhat-nguyen
Comment options

Answer selected by mfrancepillois
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants