Struct krnl::device::DeviceInfo
source · pub struct DeviceInfo { /* private fields */ }
Expand description
Device info.
Implementations§
source§impl DeviceInfo
impl DeviceInfo
sourcepub fn max_groups(&self) -> u32
pub fn max_groups(&self) -> u32
Max groups per kernel dispatch.
sourcepub fn max_threads(&self) -> u32
pub fn max_threads(&self) -> u32
Max threads per group.
sourcepub fn min_subgroup_threads(&self) -> u32
pub fn min_subgroup_threads(&self) -> u32
Min threads per subgroup.
Power of 2 between 1 and 128.
sourcepub fn max_subgroup_threads(&self) -> u32
pub fn max_subgroup_threads(&self) -> u32
Max threads per subgroup.
Power of 2 between 1 and 128.
sourcepub fn default_threads(&self) -> u32
pub fn default_threads(&self) -> u32
Default threads.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DeviceInfo
impl RefUnwindSafe for DeviceInfo
impl Send for DeviceInfo
impl Sync for DeviceInfo
impl Unpin for DeviceInfo
impl UnwindSafe for DeviceInfo
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more