pub struct RingKernelConfig {
pub name: String,
pub workgroup_size: u32,
pub enable_hlc: bool,
pub enable_k2k: bool,
pub max_messages_per_dispatch: u32,
}Expand description
Configuration for ring kernel generation.
Fields§
§name: StringKernel name.
workgroup_size: u32Workgroup size (number of threads).
enable_hlc: boolEnable hybrid logical clock support.
enable_k2k: boolEnable kernel-to-kernel messaging (NOT SUPPORTED in WGPU).
max_messages_per_dispatch: u32Maximum messages per dispatch.
Implementations§
Source§impl RingKernelConfig
impl RingKernelConfig
Sourcepub fn with_workgroup_size(self, size: u32) -> Self
pub fn with_workgroup_size(self, size: u32) -> Self
Set workgroup size.
Sourcepub fn with_k2k(self, enable: bool) -> Self
pub fn with_k2k(self, enable: bool) -> Self
Enable K2K support (will error during transpilation - not supported in WGPU).
Sourcepub fn with_max_messages(self, max: u32) -> Self
pub fn with_max_messages(self, max: u32) -> Self
Set maximum messages per dispatch.
Sourcepub fn workgroup_size_annotation(&self) -> String
pub fn workgroup_size_annotation(&self) -> String
Get the workgroup size annotation.
Trait Implementations§
Source§impl Clone for RingKernelConfig
impl Clone for RingKernelConfig
Source§fn clone(&self) -> RingKernelConfig
fn clone(&self) -> RingKernelConfig
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 moreAuto Trait Implementations§
impl Freeze for RingKernelConfig
impl RefUnwindSafe for RingKernelConfig
impl Send for RingKernelConfig
impl Sync for RingKernelConfig
impl Unpin for RingKernelConfig
impl UnwindSafe for RingKernelConfig
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