Struct tpch_bench::CmdOpt
source · [−]pub(crate) struct CmdOpt {
pub(crate) query: u32,
pub(crate) scale_factor: u32,
pub(crate) selection_variant: ArgSelectionVariant,
pub(crate) repeat: u32,
pub(crate) csv: Option<PathBuf>,
pub(crate) rel_mem_type: ArgMemType,
pub(crate) rel_location: u16,
pub(crate) page_type: ArgPageType,
pub(crate) execution_method: ArgExecutionMethod,
pub(crate) device_id: u16,
pub(crate) threads: usize,
pub(crate) cpu_affinity: Option<PathBuf>,
}
Fields
query: u32
TPC-H query to run
scale_factor: u32
TPC-H scale factor
selection_variant: ArgSelectionVariant
Selection variant
repeat: u32
Number of times to repeat the benchmark
csv: Option<PathBuf>
Output filename for measurement CSV file
rel_mem_type: ArgMemType
Memory type with which to allocate data
rel_location: u16
Allocate memory for inner relation on CPU or GPU (See numactl -H and CUDA device list)
page_type: ArgPageType
Page type with with to allocate memory
execution_method: ArgExecutionMethod
Execute on device(s) with in-place or streaming-transfer method
device_id: u16
Execute on GPU (See CUDA device list)
threads: usize
cpu_affinity: Option<PathBuf>
Path to CPU affinity map file for CPU workers
Implementations
sourceimpl CmdOpt
impl CmdOpt
pub(crate) fn fill_data_point(
&self,
data_point: &DataPoint
) -> Result<DataPoint>
Trait Implementations
sourceimpl StructOpt for CmdOpt
impl StructOpt for CmdOpt
sourcefn from_clap(matches: &ArgMatches<'_>) -> Self
fn from_clap(matches: &ArgMatches<'_>) -> Self
Creates the struct from clap::ArgMatches
. It cannot fail
with a parameter generated by clap
by construction. Read more
fn from_args() -> Self
fn from_args() -> Self
Gets the struct from the command line arguments. Print the error message and quit the program in case of failure. Read more
fn from_iter<I>(iter: I) -> Self where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
fn from_iter<I>(iter: I) -> Self where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
Gets the struct from any iterator such as a Vec
of your making.
Print the error message and quit the program in case of failure. Read more
fn from_iter_safe<I>(iter: I) -> Result<Self, Error> where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
fn from_iter_safe<I>(iter: I) -> Result<Self, Error> where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
Gets the struct from any iterator such as a Vec
of your making. Read more
Auto Trait Implementations
impl RefUnwindSafe for CmdOpt
impl Send for CmdOpt
impl Sync for CmdOpt
impl Unpin for CmdOpt
impl UnwindSafe for CmdOpt
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more