equi: sm 2 test

This commit is contained in:
Tanguy Pruvot 2017-06-22 09:35:32 +02:00
parent 9dedec5ecd
commit 807e141a4d

View File

@ -1843,10 +1843,11 @@ __global__ void digit_last_wdc(equi<RB, SM>* eq)
soli = atomicAdd(&eq->edata.srealcont.nsols, 1); soli = atomicAdd(&eq->edata.srealcont.nsols, 1);
} }
#if __CUDA_ARCH__ >= 300 #if __CUDA_ARCH__ >= 300
// useful ? // all threads get the value from lane 0
soli = __shfl(soli, 0); soli = __shfl(soli, 0);
#else #else
__syncthreads(); __syncthreads();
soli = eq->edata.srealcont.nsols;
#endif #endif
if (soli < MAXREALSOLS) if (soli < MAXREALSOLS)
{ {