mirror of
https://github.com/xmrig/xmrig.git
synced 2025-03-12 09:37:35 +00:00
#2492 Add missing --huge-pages-jit command line option.
This commit is contained in:
parent
2eb2e90631
commit
d24581c963
4 changed files with 9 additions and 0 deletions
|
@ -86,6 +86,7 @@ public:
|
|||
DnsTtlKey = 1054,
|
||||
SpendSecretKey = 1055,
|
||||
DaemonZMQPortKey = 1056,
|
||||
HugePagesJitKey = 1057,
|
||||
|
||||
// xmrig common
|
||||
CPUPriorityKey = 1021,
|
||||
|
|
|
@ -195,6 +195,9 @@ void xmrig::ConfigTransform::transform(rapidjson::Document &doc, int key, const
|
|||
|
||||
case IConfig::RandomXCacheQoSKey: /* --cache-qos */
|
||||
return set(doc, RxConfig::kField, RxConfig::kCacheQoS, true);
|
||||
|
||||
case IConfig::HugePagesJitKey: /* --huge-pages-jit */
|
||||
return set(doc, CpuConfig::kField, CpuConfig::kHugePagesJit, true);
|
||||
# endif
|
||||
|
||||
# ifdef XMRIG_FEATURE_OPENCL
|
||||
|
|
|
@ -69,6 +69,8 @@ static const option options[] = {
|
|||
{ "no-huge-pages", 0, nullptr, IConfig::HugePagesKey },
|
||||
{ "no-hugepages", 0, nullptr, IConfig::HugePagesKey },
|
||||
{ "hugepage-size", 1, nullptr, IConfig::HugePageSizeKey },
|
||||
{ "huge-pages-jit", 0, nullptr, IConfig::HugePagesJitKey },
|
||||
{ "hugepages-jit", 0, nullptr, IConfig::HugePagesJitKey },
|
||||
{ "pass", 1, nullptr, IConfig::PasswordKey },
|
||||
{ "print-time", 1, nullptr, IConfig::PrintTimeKey },
|
||||
{ "retries", 1, nullptr, IConfig::RetriesKey },
|
||||
|
|
|
@ -88,6 +88,9 @@ static inline const std::string &usage()
|
|||
u += " --no-huge-pages disable huge pages support\n";
|
||||
# ifdef XMRIG_OS_LINUX
|
||||
u += " --hugepage-size=N custom hugepage size in kB\n";
|
||||
# endif
|
||||
# ifdef XMRIG_ALGO_RANDOMX
|
||||
u += " --huge-pages-jit enable huge pages support for RandomX JIT code\n";
|
||||
# endif
|
||||
u += " --asm=ASM ASM optimizations, possible values: auto, none, intel, ryzen, bulldozer\n";
|
||||
|
||||
|
|
Loading…
Reference in a new issue