summaryrefslogtreecommitdiffstats
path: root/xmrstak
diff options
context:
space:
mode:
authorpsychocrypt <psychocryptHPC@gmail.com>2018-04-03 07:57:10 +0200
committerTimothy Pearson <tpearson@raptorengineering.com>2018-06-04 21:07:11 +0000
commit0744ae433e211fbd6b6251f0f424ed2faf68e23f (patch)
tree50e7debc01b83440e92672b4d3230e637114399d /xmrstak
parentffdc16d4e5de18daa208823d19ee08d1ad789346 (diff)
downloadxmr-stak-0744ae433e211fbd6b6251f0f424ed2faf68e23f.zip
xmr-stak-0744ae433e211fbd6b6251f0f424ed2faf68e23f.tar.gz
AMD OpenCL: fix sumokoin
- fix that version argument was not passed to extended kernel parameters
Diffstat (limited to 'xmrstak')
-rw-r--r--xmrstak/backend/amd/amd_gpu/gpu.cpp15
-rw-r--r--xmrstak/version.cpp2
2 files changed, 13 insertions, 4 deletions
diff --git a/xmrstak/backend/amd/amd_gpu/gpu.cpp b/xmrstak/backend/amd/amd_gpu/gpu.cpp
index 2973db4..006a7ed 100644
--- a/xmrstak/backend/amd/amd_gpu/gpu.cpp
+++ b/xmrstak/backend/amd/amd_gpu/gpu.cpp
@@ -926,7 +926,10 @@ size_t XMRSetJob(GpuContext* ctx, uint8_t* input, size_t input_len, uint64_t tar
return(ERR_OCL_API);
}
- if(miner_algo == cryptonight_heavy)
+ /* ATTENTION: if we miner cryptonight_heavy the kernel needs an additional parameter version.
+ * Do NOT use the variable `miner_algo` because this variable is changed dynamicly
+ */
+ if(::jconf::inst()->GetMiningAlgo() == cryptonight_heavy)
{
// version
if ((ret = clSetKernelArg(ctx->Kernels[0], 4, sizeof(cl_uint), &version)) != CL_SUCCESS)
@@ -975,7 +978,10 @@ size_t XMRSetJob(GpuContext* ctx, uint8_t* input, size_t input_len, uint64_t tar
return ERR_OCL_API;
}
}
- else if(miner_algo == cryptonight_heavy)
+ /* ATTENTION: if we miner cryptonight_heavy the kernel needs an additional parameter version.
+ * Do NOT use the variable `miner_algo` because this variable is changed dynamicly
+ */
+ else if(::jconf::inst()->GetMiningAlgo() == cryptonight_heavy)
{
// version
if ((ret = clSetKernelArg(ctx->Kernels[1], 3, sizeof(cl_uint), &version)) != CL_SUCCESS)
@@ -1035,7 +1041,10 @@ size_t XMRSetJob(GpuContext* ctx, uint8_t* input, size_t input_len, uint64_t tar
return(ERR_OCL_API);
}
- if(miner_algo == cryptonight_heavy)
+ /* ATTENTION: if we miner cryptonight_heavy the kernel needs an additional parameter version.
+ * Do NOT use the variable `miner_algo` because this variable is changed dynamicly
+ */
+ if(::jconf::inst()->GetMiningAlgo() == cryptonight_heavy)
{
// version
if ((ret = clSetKernelArg(ctx->Kernels[2], 7, sizeof(cl_uint), &version)) != CL_SUCCESS)
diff --git a/xmrstak/version.cpp b/xmrstak/version.cpp
index d3764e4..04948d1 100644
--- a/xmrstak/version.cpp
+++ b/xmrstak/version.cpp
@@ -18,7 +18,7 @@
#endif
#define XMR_STAK_NAME "xmr-stak"
-#define XMR_STAK_VERSION "2.4.0"
+#define XMR_STAK_VERSION "2.4.1"
#if defined(_WIN32)
#define OS_TYPE "win"
OpenPOWER on IntegriCloud