Skip to content

Commit

Permalink
AMD: optimize unroll for rx5700
Browse files Browse the repository at this point in the history
solve fireice-uk#2509

use unroll 8 for RX5700
  • Loading branch information
psychocrypt committed Aug 24, 2019
1 parent bb189ad commit ef8dc98
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion xmrstak/backend/amd/autoAdjust.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,9 @@ class autoAdjust
// @todo check again after all optimizations
maxThreads = ctx.computeUnits * 6 * 8;
ctx.stridedIndex = 0;
numUnroll = 1;
// do not change unroll for AMD RX5700
if(ctx.name.compare("gfx1000") != 0)
numUnroll = 1;
}

// keep 128MiB memory free (value is randomly chosen) from the max available memory
Expand Down

0 comments on commit ef8dc98

Please sign in to comment.