Skip to content

Commit

Permalink
intensity on lyra2rev2 can now be adjusted with "-i" in command line
Browse files Browse the repository at this point in the history
  • Loading branch information
djm34 committed Aug 9, 2015
1 parent 8364fbd commit 631571d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lyra2/lyra2REv2.cu
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,10 @@ extern "C" int scanhash_lyra2v2(int thr_id, uint32_t *pdata,
unsigned long *hashes_done)
{
const uint32_t first_nonce = pdata[19];
unsigned int intensity = (device_sm[device_map[thr_id]] > 500) ? 256 * 256 * 4 : 256 * 256 * 4;//256 * 256 * 25 : 256 * 256 * 19;
uint32_t throughput = (device_sm[device_map[thr_id]] == 500) ? 256 * 256 * 4 : 256 * 256 * 8; // device_intensity(device_map[thr_id], __func__, intensity); // 18=256*256*4;

unsigned int intensity = 256*256*8;
intensity = (device_sm[device_map[thr_id]] == 500) ? 256 * 256 * 4 : intensity;
uint32_t throughput = device_intensity(device_map[thr_id], __func__, intensity);

if (opt_benchmark)
((uint32_t*)ptarget)[7] = 0x00ff;

Expand Down

0 comments on commit 631571d

Please sign in to comment.