Enum blaze_rs::core::device::AffinityDomain
source · #[repr(u64)]#[non_exhaustive]pub enum AffinityDomain {
Numa,
L4Cache,
L3Cache,
L2Cache,
L1Cache,
NextPartitionable,
}cl1_2 only.Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Numa
Split the device into sub-devices comprised of compute units that share a NUMA node.
L4Cache
Split the device into sub-devices comprised of compute units that share a level 4 data cache.
L3Cache
Split the device into sub-devices comprised of compute units that share a level 3 data cache.
L2Cache
Split the device into sub-devices comprised of compute units that share a level 2 data cache.
L1Cache
Split the device into sub-devices comprised of compute units that share a level 1 data cache.
NextPartitionable
Split the device along the next partitionable affinity domain. The implementation shall find the first level along which the device or sub-device may be further subdivided in the order NUMA, L4, L3, L2, L1, and partition the device into sub-devices comprised of compute units that share memory subsystems at this level.
Trait Implementations§
source§impl Clone for AffinityDomain
impl Clone for AffinityDomain
source§fn clone(&self) -> AffinityDomain
fn clone(&self) -> AffinityDomain
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for AffinityDomain
impl Debug for AffinityDomain
source§impl Hash for AffinityDomain
impl Hash for AffinityDomain
source§impl PartialEq<AffinityDomain> for AffinityDomain
impl PartialEq<AffinityDomain> for AffinityDomain
source§fn eq(&self, other: &AffinityDomain) -> bool
fn eq(&self, other: &AffinityDomain) -> bool
self and other values to be equal, and is used
by ==.