Skip to content

Commit

Permalink
Updated XLA algo
Browse files Browse the repository at this point in the history
  • Loading branch information
MoneroOcean committed Apr 24, 2021
1 parent 9c8ffff commit de5ce5e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/RandomX/hash.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ __global__ void find_shares(const void* hashes, uint64_t target, uint32_t* share

void hash(nvid_ctx *ctx, uint32_t nonce, uint64_t target, uint32_t *rescount, uint32_t *resnonce, uint32_t batch_size)
{
if (ctx->algorithm.id() == xmrig_cuda::Algorithm::RX_DEFYX) {
if (ctx->algorithm.id() == xmrig_cuda::Algorithm::RX_XLA) {
// sipesh(tempHash, sizeof(tempHash), input, inputSize, input, inputSize, 0, 0);
// CUDA_CHECK_KERNEL(ctx->device_id, sipesh<<<batch_size / 32, 32>>>(ctx->d_rx_hashes, ctx->d_input, ctx->inputlen, nonce));
// k12(input, inputSize, tempHash);
Expand Down
2 changes: 1 addition & 1 deletion src/crypto/common/Algorithm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ static AlgoName const algorithm_names[] = {
{ "rx/arq", Algorithm::RX_ARQ },
{ "rx/sfx", Algorithm::RX_SFX },
{ "rx/keva", Algorithm::RX_KEVA },
{ "defyx", Algorithm::RX_DEFYX },
{ "panthera", Algorithm::RX_XLA },
# endif
{ "cn/0", Algorithm::CN_0 },
{ "cn/1", Algorithm::CN_1 },
Expand Down
8 changes: 4 additions & 4 deletions src/crypto/common/Algorithm.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class Algorithm
AR2_WRKZ, // "argon2/wrkz" Argon2id (WRKZ)
ASTROBWT_DERO, // "astrobwt" AstroBWT (Dero)
KAWPOW_RVN, // "kawpow/rvn" KawPow (RVN)
RX_DEFYX, // "defyx" DefyX (Scala).
RX_XLA, // "panthera" Panthera (Scala2).
MAX
};

Expand Down Expand Up @@ -113,7 +113,7 @@ class Algorithm

case RX_WOW:
case RX_KEVA:
case RX_DEFYX:
case RX_XLA:
return 0x20000;

case RX_ARQ:
Expand Down Expand Up @@ -167,7 +167,7 @@ class Algorithm
return oneMiB;

case RX_ARQ:
case RX_DEFYX:
case RX_XLA:
return oneMiB / 4;

default:
Expand Down Expand Up @@ -247,7 +247,7 @@ class Algorithm
case RX_ARQ:
case RX_SFX:
case RX_KEVA:
case RX_DEFYX:
case RX_XLA:
return RANDOM_X;

case AR2_CHUKWA:
Expand Down
2 changes: 1 addition & 1 deletion src/xmrig-cuda.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ bool rxHash(nvid_ctx *ctx, uint32_t startNonce, uint64_t target, uint32_t *resco
RandomX_Keva::hash(ctx, startNonce, target, rescount, resnonce, ctx->rx_batch_size);
break;

case Algorithm::RX_DEFYX:
case Algorithm::RX_XLA:
throw std::runtime_error(kUnsupportedAlgorithm);
//RandomX_DefyX::hash(ctx, startNonce, target, rescount, resnonce, ctx->rx_batch_size);
break;
Expand Down

0 comments on commit de5ce5e

Please sign in to comment.