From 7c98735c0d6adc35fd36de923ae73b0b607a6d49 Mon Sep 17 00:00:00 2001 From: "marina.kolpakova" Date: Sun, 3 Feb 2013 22:44:13 +0400 Subject: [PATCH] add compute capability check --- modules/gpu/src/cuda/icf-sc.cu | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/gpu/src/cuda/icf-sc.cu b/modules/gpu/src/cuda/icf-sc.cu index d64c7a8..f6eb744 100644 --- a/modules/gpu/src/cuda/icf-sc.cu +++ b/modules/gpu/src/cuda/icf-sc.cu @@ -505,7 +505,10 @@ __device void CascadeInvoker::detect(Detection* objects, const uint ndet #if __CUDA_ARCH__ >= 120 if(__any((confidence + impact <= stages[(st + threadIdx.x)]))) st += 2048; #endif + #if __CUDA_ARCH__ >= 300 impact = __shfl(impact, 31); + #endif + confidence += impact; } -- 2.7.4