mirror of
https://github.com/jwinterm/xmr-stak.git
synced 2026-10-21 06:18:34 +02:00
Merge pull request #82 from psychocrypt/topic-allowPrefetchDisable
disable prefetch by default
This commit is contained in:
+3
-4
@@ -11,8 +11,7 @@
|
||||
* consume much less power (as less cores are working), but will max out at around 80-85% of
|
||||
* the maximum performance.
|
||||
*
|
||||
* no_prefetch - This mode meant for large pages only. It will generate an error if running on slow memory
|
||||
* Some sytems can gain up to extra 5% here, but sometimes it will have no difference or make
|
||||
* no_prefetch - Some sytems can gain up to extra 5% here, but sometimes it will have no difference or make
|
||||
* things slower.
|
||||
*
|
||||
* affine_to_cpu - This can be either false (no affinity), or the CPU core number. Note that on hyperthreading
|
||||
@@ -22,8 +21,8 @@
|
||||
*
|
||||
*/
|
||||
"cpu_threads_conf" : [
|
||||
{ "low_power_mode" : false, "no_prefetch" : false, "affine_to_cpu" : 0 },
|
||||
{ "low_power_mode" : false, "no_prefetch" : false, "affine_to_cpu" : 1 },
|
||||
{ "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 0 },
|
||||
{ "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 1 },
|
||||
],
|
||||
|
||||
/*
|
||||
|
||||
@@ -139,9 +139,9 @@ bool jconf::GetThreadConfig(size_t id, thd_cfg &cfg)
|
||||
cfg.bDoubleMode = mode->GetBool();
|
||||
cfg.bNoPrefetch = no_prefetch->GetBool();
|
||||
|
||||
if(!bHaveAes && (cfg.bDoubleMode || cfg.bNoPrefetch))
|
||||
if(!bHaveAes && cfg.bDoubleMode)
|
||||
{
|
||||
printer::inst()->print_msg(L0, "Invalid thread confg - low_power_mode and no_prefetch are unsupported on CPUs without AES-NI.");
|
||||
printer::inst()->print_msg(L0, "Invalid thread confg - low_power_mode are unsupported on CPUs without AES-NI.");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user