pub struct SyclDeviceProperties {Show 22 fields
pub device_id: u32,
pub name: String,
pub vendor: String,
pub device_type: SyclDeviceType,
pub driver_version: String,
pub global_memory_size: usize,
pub local_memory_size: usize,
pub max_work_group_size: u32,
pub max_work_item_dimensions: u32,
pub max_work_item_sizes: [u32; 3],
pub compute_units: u32,
pub max_compute_units: u32,
pub sub_group_sizes: Vec<u32>,
pub preferred_sub_group_size: u32,
pub max_constant_buffer_size: usize,
pub has_fp64: bool,
pub has_fp16: bool,
pub has_atomic64: bool,
pub usm_device_allocations: bool,
pub usm_host_allocations: bool,
pub usm_shared_allocations: bool,
pub usm_system_allocations: bool,
}Expand description
SYCL device properties
Fields§
§device_id: u32§name: String§vendor: String§device_type: SyclDeviceType§driver_version: String§global_memory_size: usize§local_memory_size: usize§max_work_group_size: u32§max_work_item_dimensions: u32§max_work_item_sizes: [u32; 3]§compute_units: u32§max_compute_units: u32§sub_group_sizes: Vec<u32>§preferred_sub_group_size: u32§max_constant_buffer_size: usize§has_fp64: bool§has_fp16: bool§has_atomic64: bool§usm_device_allocations: bool§usm_host_allocations: bool§usm_system_allocations: boolTrait Implementations§
Source§impl Clone for SyclDeviceProperties
impl Clone for SyclDeviceProperties
Source§fn clone(&self) -> SyclDeviceProperties
fn clone(&self) -> SyclDeviceProperties
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for SyclDeviceProperties
impl RefUnwindSafe for SyclDeviceProperties
impl Send for SyclDeviceProperties
impl Sync for SyclDeviceProperties
impl Unpin for SyclDeviceProperties
impl UnsafeUnpin for SyclDeviceProperties
impl UnwindSafe for SyclDeviceProperties
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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