Mojo function
permlane_shuffle
permlane_shuffle[dtype: DType, simd_width: Int, //, stride: Int](val: SIMD[dtype, simd_width]) -> SIMD[dtype, simd_width]
Shuffles SIMD values across lanes using AMD permlane operations.
Parameters:
- βdtype (
DType): Data type of the values. - βsimd_width (
Int): Width of the SIMD vector. - βstride (
Int): Shuffle stride.
Args:
- βval (
SIMD): Input SIMD vector to shuffle.
Returns:
SIMD: Shuffled SIMD vector in the res output parameter.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!