37 #ifndef PCL_GPU_OCTREE_COPYGE_HPP
38 #define PCL_GPU_OCTREE_COPYGE_HPP
40 #include <pcl/gpu/utils/device/warp.hpp>
48 __device__
void CopyKernel(
const T* in, T *out,
int length)
50 int STRIDE = gridDim.x * blockDim.x;
51 for (
int idx = (blockIdx.x * blockDim.x) + threadIdx.x; idx < length; idx += STRIDE)
60 int length = end - beg;
63 int STRIDE = blockDim.x;
64 for (
int idx = threadIdx.x; idx < length; idx += STRIDE, pos += STRIDE)
66 out[idx] = pos + threadIdx.x;
73 int length = end - beg;
76 int STRIDE = blockDim.x;
77 for (
int idx = threadIdx.x; idx < length; idx += STRIDE, pos += STRIDE)
79 out[idx] = ((pos + threadIdx.x) << 8) + level;