Commit 7c98735c authored by marina.kolpakova's avatar marina.kolpakova

add compute capability check

parent f52ce652
...@@ -505,7 +505,10 @@ __device void CascadeInvoker<Policy>::detect(Detection* objects, const uint ndet ...@@ -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;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment