PARALUTION  1.0.0
PARALUTION
paralution::GPUAcceleratorStencil< ValueType > Class Template Referenceabstract

#include <base_stencil.hpp>

Inheritance diagram for paralution::GPUAcceleratorStencil< ValueType >:
paralution::AcceleratorStencil< ValueType > paralution::BaseStencil< ValueType >

Public Member Functions

 GPUAcceleratorStencil ()
 
virtual ~GPUAcceleratorStencil ()
 
virtual void CopyFromHost (const HostStencil< ValueType > &src)=0
 Copy (accelerator stencil) from host stencil. More...
 
virtual void CopyToHost (HostStencil< ValueType > *dst) const =0
 Copy (accelerator stencil) to host stencil. More...
 
int get_nrow (void) const
 Return the number of rows in the stencil. More...
 
int get_ncol (void) const
 Return the number of columns in the stencil. More...
 
int get_ndim (void) const
 Return the dimension of the stencil. More...
 
virtual int get_nnz (void) const =0
 Return the nnz per row. More...
 
virtual void info (void) const =0
 Shows simple info about the object. More...
 
virtual unsigned int get_stencil_id (void) const =0
 Return the stencil format id (see stencil_formats.hpp) More...
 
virtual void set_backend (const Paralution_Backend_Descriptor local_backend)
 Copy the backend descriptor information. More...
 
virtual void SetGrid (const int size)
 
virtual void Apply (const BaseVector< ValueType > &in, BaseVector< ValueType > *out) const =0
 Apply the stencil to vector, out = this*in;. More...
 
virtual void ApplyAdd (const BaseVector< ValueType > &in, const ValueType scalar, BaseVector< ValueType > *out) const =0
 Apply and add the stencil to vector, out = out + scalar*this*in;. More...
 

Protected Attributes

int ndim_
 Number of rows. More...
 
int size_
 Number of columns. More...
 
Paralution_Backend_Descriptor local_backend_
 Backend descriptor (local copy) More...
 

Constructor & Destructor Documentation

template<typename ValueType >
paralution::GPUAcceleratorStencil< ValueType >::GPUAcceleratorStencil ( )
template<typename ValueType >
paralution::GPUAcceleratorStencil< ValueType >::~GPUAcceleratorStencil ( )
virtual

Member Function Documentation

template<typename ValueType>
virtual void paralution::BaseStencil< ValueType >::Apply ( const BaseVector< ValueType > &  in,
BaseVector< ValueType > *  out 
) const
pure virtualinherited

Apply the stencil to vector, out = this*in;.

Implemented in paralution::HostStencilLaplace2D< ValueType >.

template<typename ValueType>
virtual void paralution::BaseStencil< ValueType >::ApplyAdd ( const BaseVector< ValueType > &  in,
const ValueType  scalar,
BaseVector< ValueType > *  out 
) const
pure virtualinherited

Apply and add the stencil to vector, out = out + scalar*this*in;.

Implemented in paralution::HostStencilLaplace2D< ValueType >.

template<typename ValueType>
virtual void paralution::AcceleratorStencil< ValueType >::CopyFromHost ( const HostStencil< ValueType > &  src)
pure virtualinherited

Copy (accelerator stencil) from host stencil.

template<typename ValueType>
virtual void paralution::AcceleratorStencil< ValueType >::CopyToHost ( HostStencil< ValueType > *  dst) const
pure virtualinherited

Copy (accelerator stencil) to host stencil.

template<typename ValueType >
int paralution::BaseStencil< ValueType >::get_ncol ( void  ) const
inherited

Return the number of columns in the stencil.

template<typename ValueType >
int paralution::BaseStencil< ValueType >::get_ndim ( void  ) const
inherited

Return the dimension of the stencil.

template<typename ValueType>
virtual int paralution::BaseStencil< ValueType >::get_nnz ( void  ) const
pure virtualinherited

Return the nnz per row.

Implemented in paralution::HostStencilLaplace2D< ValueType >.

template<typename ValueType >
int paralution::BaseStencil< ValueType >::get_nrow ( void  ) const
inherited

Return the number of rows in the stencil.

template<typename ValueType>
virtual unsigned int paralution::BaseStencil< ValueType >::get_stencil_id ( void  ) const
pure virtualinherited

Return the stencil format id (see stencil_formats.hpp)

Implemented in paralution::HostStencilLaplace2D< ValueType >.

template<typename ValueType>
virtual void paralution::BaseStencil< ValueType >::info ( void  ) const
pure virtualinherited

Shows simple info about the object.

Implemented in paralution::HostStencilLaplace2D< ValueType >.

template<typename ValueType >
void paralution::BaseStencil< ValueType >::set_backend ( const Paralution_Backend_Descriptor  local_backend)
virtualinherited

Copy the backend descriptor information.

template<typename ValueType >
void paralution::BaseStencil< ValueType >::SetGrid ( const int  size)
virtualinherited

Field Documentation

template<typename ValueType>
Paralution_Backend_Descriptor paralution::BaseStencil< ValueType >::local_backend_
protectedinherited

Backend descriptor (local copy)

template<typename ValueType>
int paralution::BaseStencil< ValueType >::ndim_
protectedinherited

Number of rows.

template<typename ValueType>
int paralution::BaseStencil< ValueType >::size_
protectedinherited

Number of columns.


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