![]() |
PARALUTION
1.0.0
PARALUTION
|
#include <base_stencil.hpp>
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... | |
paralution::GPUAcceleratorStencil< ValueType >::GPUAcceleratorStencil | ( | ) |
|
virtual |
|
pure virtualinherited |
Apply the stencil to vector, out = this*in;.
Implemented in paralution::HostStencilLaplace2D< ValueType >.
|
pure virtualinherited |
Apply and add the stencil to vector, out = out + scalar*this*in;.
Implemented in paralution::HostStencilLaplace2D< ValueType >.
|
pure virtualinherited |
Copy (accelerator stencil) from host stencil.
|
pure virtualinherited |
Copy (accelerator stencil) to host stencil.
|
inherited |
Return the number of columns in the stencil.
|
inherited |
Return the dimension of the stencil.
|
pure virtualinherited |
Return the nnz per row.
Implemented in paralution::HostStencilLaplace2D< ValueType >.
|
inherited |
Return the number of rows in the stencil.
|
pure virtualinherited |
Return the stencil format id (see stencil_formats.hpp)
Implemented in paralution::HostStencilLaplace2D< ValueType >.
|
pure virtualinherited |
Shows simple info about the object.
Implemented in paralution::HostStencilLaplace2D< ValueType >.
|
virtualinherited |
Copy the backend descriptor information.
|
virtualinherited |
|
protectedinherited |
Backend descriptor (local copy)
|
protectedinherited |
Number of rows.
|
protectedinherited |
Number of columns.