pub struct PersistentFdtdConfig {
pub name: String,
pub tile_size: (usize, usize, usize),
pub use_cooperative: bool,
pub progress_interval: u64,
pub track_energy: bool,
}Expand description
Configuration for persistent FDTD kernel generation.
Fields§
§name: StringKernel function name.
tile_size: (usize, usize, usize)Tile size per dimension (cells per block).
use_cooperative: boolWhether to use cooperative groups for grid sync.
progress_interval: u64Progress report interval (steps).
track_energy: boolEnable energy calculation.
Implementations§
Source§impl PersistentFdtdConfig
impl PersistentFdtdConfig
Sourcepub fn with_tile_size(self, tx: usize, ty: usize, tz: usize) -> Self
pub fn with_tile_size(self, tx: usize, ty: usize, tz: usize) -> Self
Set tile size.
Sourcepub fn with_cooperative(self, use_coop: bool) -> Self
pub fn with_cooperative(self, use_coop: bool) -> Self
Set cooperative groups usage.
Sourcepub fn with_progress_interval(self, interval: u64) -> Self
pub fn with_progress_interval(self, interval: u64) -> Self
Set progress reporting interval.
Sourcepub fn threads_per_block(&self) -> usize
pub fn threads_per_block(&self) -> usize
Calculate threads per block.
Calculate shared memory size per block (tile + halo).
Trait Implementations§
Source§impl Clone for PersistentFdtdConfig
impl Clone for PersistentFdtdConfig
Source§fn clone(&self) -> PersistentFdtdConfig
fn clone(&self) -> PersistentFdtdConfig
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PersistentFdtdConfig
impl Debug for PersistentFdtdConfig
Auto Trait Implementations§
impl Freeze for PersistentFdtdConfig
impl RefUnwindSafe for PersistentFdtdConfig
impl Send for PersistentFdtdConfig
impl Sync for PersistentFdtdConfig
impl Unpin for PersistentFdtdConfig
impl UnwindSafe for PersistentFdtdConfig
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)