Does the triton define the fast change dimension? #778
-
I am investigating to integrate the SPIRV to triton as a new backend. The Triton, PTX and SPIRV all define three parallel loop dimensions. I want to know whether it is clear defined in Triton how the dimensions are mapped. By reviewing the code it seems the mapping from Triton to PTX is: In NV/CUDA, the X dimension is the fast change dimension which means the thread are grouped along the X dim first. Can I assume in the triton, dim 0 is the fast change dim in parallel? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Exciting! Are you looking at the Triton-MLIR branch? Yes, this is right! |
Beta Was this translation helpful? Give feedback.
Exciting! Are you looking at the Triton-MLIR branch?
Yes, this is right!
triton.program_id({0,1,2})
maps toblockIdx.{x,y,z}