Skip to main content

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?