pub struct SyclContext {
pub handle: *mut c_void,
pub device_id: u32,
pub device_properties: SyclDeviceProperties,
pub created_at: Instant,
pub queues: Vec<SyclQueue>,
pub usm_allocations: HashMap<*mut c_void, UsmAllocation>,
}Expand description
SYCL context for managing device state
Fields§
§handle: *mut c_voidContext handle (simulated)
device_id: u32Device ID
device_properties: SyclDevicePropertiesAssociated device
created_at: InstantCreation time
queues: Vec<SyclQueue>Active queues
usm_allocations: HashMap<*mut c_void, UsmAllocation>USM allocations
Auto Trait Implementations§
impl Freeze for SyclContext
impl RefUnwindSafe for SyclContext
impl !Send for SyclContext
impl !Sync for SyclContext
impl Unpin for SyclContext
impl UnsafeUnpin for SyclContext
impl UnwindSafe for SyclContext
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> 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