Replies: 2 comments 1 reply
-
Well, if DMA is defined outside of kernels, how to describe it in MLIR graph ? I really need your help, thanks. |
Beta Was this translation helpful? Give feedback.
-
The DMAs you are referring to are emitted as part of the lowering of the kernel, so it won't be visible in either the Mosaic or the HLO. Specifically, when the HLO is compiled into TPU assembly in the very final stage of compilation, it additionally inlines these DMAs. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to understand how pallas kernel is integrated into a graph in mlir. I don't understand the
stablehlo.custom_call
op generated byhlo_to_mhlo
pass. As we can see in the graph it accepts two tensors which is from HBM I suppose, but actually a pallas kernel accepts Vmem pointers. When compiling a graph with many stablehlo ops (whether from pallas or not), where is the dma from hbm to vmem, as pallas defined DMAs "outside" of kernel ?Gives:
Beta Was this translation helpful? Give feedback.
All reactions