pub(crate) struct CmdBandwidth {
Show 14 fields pub(crate) size: usize, pub(crate) device_type: ArgDeviceType, pub(crate) device_id: u16, pub(crate) mem_type: ArgMemType, pub(crate) mem_location: u16, pub(crate) page_type: ArgPageType, pub(crate) threads: Vec<usize>, pub(crate) cpu_affinity: Option<PathBuf>, pub(crate) grid_sizes: Vec<u32>, pub(crate) block_sizes: Vec<u32>, pub(crate) misalign_warp: Option<bool>, pub(crate) loop_length: u32, pub(crate) target_cycles: u64, pub(crate) repeat: u32,
}

Fields

size: usize

Size of buffer (MB)

device_type: ArgDeviceType

Type of the device.

device_id: u16

Execute on CPU or GPU (See numactl -H and CUDA device list)

mem_type: ArgMemType

Memory type with which to allocate data.

mem_location: u16

Allocate memory on CPU or GPU (See numactl -H and CUDA device list)

page_type: ArgPageType

Page type with with to allocate memory

threads: Vec<usize>

Number of CPU threads

cpu_affinity: Option<PathBuf>

Path to CPU affinity map file for CPU workers

grid_sizes: Vec<u32>

The CUDA grid sizes to evaluate

block_sizes: Vec<u32>

The CUDA block sizes to evaluate

misalign_warp: Option<bool>

Don’t align warp-cooperative accesses to the tile size

By default, warp-cooperative accesses are aligned to the size of the tile, e.g., a value between 2 and 32. --misalign-warp deliberately misaligns such accesses by one array item.

loop_length: u32

Number of memory accesses in between cycle measurements

target_cycles: u64

Minimum number of clock cycles to measure before quitting (scaled by 10^6)

repeat: u32

Number of times to repeat benchmark

Trait Implementations

Returns clap::App corresponding to the struct.

Builds the struct from clap::ArgMatches. It’s guaranteed to succeed if matches originates from an App generated by [StructOpt::clap] called on the same type, otherwise it must panic. Read more

Builds the struct from the command line arguments (std::env::args_os). Calls clap::Error::exit on failure, printing the error message and aborting the program. Read more

Builds the struct from the command line arguments (std::env::args_os). Unlike [StructOpt::from_args], returns clap::Error on failure instead of aborting the program, so calling .exit is up to you. Read more

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

Gets the struct from any iterator such as a Vec of your making. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

The error type produced by a failed conversion.

Convert the given value into an approximately equivalent representation.

The error type produced by a failed conversion.

Convert the subject into an approximately equivalent representation.

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Approximate the subject with the default scheme.

Approximate the subject with a specific scheme.

Approximate the subject to a given type with the default scheme.

Approximate the subject to a given type with a specific scheme.

Convert the subject to a given type.

Attempt to convert the subject to a given type.

Attempt a value conversion of the subject to a given type.

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The error type produced by a failed conversion.

Convert the given value into the subject type.

The type returned in the event of a conversion error.

Performs the conversion.

The error type produced by a failed conversion.

Convert the subject into the destination type.

The type returned in the event of a conversion error.

Performs the conversion.

The error type produced by a failed conversion.

Convert the given value into an exactly equivalent representation.

The error type produced by a failed conversion.

Convert the subject into an exactly equivalent representation.