Skip to content

Commit 5d71cbb

Browse files
authored
Merge pull request #70 from SChernykh/dev
RandomX: removed rx/loki
2 parents e787835 + ec87497 commit 5d71cbb

File tree

7 files changed

+0
-170
lines changed

7 files changed

+0
-170
lines changed

cmake/CUDA.cmake

-2
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,6 @@ list(APPEND CUDA_SOURCES
165165
src/RandomX/hash.hpp
166166
src/RandomX/keva/configuration.h
167167
src/RandomX/keva/randomx_keva.cu
168-
src/RandomX/loki/configuration.h
169-
src/RandomX/loki/randomx_loki.cu
170168
src/RandomX/monero/configuration.h
171169
src/RandomX/monero/randomx_monero.cu
172170
src/RandomX/randomx_cuda.hpp

src/RandomX/loki/configuration.h

-125
This file was deleted.

src/RandomX/loki/randomx_loki.cu

-33
This file was deleted.

src/crypto/common/Algorithm.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ struct AlgoName
5252
static AlgoName const algorithm_names[] = {
5353
{ "rx/0", Algorithm::RX_0 },
5454
{ "rx/wow", Algorithm::RX_WOW },
55-
{ "rx/loki", Algorithm::RX_LOKI },
5655
{ "rx/arq", Algorithm::RX_ARQ },
5756
{ "rx/sfx", Algorithm::RX_SFX },
5857
{ "rx/keva", Algorithm::RX_KEVA },

src/crypto/common/Algorithm.h

-4
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ class Algorithm
6060
CN_CCX, // "cn/ccx" Conceal (CCX)
6161
RX_0, // "rx/0" RandomX (reference configuration).
6262
RX_WOW, // "rx/wow" RandomWOW (Wownero).
63-
RX_LOKI, // "rx/loki" RandomXL (Loki).
6463
RX_ARQ, // "rx/arq" RandomARQ (Arqma).
6564
RX_SFX, // "rx/sfx" RandomSFX (Safex Cash).
6665
RX_KEVA, // "rx/keva" RandomKV (Keva).
@@ -106,7 +105,6 @@ class Algorithm
106105
{
107106
switch (m_id) {
108107
case RX_0:
109-
case RX_LOKI:
110108
case RX_SFX:
111109
return 0x40000;
112110

@@ -154,7 +152,6 @@ class Algorithm
154152
if (f == RANDOM_X) {
155153
switch (m_id) {
156154
case RX_0:
157-
case RX_LOKI:
158155
case RX_SFX:
159156
return oneMiB * 2;
160157

@@ -232,7 +229,6 @@ class Algorithm
232229

233230
case RX_0:
234231
case RX_WOW:
235-
case RX_LOKI:
236232
case RX_ARQ:
237233
case RX_SFX:
238234
case RX_KEVA:

src/cryptonight.h

-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,6 @@ void cuda_extra_cpu_set_data(nvid_ctx *ctx, const void *data, size_t len);
135135
void randomx_prepare(nvid_ctx *ctx, const void *dataset, size_t dataset_size, uint32_t batch_size);
136136

137137
namespace RandomX_Arqma { void hash(nvid_ctx *ctx, uint32_t nonce, uint64_t target, uint32_t *rescount, uint32_t *resnonce, uint32_t batch_size); }
138-
namespace RandomX_Loki { void hash(nvid_ctx *ctx, uint32_t nonce, uint64_t target, uint32_t *rescount, uint32_t *resnonce, uint32_t batch_size); }
139138
namespace RandomX_Monero { void hash(nvid_ctx *ctx, uint32_t nonce, uint64_t target, uint32_t *rescount, uint32_t *resnonce, uint32_t batch_size); }
140139
namespace RandomX_Wownero { void hash(nvid_ctx *ctx, uint32_t nonce, uint64_t target, uint32_t *rescount, uint32_t *resnonce, uint32_t batch_size); }
141140
namespace RandomX_Keva { void hash(nvid_ctx *ctx, uint32_t nonce, uint64_t target, uint32_t *rescount, uint32_t *resnonce, uint32_t batch_size); }

src/xmrig-cuda.cpp

-4
Original file line numberDiff line numberDiff line change
@@ -181,10 +181,6 @@ bool rxHash(nvid_ctx *ctx, uint32_t startNonce, uint64_t target, uint32_t *resco
181181
RandomX_Wownero::hash(ctx, startNonce, target, rescount, resnonce, ctx->rx_batch_size);
182182
break;
183183

184-
case xmrig::Algorithm::RX_LOKI:
185-
RandomX_Loki::hash(ctx, startNonce, target, rescount, resnonce, ctx->rx_batch_size);
186-
break;
187-
188184
case xmrig::Algorithm::RX_ARQ:
189185
RandomX_Arqma::hash(ctx, startNonce, target, rescount, resnonce, ctx->rx_batch_size);
190186
break;

0 commit comments

Comments
 (0)