diff options
author | psychocrypt <psychocryptHPC@gmail.com> | 2018-04-01 21:37:44 +0200 |
---|---|---|
committer | Timothy Pearson <tpearson@raptorengineering.com> | 2018-06-04 21:07:11 +0000 |
commit | 04d515a98a21d25e5a7c3fba13d0cd7207b99b9b (patch) | |
tree | 293b44674f90649f367397347713c92048ad52dc /xmrstak/backend/amd/amd_gpu | |
parent | f3f300d19c37cb6e45795cb6f24a80b8e3a4beeb (diff) | |
download | xmr-stak-04d515a98a21d25e5a7c3fba13d0cd7207b99b9b.zip xmr-stak-04d515a98a21d25e5a7c3fba13d0cd7207b99b9b.tar.gz |
refactor mining algo selection
- add `fork_height` to currency
- refactor algorithm selection
Diffstat (limited to 'xmrstak/backend/amd/amd_gpu')
-rw-r--r-- | xmrstak/backend/amd/amd_gpu/gpu.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xmrstak/backend/amd/amd_gpu/gpu.cpp b/xmrstak/backend/amd/amd_gpu/gpu.cpp index 4a82fab..2973db4 100644 --- a/xmrstak/backend/amd/amd_gpu/gpu.cpp +++ b/xmrstak/backend/amd/amd_gpu/gpu.cpp @@ -940,7 +940,7 @@ size_t XMRSetJob(GpuContext* ctx, uint8_t* input, size_t input_len, uint64_t tar /// @todo only activate if currency is monero int cn_kernel_offset = 0; - if((miner_algo == cryptonight_monero || miner_algo == cryptonight_aeon ) && version >= 7) + if(miner_algo == cryptonight_monero || miner_algo == cryptonight_aeon) { cn_kernel_offset = 6; } @@ -966,7 +966,7 @@ size_t XMRSetJob(GpuContext* ctx, uint8_t* input, size_t input_len, uint64_t tar return(ERR_OCL_API); } - if((miner_algo == cryptonight_monero || miner_algo == cryptonight_aeon ) && version >= 7) + if(miner_algo == cryptonight_monero || miner_algo == cryptonight_aeon ) { // Input if ((ret = clSetKernelArg(ctx->Kernels[1 + cn_kernel_offset], 3, sizeof(cl_mem), &ctx->InputBuffer)) != CL_SUCCESS) @@ -1134,7 +1134,7 @@ size_t XMRRunJob(GpuContext* ctx, cl_uint* HashOutput, xmrstak_algo miner_algo, size_t tmpNonce = ctx->Nonce; /// @todo only activate if currency is monero int cn_kernel_offset = 0; - if((miner_algo == cryptonight_monero || miner_algo == cryptonight_aeon) && version >= 7) + if(miner_algo == cryptonight_monero || miner_algo == cryptonight_aeon) { cn_kernel_offset = 6; } |