ViennaCL - The Vienna Computing Library  1.5.2
Public Member Functions | Static Public Member Functions
vector_reduction Class Reference

OpenCL kernel template for reductions resulting in a vector. Example: Computing the row norms of a matrix concurrently. More...

#include <vector_reduction.hpp>

Inheritance diagram for vector_reduction:
profile_base

Public Member Functions

 vector_reduction (unsigned int vectorization, unsigned int m, unsigned int k, unsigned int num_groups)
 The user constructor.
std::string csv_representation () const
 csv representation of an operation
unsigned int m () const
unsigned int k () const
unsigned int num_groups () const
void configure_range_enqueue_arguments (vcl_size_t kernel_id, statements_type const &statements, viennacl::ocl::kernel &kernel, unsigned int &n_arg) const
 Configures the range and enqueues the arguments associated with the profile.
void kernel_arguments (statements_type const &, std::string &arguments_string) const

Static Public Member Functions

static std::string csv_format ()

Detailed Description

OpenCL kernel template for reductions resulting in a vector. Example: Computing the row norms of a matrix concurrently.


Constructor & Destructor Documentation

vector_reduction ( unsigned int  vectorization,
unsigned int  m,
unsigned int  k,
unsigned int  num_groups 
) [inline]

The user constructor.


Member Function Documentation

void configure_range_enqueue_arguments ( vcl_size_t  kernel_id,
statements_type const &  statements,
viennacl::ocl::kernel k,
unsigned int &  n_arg 
) const [inline, virtual]

Configures the range and enqueues the arguments associated with the profile.

Implements profile_base.

static std::string csv_format ( ) [inline, static]
std::string csv_representation ( ) const [inline, virtual]

csv representation of an operation

Useful when writing to a file

Implements profile_base.

unsigned int k ( ) const [inline]
void kernel_arguments ( statements_type const &  ,
std::string &  arguments_string 
) const [inline, virtual]

Implements profile_base.

unsigned int m ( ) const [inline]
unsigned int num_groups ( ) const [inline]

The documentation for this class was generated from the following file: