pub struct WorkgroupHwParams {
pub max_threads: u32,
pub max_dim: [u32; 3],
pub warp_size: u32,
pub max_shared_memory: u32,
pub registers_per_thread: u32,
pub max_warps_per_cu: u32,
}Expand description
Hardware parameters for a specific NPU target.
Fields§
§max_threads: u32Maximum total threads per workgroup.
max_dim: [u32; 3]Maximum per-axis workgroup dimensions [x, y, z].
warp_size: u32Warp/wavefront size (threads execute in lockstep).
Maximum shared memory per workgroup in bytes.
registers_per_thread: u32Registers available per thread.
max_warps_per_cu: u32Maximum warps that can be resident on a single compute unit.
Implementations§
Source§impl WorkgroupHwParams
impl WorkgroupHwParams
Sourcepub fn for_target(target: &str) -> Self
pub fn for_target(target: &str) -> Self
Return hardware parameters for a named target.
Trait Implementations§
Source§impl Clone for WorkgroupHwParams
impl Clone for WorkgroupHwParams
Source§fn clone(&self) -> WorkgroupHwParams
fn clone(&self) -> WorkgroupHwParams
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 WorkgroupHwParams
impl RefUnwindSafe for WorkgroupHwParams
impl Send for WorkgroupHwParams
impl Sync for WorkgroupHwParams
impl Unpin for WorkgroupHwParams
impl UnsafeUnpin for WorkgroupHwParams
impl UnwindSafe for WorkgroupHwParams
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