Mojo function
permlane_swap
permlane_swap[dtype: DType, //, stride: Int](val1: Scalar[dtype], val2: Scalar[dtype]) -> SIMD[dtype, 2]
Swaps values between lanes using AMD permlane swap instruction.
Parameters:
- βdtype (
DType): Data type of the values (must be 32-bit type). - βstride (
Int): Swap stride (must be 16 or 32).
Args:
Returns:
SIMD: SIMD vector containing the swapped values.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!