Skip to content
Snippets Groups Projects
Commit e0fb17e9 authored by psychocrypt's avatar psychocrypt
Browse files

AMD OpenCL: fix sumokoin

- fix that version argument was not passed to extended kernel parameters
parent 6880be70
No related branches found
No related tags found
No related merge requests found
...@@ -926,7 +926,10 @@ size_t XMRSetJob(GpuContext* ctx, uint8_t* input, size_t input_len, uint64_t tar ...@@ -926,7 +926,10 @@ size_t XMRSetJob(GpuContext* ctx, uint8_t* input, size_t input_len, uint64_t tar
return(ERR_OCL_API); 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 // version
if ((ret = clSetKernelArg(ctx->Kernels[0], 4, sizeof(cl_uint), &version)) != CL_SUCCESS) 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 ...@@ -975,7 +978,10 @@ size_t XMRSetJob(GpuContext* ctx, uint8_t* input, size_t input_len, uint64_t tar
return ERR_OCL_API; 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 // version
if ((ret = clSetKernelArg(ctx->Kernels[1], 3, sizeof(cl_uint), &version)) != CL_SUCCESS) 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 ...@@ -1035,7 +1041,10 @@ size_t XMRSetJob(GpuContext* ctx, uint8_t* input, size_t input_len, uint64_t tar
return(ERR_OCL_API); 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 // version
if ((ret = clSetKernelArg(ctx->Kernels[2], 7, sizeof(cl_uint), &version)) != CL_SUCCESS) if ((ret = clSetKernelArg(ctx->Kernels[2], 7, sizeof(cl_uint), &version)) != CL_SUCCESS)
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
#endif #endif
#define XMR_STAK_NAME "xmr-stak" #define XMR_STAK_NAME "xmr-stak"
#define XMR_STAK_VERSION "2.4.0" #define XMR_STAK_VERSION "2.4.1"
#if defined(_WIN32) #if defined(_WIN32)
#define OS_TYPE "win" #define OS_TYPE "win"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment