GPU Workshop Sample Code
 All Data Structures Namespaces Files Functions Variables Macros Pages
Data Structures | Namespaces | Constant Groups | Functions
mycuda_reduce.h File Reference

Go to the source code of this file.

Data Structures

class  mycuda_reduce::SUM
 
class  mycuda_reduce::MAX
 
class  mycuda_reduce::MIN
 

Namespaces

 mycuda_reduce
 Reduction operators and kernels.
 

Constant Groups

 mycuda_reduce
 Reduction operators and kernels.
 

Functions

template<typename T , typename R >
__device__ void mycuda_reduce::reduce_dev (T *x, int n, R op)
 Reduces a vector x of length n. More...
 
template<typename T , typename R >
__global__ void mycuda_reduce::reduce (T *xsum, T *x, int n, int stride, R op)
 Reduces an M x N matrix. Given a K x N grid of blocks, returns a K x N array of sums. More...