IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /get-started.md).

Mojo function

permlane_shuffle

def permlane_shuffle[dtype: DType, simd_width: SIMDLength, //, 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 (SIMDLength): Width of the SIMD vector.
  • ​stride (Int): Shuffle stride.

Args:

Returns:

SIMD[dtype, simd_width]: Shuffled SIMD vector in the res output parameter.

Was this page helpful?