add compute capability check

pull/430/head
marina.kolpakova 12 years ago
parent f52ce6529b
commit 7c98735c0d
  1. 3
      modules/gpu/src/cuda/icf-sc.cu

@ -505,7 +505,10 @@ __device void CascadeInvoker<Policy>::detect(Detection* objects, const uint ndet
#if __CUDA_ARCH__ >= 120 #if __CUDA_ARCH__ >= 120
if(__any((confidence + impact <= stages[(st + threadIdx.x)]))) st += 2048; if(__any((confidence + impact <= stages[(st + threadIdx.x)]))) st += 2048;
#endif #endif
#if __CUDA_ARCH__ >= 300
impact = __shfl(impact, 31); impact = __shfl(impact, 31);
#endif
confidence += impact; confidence += impact;
} }

Loading…
Cancel
Save