Skip to content

Commit

Permalink
Merge pull request #1286 from fireice-uk/dev
Browse files Browse the repository at this point in the history
Bug fix release 2.4.1
  • Loading branch information
fireice-uk authored Apr 3, 2018
2 parents 6feffe2 + 5ce9892 commit 737383a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
15 changes: 12 additions & 3 deletions xmrstak/backend/amd/amd_gpu/gpu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion xmrstak/version.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 737383a

Please sign in to comment.