ViennaCL - The Vienna Computing Library  1.5.1
Public Member Functions | Static Public Member Functions
vector_saxpy Class Reference

OpenCL kernel generation class for vector expressions of AXPY type, i.e. x = alpha * y + beta * z, where the number of summands can in principle be arbitrarily large. More...

#include <saxpy.hpp>

Inheritance diagram for vector_saxpy:
profile_base

Public Member Functions

std::string csv_representation () const
 csv representation of an operation
 vector_saxpy (unsigned int v, vcl_size_t gs, vcl_size_t ng, unsigned int d)
void configure_range_enqueue_arguments (vcl_size_t kernel_id, statements_type const &statements, viennacl::ocl::kernel &k, 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 generation class for vector expressions of AXPY type, i.e. x = alpha * y + beta * z, where the number of summands can in principle be arbitrarily large.


Constructor & Destructor Documentation

vector_saxpy ( unsigned int  v,
vcl_size_t  gs,
vcl_size_t  ng,
unsigned int  d 
) [inline]

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.

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

Implements profile_base.


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