Enum blaze_rs::core::device::PartitionProperty
source · #[non_exhaustive]pub enum PartitionProperty {
Equally(u32),
Counts(Vec<NonZeroU32>),
AffinityDomain(AffinityDomain),
}Available on crate feature
cl1_2 only.Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Equally(u32)
Split the aggregate device into as many smaller aggregate devices as can be created, each containing n compute units. The value n is passed as the value accompanying this property. If n does not divide evenly into max_compute_units, then the remaining compute units are not used.
Counts(Vec<NonZeroU32>)
This property is followed by a list of compute unit. For each non-zero count m in the list, a sub-device is created with m compute units in it. The number of non-zero count entries in the list may not exceed partition_max_sub_devices. The total number of compute units specified may not exceed max_compute_units.
AffinityDomain(AffinityDomain)
Split the device into smaller aggregate devices containing one or more compute units that all share part of a cache hierarchy.
Implementations§
source§impl PartitionProperty
impl PartitionProperty
pub fn from_slice(bits: &[cl_device_partition_property]) -> Option<Self>
pub fn to_bits(&self) -> Box<[cl_device_partition_property]>
Trait Implementations§
source§impl Clone for PartitionProperty
impl Clone for PartitionProperty
source§fn clone(&self) -> PartitionProperty
fn clone(&self) -> PartitionProperty
Returns a copy 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 PartitionProperty
impl Debug for PartitionProperty
source§impl Hash for PartitionProperty
impl Hash for PartitionProperty
source§impl PartialEq<PartitionProperty> for PartitionProperty
impl PartialEq<PartitionProperty> for PartitionProperty
source§fn eq(&self, other: &PartitionProperty) -> bool
fn eq(&self, other: &PartitionProperty) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for PartitionProperty
impl StructuralEq for PartitionProperty
impl StructuralPartialEq for PartitionProperty
Auto Trait Implementations§
impl RefUnwindSafe for PartitionProperty
impl Send for PartitionProperty
impl Sync for PartitionProperty
impl Unpin for PartitionProperty
impl UnwindSafe for PartitionProperty
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