NVBIO
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Namespaces | Functions
scan.h File Reference

Define CUDA based scan primitives. More...

#include <nvbio/basic/types.h>
#include <nvbio/basic/numbers.h>

Go to the source code of this file.

Classes

struct  nvbio::cuda::scan_dispatch< T, Op, COUNT >
 
struct  nvbio::cuda::scan_dispatch< T, Op, 32 >
 
struct  nvbio::cuda::scan_dispatch< T, Op, 16 >
 
struct  nvbio::cuda::scan_dispatch< T, Op, 8 >
 
struct  nvbio::cuda::scan_dispatch< T, Op, 4 >
 
struct  nvbio::cuda::scan_dispatch< T, Op, 2 >
 
struct  nvbio::cuda::all_dispatch< COUNT >
 
struct  nvbio::cuda::all_dispatch< 32 >
 
struct  nvbio::cuda::all_dispatch< 2 >
 
struct  nvbio::cuda::all_dispatch< 4 >
 
struct  nvbio::cuda::all_dispatch< 8 >
 
struct  nvbio::cuda::all_dispatch< 16 >
 
struct  nvbio::cuda::all_dispatch< 64 >
 
struct  nvbio::cuda::all_dispatch< 128 >
 
struct  nvbio::cuda::all_dispatch< 256 >
 
struct  nvbio::cuda::any_dispatch< COUNT >
 
struct  nvbio::cuda::any_dispatch< 32 >
 
struct  nvbio::cuda::any_dispatch< 2 >
 
struct  nvbio::cuda::any_dispatch< 4 >
 
struct  nvbio::cuda::any_dispatch< 8 >
 
struct  nvbio::cuda::any_dispatch< 16 >
 
struct  nvbio::cuda::any_dispatch< 64 >
 
struct  nvbio::cuda::any_dispatch< 128 >
 
struct  nvbio::cuda::any_dispatch< 256 >
 

Namespaces

 nvbio
 Define a vector_view POD type and plain_view() for std::vector.
 
 nvbio::cuda
 

Functions

template<typename T >
__device__ __forceinline__ T nvbio::cuda::bit_scan (bool p)
 
template<typename T >
__device__ __forceinline__ T nvbio::cuda::scan_warp (T val, const int32 tidx, volatile T *red)
 
template<typename T >
__device__ __forceinline__ T nvbio::cuda::scan_warp_total (volatile T *red)
 
template<uint32 COUNT, typename T , typename Op >
__device__ __forceinline__ T nvbio::cuda::scan (T val, const Op op, const T init, volatile T *red)
 
template<uint32 COUNT, typename T >
__device__ __forceinline__ T nvbio::cuda::scan (T val, volatile T *red)
 
template<uint32 COUNT, typename T >
__device__ __forceinline__ T nvbio::cuda::scan_total (volatile T *red)
 
__device__ __forceinline__ uint32 nvbio::cuda::alloc (uint32 n, uint32 *pool, const int32 warp_tid, volatile uint32 *warp_red, volatile uint32 *warp_broadcast)
 
template<uint32 N>
__device__ __forceinline__ uint32 nvbio::cuda::alloc (bool pred, uint32 *pool, const int32 warp_tid, volatile uint32 *warp_broadcast)
 
template<uint32 COUNT>
__device__ __forceinline__ bool nvbio::cuda::all (const bool p, volatile uint8 *sm=NULL)
 
template<uint32 COUNT>
__device__ __forceinline__ bool nvbio::cuda::any (const bool p, volatile uint8 *sm=NULL)
 

Detailed Description

Define CUDA based scan primitives.

Definition in file scan.h.