mirror of
https://github.com/xmrig/xmrig.git
synced 2024-12-22 19:49:36 +00:00
Added --randomx-no-rdmsr command line option.
This commit is contained in:
parent
c7de9e6561
commit
c44ae06d54
5 changed files with 11 additions and 2 deletions
|
@ -66,7 +66,8 @@ CPU backend:
|
|||
--randomx-no-numa disable NUMA support for RandomX
|
||||
--randomx-mode=MODE RandomX mode: auto, fast, light
|
||||
--randomx-1gb-pages use 1GB hugepages for dataset (Linux only)
|
||||
--randomx-wrmsr=N write value (0-15) to Intel MSR register 0x1a4 or do nothing (-1) (Linux only)
|
||||
--randomx-wrmsr=N write custom value (0-15) to Intel MSR register 0x1a4 or disable MSR mod (-1)
|
||||
--randomx-no-rdmsr disable reverting initial MSR values on exit
|
||||
|
||||
API:
|
||||
--api-worker-id=ID custom worker-id for API
|
||||
|
|
|
@ -92,6 +92,7 @@ public:
|
|||
RandomXModeKey = 1029,
|
||||
RandomX1GbPagesKey = 1031,
|
||||
RandomXWrmsrKey = 1032,
|
||||
RandomXRdmsrKey = 1033,
|
||||
CPUMaxThreadsKey = 1026,
|
||||
MemoryPoolKey = 1027,
|
||||
YieldKey = 1030,
|
||||
|
|
|
@ -175,6 +175,9 @@ void xmrig::ConfigTransform::transform(rapidjson::Document &doc, int key, const
|
|||
}
|
||||
|
||||
return set(doc, kRandomX, "wrmsr", static_cast<int64_t>(strtol(arg, nullptr, 10)));
|
||||
|
||||
case IConfig::RandomXRdmsrKey: /* --randomx-no-rdmsr */
|
||||
return set(doc, kRandomX, "rdmsr", false);
|
||||
# endif
|
||||
|
||||
# ifdef XMRIG_FEATURE_OPENCL
|
||||
|
|
|
@ -102,6 +102,9 @@ static const option options[] = {
|
|||
{ "randomx-1gb-pages", 0, nullptr, IConfig::RandomX1GbPagesKey },
|
||||
{ "1gb-pages", 0, nullptr, IConfig::RandomX1GbPagesKey },
|
||||
{ "randomx-wrmsr", 2, nullptr, IConfig::RandomXWrmsrKey },
|
||||
{ "wrmsr", 2, nullptr, IConfig::RandomXWrmsrKey },
|
||||
{ "randomx-no-rdmsr", 0, nullptr, IConfig::RandomXRdmsrKey },
|
||||
{ "no-rdmsr", 0, nullptr, IConfig::RandomXRdmsrKey },
|
||||
# endif
|
||||
# ifdef XMRIG_FEATURE_OPENCL
|
||||
{ "opencl", 0, nullptr, IConfig::OclKey },
|
||||
|
|
|
@ -89,7 +89,8 @@ static inline const std::string &usage()
|
|||
u += " --randomx-no-numa disable NUMA support for RandomX\n";
|
||||
u += " --randomx-mode=MODE RandomX mode: auto, fast, light\n";
|
||||
u += " --randomx-1gb-pages use 1GB hugepages for dataset (Linux only)\n";
|
||||
u += " --randomx-wrmsr=N write value (0-15) to Intel MSR register 0x1a4 or do nothing (-1) (Linux only)\n";
|
||||
u += " --randomx-wrmsr=N write custom value (0-15) to Intel MSR register 0x1a4 or disable MSR mod (-1)\n";
|
||||
u += " --randomx-no-rdmsr disable reverting initial MSR values on exit\n";
|
||||
# endif
|
||||
|
||||
# ifdef XMRIG_FEATURE_HTTP
|
||||
|
|
Loading…
Reference in a new issue