From 8909ba86176257aaf2553f11161a6234ac38ab04 Mon Sep 17 00:00:00 2001 From: Cideg <34962099+Cideg@users.noreply.github.com> Date: Fri, 1 Dec 2023 18:52:06 +0100 Subject: [PATCH 1/4] Update Algorithm.cpp Add NEVO --- src/base/crypto/Algorithm.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/base/crypto/Algorithm.cpp b/src/base/crypto/Algorithm.cpp index f52fca003e..a1dbca375e 100644 --- a/src/base/crypto/Algorithm.cpp +++ b/src/base/crypto/Algorithm.cpp @@ -86,6 +86,7 @@ const char *Algorithm::kRX_ARQ = "rx/arq"; const char *Algorithm::kRX_GRAFT = "rx/graft"; const char *Algorithm::kRX_SFX = "rx/sfx"; const char *Algorithm::kRX_KEVA = "rx/keva"; +const char* Algorithm::kRX_NEVO = "rx/nevo"; #endif #ifdef XMRIG_ALGO_ARGON2 @@ -160,6 +161,7 @@ static const std::map kAlgorithmNames = { ALGO_NAME(RX_GRAFT), ALGO_NAME(RX_SFX), ALGO_NAME(RX_KEVA), + ALGO_NAME(RX_NEVO), # endif # ifdef XMRIG_ALGO_ARGON2 @@ -284,6 +286,8 @@ static const std::map kAlgorithmAlias ALGO_ALIAS(RX_SFX, "randomsfx"), ALGO_ALIAS_AUTO(RX_KEVA), ALGO_ALIAS(RX_KEVA, "randomx/keva"), ALGO_ALIAS(RX_KEVA, "randomkeva"), + ALGO_ALIAS_AUTO(RX_NEVO), ALGO_ALIAS(RX_NEVO, "randomx/nevo"), + ALGO_ALIAS(RX_NEVO, "randomnevo"), # endif # ifdef XMRIG_ALGO_ARGON2 @@ -376,7 +380,7 @@ std::vector xmrig::Algorithm::all(const std::function Date: Fri, 1 Dec 2023 18:53:00 +0100 Subject: [PATCH 2/4] Update Algorithm.h add NEVO --- src/base/crypto/Algorithm.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/base/crypto/Algorithm.h b/src/base/crypto/Algorithm.h index dd2d3c43ef..564d9a9052 100644 --- a/src/base/crypto/Algorithm.h +++ b/src/base/crypto/Algorithm.h @@ -79,6 +79,7 @@ class Algorithm RX_GRAFT = 0x72151267, // "rx/graft" RandomGRAFT (Graft). RX_SFX = 0x72151273, // "rx/sfx" RandomSFX (Safex Cash). RX_KEVA = 0x7214116b, // "rx/keva" RandomKEVA (Keva). + RX_NEVO = 0x7214126e, // "rx/nevo" RandomNEVO (nevocoin). AR2_CHUKWA = 0x61130000, // "argon2/chukwa" Argon2id (Chukwa). AR2_CHUKWA_V2 = 0x61140000, // "argon2/chukwav2" Argon2id (Chukwa v2). AR2_WRKZ = 0x61120000, // "argon2/wrkz" Argon2id (WRKZ) @@ -151,6 +152,7 @@ class Algorithm static const char *kRX_GRAFT; static const char *kRX_SFX; static const char *kRX_KEVA; + static const char* kRX_NEVO; # endif # ifdef XMRIG_ALGO_ARGON2 From 9574cda58388a2abd18f4678245c1e755d10c1d6 Mon Sep 17 00:00:00 2001 From: Cideg <34962099+Cideg@users.noreply.github.com> Date: Fri, 1 Dec 2023 18:54:48 +0100 Subject: [PATCH 3/4] Update randomx.cpp Add NEVO --- src/crypto/randomx/randomx.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/crypto/randomx/randomx.cpp b/src/crypto/randomx/randomx.cpp index 129798d7cd..8df1c680e0 100644 --- a/src/crypto/randomx/randomx.cpp +++ b/src/crypto/randomx/randomx.cpp @@ -133,16 +133,16 @@ RandomX_ConfigurationScala::RandomX_ConfigurationScala() RandomX_ConfigurationBase::RandomX_ConfigurationBase() : ArgonMemory(262144) , CacheAccesses(8) - , DatasetBaseSize(2147483648) - , ArgonIterations(3) + , DatasetBaseSize(1073741824) + , ArgonIterations(2) , ArgonLanes(1) - , ArgonSalt("RandomX\x03") + , ArgonSalt("RandomNEVO") , ScratchpadL1_Size(16384) , ScratchpadL2_Size(262144) - , ScratchpadL3_Size(2097152) + , ScratchpadL3_Size(1048576) , ProgramSize(256) , ProgramIterations(2048) - , ProgramCount(8) + , ProgramCount(4) , RANDOMX_FREQ_IADD_RS(16) , RANDOMX_FREQ_IADD_M(7) , RANDOMX_FREQ_ISUB_R(16) From 9e178f52c65ae3d2dfa0a3394da6bebd9059df18 Mon Sep 17 00:00:00 2001 From: Cideg <34962099+Cideg@users.noreply.github.com> Date: Fri, 1 Dec 2023 18:55:34 +0100 Subject: [PATCH 4/4] Update CMakeLists.txt --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ed39532adb..8387693211 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -26,12 +26,12 @@ option(WITH_NVML "Enable NVML (NVIDIA Management Library) support (on option(WITH_ADL "Enable ADL (AMD Display Library) or sysfs support (only if OpenCL backend enabled)" ON) option(WITH_STRICT_CACHE "Enable strict checks for OpenCL cache" ON) option(WITH_INTERLEAVE_DEBUG_LOG "Enable debug log for threads interleave" OFF) -option(WITH_MO_BENCHMARK "Enable Benchmark module and algo-perf feature (for MoneroOcean)" ON) +option(WITH_MO_BENCHMARK "Enable Benchmark module and algo-perf feature (for MoneroOcean)" OFF) option(WITH_PROFILING "Enable profiling for developers" OFF) option(WITH_SSE4_1 "Enable SSE 4.1 for Blake2" ON) option(WITH_AVX2 "Enable AVX2 for Blake2" ON) option(WITH_VAES "Enable VAES instructions for Cryptonight" ON) -option(WITH_BENCHMARK "Enable builtin RandomX benchmark and stress test" ON) +option(WITH_BENCHMARK "Enable builtin RandomX benchmark and stress test" OFF) option(WITH_SECURE_JIT "Enable secure access to JIT memory" OFF) option(WITH_DMI "Enable DMI/SMBIOS reader" ON)