pub struct ReductionCodegenConfig {
pub block_size: u32,
pub value_type: String,
pub op: ReductionOp,
pub use_cooperative: bool,
pub generate_helpers: bool,
}Expand description
Configuration for reduction code generation.
Fields§
§block_size: u32Thread block size (must be power of 2).
value_type: StringValue type (CUDA type name).
op: ReductionOpReduction operation.
use_cooperative: boolUse cooperative groups for grid-wide sync.
generate_helpers: boolGenerate helper function definitions.
Implementations§
Source§impl ReductionCodegenConfig
impl ReductionCodegenConfig
Sourcepub fn with_op(self, op: ReductionOp) -> Self
pub fn with_op(self, op: ReductionOp) -> Self
Set the reduction operation.
Sourcepub fn with_cooperative(self, enabled: bool) -> Self
pub fn with_cooperative(self, enabled: bool) -> Self
Enable or disable cooperative groups.
Trait Implementations§
Source§impl Clone for ReductionCodegenConfig
impl Clone for ReductionCodegenConfig
Source§fn clone(&self) -> ReductionCodegenConfig
fn clone(&self) -> ReductionCodegenConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ReductionCodegenConfig
impl Debug for ReductionCodegenConfig
Auto Trait Implementations§
impl Freeze for ReductionCodegenConfig
impl RefUnwindSafe for ReductionCodegenConfig
impl Send for ReductionCodegenConfig
impl Sync for ReductionCodegenConfig
impl Unpin for ReductionCodegenConfig
impl UnwindSafe for ReductionCodegenConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more