43
#ifndef OPENCV_CUDA_WARP_REDUCE_HPP__
44
#define OPENCV_CUDA_WARP_REDUCE_HPP__
52
namespace
cv
{
namespace
cuda {
namespace
device
55
__device__ __forceinline__ T warp_reduce(
volatile
T *ptr ,
const
unsigned
int
tid = threadIdx.x)
57
const
unsigned
int
lane = tid & 31;
63
ptr[tid] = partial = partial + ptr[tid + 16];
64
ptr[tid] = partial = partial + ptr[tid + 8];
65
ptr[tid] = partial = partial + ptr[tid + 4];
66
ptr[tid] = partial = partial + ptr[tid + 2];
67
ptr[tid] = partial = partial + ptr[tid + 1];
70
return
ptr[tid - lane];
"black box" representation of the file storage associated with a file on disk.
Definition:
aruco.hpp:75