cuckoo miner update (#145)

* update cuckoo-miner tag
* not mining by default
* update to mean parameter
* update to mining param
* final update to compatible mean miner
This commit is contained in:
Yeastplume 2017-09-29 17:58:43 +01:00 committed by Ignotus Peverell
parent 8c051da960
commit 07bf22c881
3 changed files with 16 additions and 7 deletions

View file

@ -54,7 +54,7 @@ port = 13414
#flag whether mining is enabled #flag whether mining is enabled
enable_mining = true enable_mining = false
#Whether to use cuckoo-miner, and related parameters #Whether to use cuckoo-miner, and related parameters
@ -62,9 +62,7 @@ use_cuckoo_miner = true
#Whether to use async mode for cuckoo miner, if the plugin supports it. #Whether to use async mode for cuckoo miner, if the plugin supports it.
#this allows for many searches to be run in parallel, e.g. if the system #this allows for many searches to be run in parallel, e.g. if the system
#has multiple GPUs. This creates overhead, especially on faster test miners, #has multiple GPUs, or if you want to mine using multiple plugins
#so in a post-release world this should only be used if you really want
#to run cards in parallel
cuckoo_miner_async_mode = false cuckoo_miner_async_mode = false
@ -108,10 +106,18 @@ burn_reward = true
# single GPU and single CPU plugin in parallel # single GPU and single CPU plugin in parallel
#The fastest cpu algorithm, but consumes the most memory #The fastest cpu algorithm, but consumes the most memory
#Also requires instructions that aren't available on
#older processors. In this case, use mean_compat_cpu
#instead
#[[mining.cuckoo_miner_plugin_config]]
#type_filter = "mean_cpu"
#parameter_list = {NUM_THREADS=4, NUM_TRIMS=68}
#Same as above, but for older processors. Will be slightly
#slower.
[[mining.cuckoo_miner_plugin_config]] [[mining.cuckoo_miner_plugin_config]]
type_filter = "mean_cpu" type_filter = "mean_compat_cpu"
parameter_list = {NUM_THREADS=4, NUM_TRIMS=64} parameter_list = {NUM_THREADS=4, NUM_TRIMS=68}
#note lean_cpu currently has a bug which prevents it from #note lean_cpu currently has a bug which prevents it from
#working with threads > 1 #working with threads > 1

View file

@ -231,6 +231,9 @@ impl Miner {
next_stat_output = time::get_time().sec + stat_output_interval; next_stat_output = time::get_time().sec + stat_output_interval;
} }
} }
//avoid busy wait
let sleep_dur = std::time::Duration::from_millis(100);
thread::sleep(sleep_dur);
} }
if sol == None { if sol == None {
debug!( debug!(

View file

@ -18,7 +18,7 @@ grin_core = { path = "../core" }
[dependencies.cuckoo_miner] [dependencies.cuckoo_miner]
git = "https://github.com/mimblewimble/cuckoo-miner" git = "https://github.com/mimblewimble/cuckoo-miner"
tag="grin_integration_9" tag="grin_integration_12"
#path = "../../cuckoo-miner" #path = "../../cuckoo-miner"
#uncomment this feature to turn off plugin builds #uncomment this feature to turn off plugin builds
#features=["no-plugin-build"] #features=["no-plugin-build"]