fixed build for old compute capabilities

This commit is contained in:
Vladislav Vinogradov 2012-08-10 10:03:35 +04:00
parent fa5113f303
commit 7ff04a65f1
2 changed files with 3 additions and 3 deletions

View File

@ -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)

View File

@ -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;