From 807e141a4d6e888292116c01562b646b5318b452 Mon Sep 17 00:00:00 2001 From: Tanguy Pruvot Date: Thu, 22 Jun 2017 09:35:32 +0200 Subject: [PATCH] equi: sm 2 test --- equi/cuda_equi.cu | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/equi/cuda_equi.cu b/equi/cuda_equi.cu index 7a45ac8..6fc864d 100644 --- a/equi/cuda_equi.cu +++ b/equi/cuda_equi.cu @@ -1843,10 +1843,11 @@ __global__ void digit_last_wdc(equi* 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) {