diff options
author | fireice-uk <fireice-uk@users.noreply.github.com> | 2018-03-29 20:50:57 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-29 20:50:57 +0100 |
commit | ef87d28da53ce40d79e053668dbddab82ef997b0 (patch) | |
tree | 33a06f0238cb643f4618cf9e8024a07649695d5b /xmrstak/backend/amd/amd_gpu | |
parent | 89d319a8920ee91f0b8c05000bfc7d155b90bcb0 (diff) | |
parent | 0c48570ac662662fc9e808c0efe042f843fd6b23 (diff) | |
download | xmr-stak-ef87d28da53ce40d79e053668dbddab82ef997b0.zip xmr-stak-ef87d28da53ce40d79e053668dbddab82ef997b0.tar.gz |
Merge pull request #1236 from psychocrypt/topic-powAeonv7
POW AEON v7
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 79befb7..4a82fab 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 && version >= 7) + if((miner_algo == cryptonight_monero || miner_algo == cryptonight_aeon ) && version >= 7) { 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 && version >= 7) + if((miner_algo == cryptonight_monero || miner_algo == cryptonight_aeon ) && version >= 7) { // 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 && version >= 7) + if((miner_algo == cryptonight_monero || miner_algo == cryptonight_aeon) && version >= 7) { cn_kernel_offset = 6; } |