pub struct RealRun { /* private fields */ }Expand description
Makes the launches issued on this thread execute for real even inside a
DryRun, for as long as it lives.
Autotune holds one: its launches are the measurement a dry run exists to provoke, not the workload it exists to skip. Held across warm-up and samples alike, since a candidate that was never warmed is a candidate measured on its first, slowest run.
Thread-local, and the thread that matters is the one issuing the launches,
which is not always the one that asked for them: a task handed to
ComputeClient::exclusive runs on
the device thread. The guard has to live inside that task, alongside the
launches it covers, not around the call that submits it.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RealRun
impl RefUnwindSafe for RealRun
impl Send for RealRun
impl Sync for RealRun
impl Unpin for RealRun
impl UnsafeUnpin for RealRun
impl UnwindSafe for RealRun
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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