Skip to content

Commit

Permalink
lyra2v2: fix tpb condition for SM 5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
tpruvot committed Nov 6, 2015
1 parent 41543b5 commit 94d86ca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lyra2/cuda_lyra2v2.cu
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,8 @@ void lyra2v2_cpu_hash_32(int thr_id, uint32_t threads, uint32_t startNounce, uin
int dev_id = device_map[thr_id % MAX_GPUS];
uint32_t tpb = TPB52;

if (cuda_arch[dev_id] == 500) tpb = TPB50;
if (cuda_arch[dev_id] > 500) tpb = TPB52;
else if (cuda_arch[dev_id] == 500) tpb = TPB50;
else if (cuda_arch[dev_id] >= 350) tpb = TPB35;
else if (cuda_arch[dev_id] >= 300) tpb = TPB30;
else if (cuda_arch[dev_id] >= 200) tpb = TPB20;
Expand Down

0 comments on commit 94d86ca

Please sign in to comment.