Skip to main content

## wave_reduce_xor

# Function wave_reduce_xor

Source

    pub fn wave_reduce_xor<const STRATEGY: u32>(value: u32) -> u32

🔬This is a nightly-only experimental API. (`stdarch_amdgpu` #149988)
Available on `target_arch=amdgpu` only.
Expand description

Performs a logical xor reduction on the unsigned values provided by each lane in the wavefront.

The `STRATEGY` argument is a hint for the reduction strategy.

- 0: Target default preference
- 1: Iterative strategy
- 2: DPP

If target does not support the DPP operations (e.g. gfx6/7), reduction will be performed using default iterative strategy.