Struct grin_miner_plugin::SolverParams
source · #[repr(C)]pub struct SolverParams {Show 17 fields
pub nthreads: uint32_t,
pub ntrims: uint32_t,
pub showcycle: bool,
pub allrounds: bool,
pub mutate_nonce: bool,
pub cpuload: bool,
pub device: u32,
pub blocks: u32,
pub tpb: u32,
pub expand: u32,
pub genablocks: u32,
pub genatpb: u32,
pub genbtpb: u32,
pub trimtpb: u32,
pub tailtpb: u32,
pub recoverblocks: u32,
pub recovertpb: u32,
}
Expand description
Common parameters for a solver
Fields§
§nthreads: uint32_t
threads
ntrims: uint32_t
trims
showcycle: bool
Whether to show cycle (should be true to get solutions)
allrounds: bool
allrounds
mutate_nonce: bool
whether to apply the nonce to the header, or leave as is, letting caller mutate nonce
cpuload: bool
reduce cpuload
device: u32
Common Cuda params
blocks: u32
Lean cuda params
tpb: u32
§expand: u32
Mean cuda params
genablocks: u32
§genatpb: u32
§genbtpb: u32
§trimtpb: u32
§tailtpb: u32
§recoverblocks: u32
§recovertpb: u32
Trait Implementations§
source§impl Clone for SolverParams
impl Clone for SolverParams
source§fn clone(&self) -> SolverParams
fn clone(&self) -> SolverParams
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SolverParams
impl Debug for SolverParams
source§impl Default for SolverParams
impl Default for SolverParams
source§fn default() -> SolverParams
fn default() -> SolverParams
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for SolverParams
impl<'de> Deserialize<'de> for SolverParams
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more