pub struct HostRegisterOperation<'c> { /* private fields */ }
Expand description
A host_register
operation. Registers a memref for access from device..
This op maps the provided host buffer into the device address space.
This operation may not be supported in every environment, there is not yet a way to check at runtime whether this feature is supported.
Writes from the host are guaranteed to be visible to device kernels that are launched afterwards. Writes from the device are guaranteed to be visible on the host after synchronizing with the device kernel completion.
Implementations§
source§impl<'c> HostRegisterOperation<'c>
impl<'c> HostRegisterOperation<'c>
Trait Implementations§
source§impl<'c> From<HostRegisterOperation<'c>> for Operation<'c>
impl<'c> From<HostRegisterOperation<'c>> for Operation<'c>
source§fn from(operation: HostRegisterOperation<'c>) -> Self
fn from(operation: HostRegisterOperation<'c>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'c> RefUnwindSafe for HostRegisterOperation<'c>
impl<'c> !Send for HostRegisterOperation<'c>
impl<'c> !Sync for HostRegisterOperation<'c>
impl<'c> Unpin for HostRegisterOperation<'c>
impl<'c> UnwindSafe for HostRegisterOperation<'c>
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