Skip to content

Commit

Permalink
equi: sm 2 test
Browse files Browse the repository at this point in the history
  • Loading branch information
tpruvot committed Jun 22, 2017
1 parent 9dedec5 commit 807e141
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion equi/cuda_equi.cu
Original file line number Diff line number Diff line change
Expand Up @@ -1843,10 +1843,11 @@ __global__ void digit_last_wdc(equi<RB, SM>* eq)
soli = atomicAdd(&eq->edata.srealcont.nsols, 1);
}
#if __CUDA_ARCH__ >= 300
// useful ?
// all threads get the value from lane 0
soli = __shfl(soli, 0);
#else
__syncthreads();
soli = eq->edata.srealcont.nsols;
#endif
if (soli < MAXREALSOLS)
{
Expand Down

0 comments on commit 807e141

Please sign in to comment.