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

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:

Returns:

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