Skip to content
This repository was archived by the owner on Apr 24, 2022. It is now read-only.

Commit 643e780

Browse files
committedNov 26, 2018
Revert commit a8bb4f8
1 parent 971ce1f commit 643e780

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed
 

‎libethash-cuda/dagger_shuffled.cuh

+7-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,13 @@ __device__ __forceinline__ bool compute_hash(
3434
shuffle[j].x = __shfl_sync(0xFFFFFFFF,state[j].x, i+p, THREADS_PER_HASH);
3535
shuffle[j].y = __shfl_sync(0xFFFFFFFF,state[j].y, i+p, THREADS_PER_HASH);
3636
}
37-
mix[p] = vectorize2(shuffle[mix_idx*2], shuffle[mix_idx*2 + 1]);
37+
switch (mix_idx)
38+
{
39+
case 0: mix[p] = vectorize2(shuffle[0], shuffle[1]); break;
40+
case 1: mix[p] = vectorize2(shuffle[2], shuffle[3]); break;
41+
case 2: mix[p] = vectorize2(shuffle[4], shuffle[5]); break;
42+
case 3: mix[p] = vectorize2(shuffle[6], shuffle[7]); break;
43+
}
3844
init0[p] = __shfl_sync(0xFFFFFFFF,shuffle[0].x, 0, THREADS_PER_HASH);
3945
}
4046

0 commit comments

Comments
 (0)
This repository has been archived.