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:
- βval (
SIMD[dtype, simd_width]): Input SIMD vector to shuffle.
Returns:
SIMD[dtype, simd_width]: Shuffled SIMD vector in the res output parameter.