Fixed compute errors.

This commit is contained in:
XMRig 2019-09-02 11:58:56 +07:00
parent eef5d91606
commit fc4f43ac7f
2 changed files with 295 additions and 297 deletions

View file

@ -742,8 +742,7 @@ __kernel void Skein(__global ulong *states, __global uint *BranchBuf, __global u
const uint idx = get_global_id(0) - get_global_offset(0);
// do not use early return here
if(idx < Threads)
{
if(idx < BranchBuf[Threads]) {
states += 25 * BranchBuf[idx];
// skein
@ -791,6 +790,7 @@ __kernel void Skein(__global ulong *states, __global uint *BranchBuf, __global u
}
}
}
mem_fence(CLK_GLOBAL_MEM_FENCE);
}
@ -825,8 +825,7 @@ __kernel void JH(__global ulong *states, __global uint *BranchBuf, __global uint
const uint idx = get_global_id(0) - get_global_offset(0);
// do not use early return here
if(idx < Threads)
{
if (idx < BranchBuf[Threads]) {
states += 25 * BranchBuf[idx];
sph_u64 h0h = 0xEBD3202C41A398EBUL, h0l = 0xC145B29C7BBECD92UL, h1h = 0xFAC7D4609151931CUL, h1l = 0x038A507ED6820026UL, h2h = 0x45B92677269E23A4UL, h2l = 0x77941AD4481AFBE0UL, h3h = 0x7A176B0226ABB5CDUL, h3l = 0xA82FFF0F4224F056UL;
@ -874,8 +873,7 @@ __kernel void Blake(__global ulong *states, __global uint *BranchBuf, __global u
const uint idx = get_global_id(0) - get_global_offset(0);
// do not use early return here
if (idx < Threads)
{
if (idx < BranchBuf[Threads]) {
states += 25 * BranchBuf[idx];
unsigned int m[16];
@ -976,8 +974,7 @@ __kernel void Groestl(__global ulong *states, __global uint *BranchBuf, __global
const uint idx = get_global_id(0) - get_global_offset(0);
// do not use early return here
if (idx < Threads)
{
if (idx < BranchBuf[Threads]) {
states += 25 * BranchBuf[idx];
ulong State[8] = { 0UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0x0001000000000000UL };