LAMA
|
This class provides routines to converse DIA storage data to CSR storage data and vice versa. More...
#include <OpenMPDIAUtils.hpp>
Public Member Functions | |
template<typename DIAValueType > | |
void | getCSRSizes (IndexType csrSizes[], bool diagonalFlag, const IndexType numRows, const IndexType numColumns, const IndexType numDiagonals, const IndexType diaOffsets[], const DIAValueType diaValues[], const DIAValueType eps) |
Static Public Member Functions | |
template<typename ValueType > | |
static void | getCSRSizes (IndexType csrSizes[], bool diagonalFlag, const IndexType numRows, const IndexType numColumns, const IndexType numDiagonals, const IndexType diaOffsets[], const ValueType diaValues[], const ValueType eps) |
OpenMP implementation for DIAUtilsInterface::Counting::getCSRSizes. | |
template<typename DIAValueType , typename CSRValueType > | |
static void | getCSRValues (IndexType csrJA[], CSRValueType csrValues[], const IndexType csrIA[], const bool diagonalFlag, const IndexType numRows, const IndexType numColumns, const IndexType numDiagonals, const IndexType diaOffsets[], const DIAValueType diaValues[], const DIAValueType eps) |
OpenMP implementation for DIAUtilsInterface::Conversions::getCSRValues. | |
template<typename ValueType > | |
static void | normalGEMV (ValueType result[], const ValueType alpha, const ValueType x[], const ValueType beta, const ValueType y[], const IndexType numRows, const IndexType numColumns, const IndexType numDiagonals, const IndexType diaOffsets[], const ValueType diaValues[], SyncToken *syncToken) |
Implementation for DIAUtilsInterface::Mult::normalGEMV. | |
template<typename ValueType > | |
static void | jacobi (ValueType solution[], const IndexType numColumns, const IndexType numDiagonals, const IndexType diaOffset[], const ValueType diaValues[], const ValueType oldSolution[], const ValueType rhs[], const ValueType omega, const IndexType numRows, SyncToken *syncToken) |
Implementation for DIAUtilsInterface::Solver::jacobi. | |
static void | setInterface (struct DIAUtilsInterface &DIAUtils) |
Routine that registers all routines of this class at the LAMA interface. | |
Private Member Functions | |
LAMA_LOG_DECL_STATIC_LOGGER (logger) | |
Static Private Member Functions | |
template<typename ValueType > | |
static void | normalGEMV (ValueType result[], const ValueType alpha, const ValueType x[], const ValueType beta, const ValueType y[], const IndexType numRows, const IndexType numColumns, const IndexType numDiagonals, const IndexType diaOffsets[], const ValueType diaValues[]) |
This class provides routines to converse DIA storage data to CSR storage data and vice versa.
static void lama::OpenMPDIAUtils::getCSRSizes | ( | IndexType | csrSizes[], |
bool | diagonalFlag, | ||
const IndexType | numRows, | ||
const IndexType | numColumns, | ||
const IndexType | numDiagonals, | ||
const IndexType | diaOffsets[], | ||
const ValueType | diaValues[], | ||
const ValueType | eps | ||
) | [static] |
OpenMP implementation for DIAUtilsInterface::Counting::getCSRSizes.
Referenced by lama::DIAStorage< T >::buildCSR(), and setInterface().
void lama::OpenMPDIAUtils::getCSRSizes | ( | IndexType | csrSizes[], |
bool | diagonalFlag, | ||
const IndexType | numRows, | ||
const IndexType | numColumns, | ||
const IndexType | numDiagonals, | ||
const IndexType | diaOffsets[], | ||
const DIAValueType | diaValues[], | ||
const DIAValueType | eps | ||
) |
References lama::abs().
void lama::OpenMPDIAUtils::getCSRValues | ( | IndexType | csrJA[], |
CSRValueType | csrValues[], | ||
const IndexType | csrIA[], | ||
const bool | diagonalFlag, | ||
const IndexType | numRows, | ||
const IndexType | numColumns, | ||
const IndexType | numDiagonals, | ||
const IndexType | diaOffsets[], | ||
const DIAValueType | diaValues[], | ||
const DIAValueType | eps | ||
) | [static] |
OpenMP implementation for DIAUtilsInterface::Conversions::getCSRValues.
References lama::abs(), LAMA_ASSERT_DEBUG, LAMA_ASSERT_EQUAL_DEBUG, and LAMA_ASSERT_EQUAL_ERROR.
Referenced by lama::DIAStorage< T >::buildCSR(), and setInterface().
void lama::OpenMPDIAUtils::jacobi | ( | ValueType | solution[], |
const IndexType | numColumns, | ||
const IndexType | numDiagonals, | ||
const IndexType | diaOffset[], | ||
const ValueType | diaValues[], | ||
const ValueType | oldSolution[], | ||
const ValueType | rhs[], | ||
const ValueType | omega, | ||
const IndexType | numRows, | ||
SyncToken * | syncToken | ||
) | [static] |
Implementation for DIAUtilsInterface::Solver::jacobi.
References LAMA_ASSERT_EQUAL_DEBUG.
Referenced by lama::DIAStorage< T >::jacobiIterate(), and setInterface().
lama::OpenMPDIAUtils::LAMA_LOG_DECL_STATIC_LOGGER | ( | logger | ) | [private] |
void lama::OpenMPDIAUtils::normalGEMV | ( | ValueType | result[], |
const ValueType | alpha, | ||
const ValueType | x[], | ||
const ValueType | beta, | ||
const ValueType | y[], | ||
const IndexType | numRows, | ||
const IndexType | numColumns, | ||
const IndexType | numDiagonals, | ||
const IndexType | diaOffsets[], | ||
const ValueType | diaValues[], | ||
SyncToken * | syncToken | ||
) | [static] |
Implementation for DIAUtilsInterface::Mult::normalGEMV.
References LAMA_THROWEXCEPTION.
Referenced by setInterface().
void lama::OpenMPDIAUtils::normalGEMV | ( | ValueType | result[], |
const ValueType | alpha, | ||
const ValueType | x[], | ||
const ValueType | beta, | ||
const ValueType | y[], | ||
const IndexType | numRows, | ||
const IndexType | numColumns, | ||
const IndexType | numDiagonals, | ||
const IndexType | diaOffsets[], | ||
const ValueType | diaValues[] | ||
) | [static, private] |
void lama::OpenMPDIAUtils::setInterface | ( | struct DIAUtilsInterface & | DIAUtils | ) | [static] |
Routine that registers all routines of this class at the LAMA interface.
References getCSRSizes(), getCSRValues(), jacobi(), LAMA_INTERFACE_REGISTER_T, LAMA_INTERFACE_REGISTER_TT, and normalGEMV().
Referenced by lama::OpenMPInterface::OpenMPInterface().