提交 7ff04a65 编写于 作者: V Vladislav Vinogradov

fixed build for old compute capabilities

上级 fa5113f3
......@@ -474,7 +474,7 @@ namespace cv { namespace gpu { namespace device
}
}
}
} while (__syncthreads_or(changed));
} while (Emulation::sycthOr(changed));
}
__global__ void flatten(const DevMem2D edges, DevMem2Di comps)
......
......@@ -53,7 +53,7 @@ namespace cv { namespace gpu { namespace device
static __device__ __forceinline__ int sycthOr(int pred)
{
#if defined (__CUDA_ARCH__) && (__CUDA_ARCH__ < 120)
#if defined (__CUDA_ARCH__) && (__CUDA_ARCH__ < 200)
// just campilation stab
return false;
#else
......@@ -119,7 +119,7 @@ namespace cv { namespace gpu { namespace device
static __device__ __forceinline__ T atomicMin(T* address, T val)
{
#if defined (__CUDA_ARCH__) && (__CUDA_ARCH__ < 120)
T count = min(*address, val);
T count = ::min(*address, val);
do
{
*address = count;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册