pub struct CLDevice {
pub device: CLIntDevice,
pub ctx: Context,
pub queue: CommandQueue,
pub unified_mem: bool,
pub event_wait_list: RefCell<Vec<Event>>,
}
Expand description
Internal representation of an OpenCL Device.
Fields§
§device: CLIntDevice
§ctx: Context
§queue: CommandQueue
§unified_mem: bool
§event_wait_list: RefCell<Vec<Event>>
Implementations§
Source§impl CLDevice
impl CLDevice
pub fn from_indices( platform_idx: usize, device_idx: usize, ) -> Result<CLDevice, Error>
pub fn new(device_idx: usize) -> Result<CLDevice, Error>
pub fn fastest() -> Result<CLDevice, Error>
pub fn enqueue_nd_range_kernel( &self, kernel: &Kernel, wd: usize, gws: &[usize; 3], lws: Option<&[usize; 3]>, offset: Option<[usize; 3]>, ) -> Result<(), Error>
pub fn wait_for_events(&self) -> Result<(), Error>
Trait Implementations§
Source§impl TryFrom<CLIntDevice> for CLDevice
impl TryFrom<CLIntDevice> for CLDevice
impl Send for CLDevice
impl Sync for CLDevice
Auto Trait Implementations§
impl !Freeze for CLDevice
impl !RefUnwindSafe for CLDevice
impl Unpin for CLDevice
impl UnwindSafe for CLDevice
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