Skip to main content

SubgroupCollective

Struct SubgroupCollective 

Source
pub struct SubgroupCollective<'a> {
    pub kind: &'a CollectiveKind,
    pub value: String,
    pub value_elem: ElementKind,
    pub operand: Option<String>,
    pub operand_const: Option<i64>,
    pub signed: bool,
    pub subgroup: Option<(u32, u32)>,
}
Expand description

One subgroup collective (board 506 “A”, narrowed) for a dialect to spell: the ruled reductions, shuffles, votes and broadcasts of crate::collective_is_ruled. The walker has already lowered the value and the operand to text, and the checker (check_kernel) has already refused a collective after a lane-divergent Return (CollectiveAfterReturn) or under lane-divergent control (BarrierDivergent).

Lifted by CireSnave 2026-11-26 (board 506 A) as his risk call: “outside as read” is a reading of public documents, not a clearance; no attorney; findings, not advice.

Fields§

§kind: &'a CollectiveKind

Which collective (a ruled one).

§value: String

The text of the value every lane contributes.

§value_elem: ElementKind

The element type of the value.

§operand: Option<String>

The text of the shuffle operand or the broadcast lane, when the kind has one.

§operand_const: Option<i64>

The operand’s value when it is a constant (ConstInt), else None.

§signed: bool

Whether the kernel’s integers are signed (I32) rather than unsigned (U32).

§subgroup: Option<(u32, u32)>

The launch’s stated subgroup size range, (min, max), when the launch states one.

Trait Implementations§

Source§

impl<'a> Clone for SubgroupCollective<'a>

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'a> Debug for SubgroupCollective<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'a> Forget for SubgroupCollective<'a>

§

impl<'a> Freeze for SubgroupCollective<'a>

§

impl<'a> Move for SubgroupCollective<'a>

§

impl<'a> RefUnwindSafe for SubgroupCollective<'a>

§

impl<'a> Send for SubgroupCollective<'a>

§

impl<'a> Sync for SubgroupCollective<'a>

§

impl<'a> Unpin for SubgroupCollective<'a>

§

impl<'a> UnsafeUnpin for SubgroupCollective<'a>

§

impl<'a> UnwindSafe for SubgroupCollective<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.