pub struct Device(/* private fields */);Expand description
The Device struct encapsulates a single SYCL device on which kernels can be executed.
The Device struct provides the common reference semantics.
Implementations§
Source§impl Device
impl Device
Sourcepub fn get_devices() -> Vec<Self>
pub fn get_devices() -> Vec<Self>
Returns a Vec containing all the root devices from all SYCL backends
available in the system which have the device type encapsulated by DeviceType.
Sourcepub fn get_platform(&self) -> Platform
pub fn get_platform(&self) -> Platform
Returns the associated SYCL platform.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Device
impl RefUnwindSafe for Device
impl Send for Device
impl Sync for Device
impl Unpin for Device
impl UnwindSafe for Device
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