Skip to content

Commit

Permalink
Merge pull request #252 from fancyIX/feature/#247
Browse files Browse the repository at this point in the history
Fix very slow vega heavyhash
  • Loading branch information
fancyIX committed Dec 1, 2021
2 parents 66be5db + a0c6292 commit be17b5e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions kernel/heavyhash.cl
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ __kernel void search(__global uint *header, __global uint* gmatrix, __global uin

for (int i = 0; i < 64; ++i) {
uint sum = 0;
#ifdef __gfx900__
#pragma nounroll
#endif
for (int k = 0; k < 4; k++) {
ulong2 buf0 = matrix[i * 16 + k * 4 + 0];
ulong2 buf1 = matrix[i * 16 + k * 4 + 1];
Expand Down

0 comments on commit be17b5e

Please sign in to comment.