#[non_exhaustive]pub struct SweepRunOptions {
pub concurrency: Concurrency,
pub memory_budget: Option<u64>,
pub gpu_memory_budget: Option<u64>,
pub retry_failed: bool,
pub series_budget: usize,
pub spec_source: SpecSource,
pub provenance: Provenance,
pub wake: Option<WakeFn>,
}Expand description
Settings of a sweep that a SweepRun runs. None of them change its results.
Self::new returns the defaults, and a caller sets the other fields by assignment. A spec file’s [execution]
settings go in before the caller’s settings, in the order
SweepOptions::apply_execution sets them.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.concurrency: ConcurrencyNumber of runs stepped at once on native. A browser steps one run at a time regardless of this setting.
memory_budget: Option<u64>Host memory budget in bytes for all live runs together, None for no limit.
gpu_memory_budget: Option<u64>GPU memory budget in bytes for all live runs of a GPU model together, None for the device’s largest buffer.
retry_failed: boolWhether a resume reruns the runs that ended on a fault.
series_budget: usizeMaximum total size in bytes of the series that the SweepEvent::RunFinished events carry.
Once a run’s series would pass it, that run and every later one arrive without their series. The files keep every series.
spec_source: SpecSourceSpec file the sweep was read from, for the manifest.
provenance: ProvenanceBuild of the host, for the manifest.
wake: Option<WakeFn>Called after each event, so that an idle host wakes up to collect it. It must not block.
Implementations§
Source§impl SweepRunOptions
impl SweepRunOptions
Sourcepub fn new(provenance: Provenance) -> Self
pub fn new(provenance: Provenance) -> Self
Returns the options at their defaults, recording provenance in every manifest the sweep writes.
Trait Implementations§
Source§impl Clone for SweepRunOptions
impl Clone for SweepRunOptions
Auto Trait Implementations§
impl !RefUnwindSafe for SweepRunOptions
impl !UnwindSafe for SweepRunOptions
impl Freeze for SweepRunOptions
impl Send for SweepRunOptions
impl Sync for SweepRunOptions
impl Unpin for SweepRunOptions
impl UnsafeUnpin for SweepRunOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> ⓘ
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> ⓘ
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