pub struct MappedLine(/* private fields */);Available on crate feature
hip only.Expand description
A page-locked, host-mapped, coherent CompletionLine that HIP streams store into.
Implementations§
Source§impl MappedLine
impl MappedLine
Sourcepub fn new() -> Result<Self, LineError>
pub fn new() -> Result<Self, LineError>
A fresh line reading all 0, mapped for the calling thread’s current device. The line holds a reference to that device’s primary context until after its page is freed.
§Errors
The runtime’s status, LineError::Unavailable when the runtime or an entry point is
missing, LineError::NoDomain when no device is current.
Sourcepub fn line(&self) -> &CompletionLine
pub fn line(&self) -> &CompletionLine
The line, as the host reads it.
Sourcepub fn device_address(&self) -> u64
pub fn device_address(&self) -> u64
The device address of word 0; word i is at + 8 * i (for a stream-side wait on it).
Sourcepub fn enqueue_store(
&self,
stream: HipStream,
slot: Slot,
value: u64,
) -> Result<(), LineError>
pub fn enqueue_store( &self, stream: HipStream, slot: Slot, value: u64, ) -> Result<(), LineError>
Queue a store of value into word slot on stream, behind the work queued there.
§Errors
The runtime’s status, or LineError::ForeignStream for a stream of another device.
Auto Trait Implementations§
impl !Freeze for MappedLine
impl !RefUnwindSafe for MappedLine
impl !Sync for MappedLine
impl Forget for MappedLine
impl Move for MappedLine
impl Send for MappedLine
impl Unpin for MappedLine
impl UnsafeUnpin for MappedLine
impl UnwindSafe for MappedLine
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