Added RandomX option "wrmsr" with command line equivalent --randomx-wrmsr=N.
This commit is contained in:
parent
3b4b230cab
commit
96cfdda9a1
14 changed files with 257 additions and 192 deletions
|
@ -168,6 +168,9 @@ void xmrig::ConfigTransform::transform(rapidjson::Document &doc, int key, const
|
|||
|
||||
case IConfig::RandomX1GbPagesKey: /* --randomx-1gb-pages */
|
||||
return set(doc, kRandomX, "1gb-pages", true);
|
||||
|
||||
case IConfig::RandomXWrmsrKey: /* --randomx-wrmsr */
|
||||
return set(doc, kRandomX, "wrmsr", static_cast<int64_t>(strtol(arg, nullptr, 10)));
|
||||
# endif
|
||||
|
||||
# ifdef XMRIG_FEATURE_OPENCL
|
||||
|
|
|
@ -100,6 +100,7 @@ static const option options[] = {
|
|||
{ "randomx-mode", 1, nullptr, IConfig::RandomXModeKey },
|
||||
{ "randomx-1gb-pages", 0, nullptr, IConfig::RandomX1GbPagesKey },
|
||||
{ "1gb-pages", 0, nullptr, IConfig::RandomX1GbPagesKey },
|
||||
{ "randomx-wrmsr", 1, nullptr, IConfig::RandomXWrmsrKey },
|
||||
# endif
|
||||
# ifdef XMRIG_FEATURE_OPENCL
|
||||
{ "opencl", 0, nullptr, IConfig::OclKey },
|
||||
|
|
|
@ -89,6 +89,7 @@ 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";
|
||||
# endif
|
||||
|
||||
# ifdef XMRIG_FEATURE_HTTP
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue