ViennaCL - The Vienna Computing Library  1.7.0
Free open-source GPU-accelerated linear algebra and solver library.
viennacl::linalg::opencl::amg Namespace Reference

Functions

template<typename NumericT >
void amg_influence_trivial (compressed_matrix< NumericT > const &A, viennacl::linalg::detail::amg::amg_level_context &amg_context, viennacl::linalg::amg_tag &tag)
 Routine for taking all connections in the matrix as strong. More...
 
template<typename NumericT >
void amg_influence_advanced (compressed_matrix< NumericT > const &A, viennacl::linalg::detail::amg::amg_level_context &amg_context, viennacl::linalg::amg_tag &tag)
 Routine for extracting strongly connected points considering a user-provided threshold value. More...
 
template<typename NumericT >
void amg_influence (compressed_matrix< NumericT > const &A, viennacl::linalg::detail::amg::amg_level_context &amg_context, viennacl::linalg::amg_tag &tag)
 Dispatcher for influence processing. More...
 
void enumerate_coarse_points (viennacl::linalg::detail::amg::amg_level_context &amg_context)
 Assign IDs to coarse points. More...
 
template<typename NumericT >
void amg_coarse_ag_stage1_mis2 (compressed_matrix< NumericT > const &A, viennacl::linalg::detail::amg::amg_level_context &amg_context, viennacl::linalg::amg_tag &tag)
 AG (aggregation based) coarsening, single-threaded version of stage 1. More...
 
template<typename NumericT >
void amg_coarse_ag (compressed_matrix< NumericT > const &A, viennacl::linalg::detail::amg::amg_level_context &amg_context, viennacl::linalg::amg_tag &tag)
 AG (aggregation based) coarsening. Partially single-threaded version (VIENNACL_AMG_COARSE_AG) More...
 
template<typename InternalT1 >
void amg_coarse (InternalT1 &A, viennacl::linalg::detail::amg::amg_level_context &amg_context, viennacl::linalg::amg_tag &tag)
 Calls the right coarsening procedure. More...
 
template<typename NumericT >
void amg_interpol_ag (compressed_matrix< NumericT > const &A, compressed_matrix< NumericT > &P, viennacl::linalg::detail::amg::amg_level_context &amg_context, viennacl::linalg::amg_tag &tag)
 AG (aggregation based) interpolation. Multi-Threaded! (VIENNACL_INTERPOL_SA) More...
 
template<typename NumericT >
void amg_interpol_sa (compressed_matrix< NumericT > const &A, compressed_matrix< NumericT > &P, viennacl::linalg::detail::amg::amg_level_context &amg_context, viennacl::linalg::amg_tag &tag)
 Smoothed aggregation interpolation. (VIENNACL_INTERPOL_SA) More...
 
template<typename MatrixT >
void amg_interpol (MatrixT const &A, MatrixT &P, viennacl::linalg::detail::amg::amg_level_context &amg_context, viennacl::linalg::amg_tag &tag)
 Dispatcher for building the interpolation matrix. More...
 
template<typename NumericT , unsigned int AlignmentV>
void assign_to_dense (viennacl::compressed_matrix< NumericT, AlignmentV > const &A, viennacl::matrix_base< NumericT > &B)
 
template<typename NumericT >
void smooth_jacobi (unsigned int iterations, compressed_matrix< NumericT > const &A, vector< NumericT > &x, vector< NumericT > &x_backup, vector< NumericT > const &rhs_smooth, NumericT weight)
 Jacobi Smoother (OpenCL version) More...
 

Function Documentation

template<typename InternalT1 >
void viennacl::linalg::opencl::amg::amg_coarse ( InternalT1 &  A,
viennacl::linalg::detail::amg::amg_level_context amg_context,
viennacl::linalg::amg_tag tag 
)

Calls the right coarsening procedure.

Parameters
AOperator matrix on all levels
amg_contextAMG hierarchy datastructures
tagAMG preconditioner tag

Definition at line 286 of file amg_operations.hpp.

template<typename NumericT >
void viennacl::linalg::opencl::amg::amg_coarse_ag ( compressed_matrix< NumericT > const &  A,
viennacl::linalg::detail::amg::amg_level_context amg_context,
viennacl::linalg::amg_tag tag 
)

AG (aggregation based) coarsening. Partially single-threaded version (VIENNACL_AMG_COARSE_AG)

Parameters
AOperator matrix
amg_contextAMG hierarchy datastructures
tagAMG preconditioner tag

Definition at line 224 of file amg_operations.hpp.

template<typename NumericT >
void viennacl::linalg::opencl::amg::amg_coarse_ag_stage1_mis2 ( compressed_matrix< NumericT > const &  A,
viennacl::linalg::detail::amg::amg_level_context amg_context,
viennacl::linalg::amg_tag tag 
)

AG (aggregation based) coarsening, single-threaded version of stage 1.

Parameters
AOperator matrix on all levels
amg_contextAMG hierarchy datastructures
tagAMG preconditioner tag

Definition at line 128 of file amg_operations.hpp.

template<typename NumericT >
void viennacl::linalg::opencl::amg::amg_influence ( compressed_matrix< NumericT > const &  A,
viennacl::linalg::detail::amg::amg_level_context amg_context,
viennacl::linalg::amg_tag tag 
)

Dispatcher for influence processing.

Definition at line 82 of file amg_operations.hpp.

template<typename NumericT >
void viennacl::linalg::opencl::amg::amg_influence_advanced ( compressed_matrix< NumericT > const &  A,
viennacl::linalg::detail::amg::amg_level_context amg_context,
viennacl::linalg::amg_tag tag 
)

Routine for extracting strongly connected points considering a user-provided threshold value.

Definition at line 71 of file amg_operations.hpp.

template<typename NumericT >
void viennacl::linalg::opencl::amg::amg_influence_trivial ( compressed_matrix< NumericT > const &  A,
viennacl::linalg::detail::amg::amg_level_context amg_context,
viennacl::linalg::amg_tag tag 
)

Routine for taking all connections in the matrix as strong.

Definition at line 48 of file amg_operations.hpp.

template<typename MatrixT >
void viennacl::linalg::opencl::amg::amg_interpol ( MatrixT const &  A,
MatrixT &  P,
viennacl::linalg::detail::amg::amg_level_context amg_context,
viennacl::linalg::amg_tag tag 
)

Dispatcher for building the interpolation matrix.

Parameters
AOperator matrix
PProlongation matrix
amg_contextAMG hierarchy datastructures
tagAMG configuration tag

Definition at line 385 of file amg_operations.hpp.

template<typename NumericT >
void viennacl::linalg::opencl::amg::amg_interpol_ag ( compressed_matrix< NumericT > const &  A,
compressed_matrix< NumericT > &  P,
viennacl::linalg::detail::amg::amg_level_context amg_context,
viennacl::linalg::amg_tag tag 
)

AG (aggregation based) interpolation. Multi-Threaded! (VIENNACL_INTERPOL_SA)

Parameters
AOperator matrix
PProlongation matrix
amg_contextAMG hierarchy datastructures
tagAMG configuration tag

Definition at line 311 of file amg_operations.hpp.

template<typename NumericT >
void viennacl::linalg::opencl::amg::amg_interpol_sa ( compressed_matrix< NumericT > const &  A,
compressed_matrix< NumericT > &  P,
viennacl::linalg::detail::amg::amg_level_context amg_context,
viennacl::linalg::amg_tag tag 
)

Smoothed aggregation interpolation. (VIENNACL_INTERPOL_SA)

Parameters
AOperator matrix
PProlongation matrix
amg_contextAMG hierarchy datastructures
tagAMG configuration tag

Definition at line 343 of file amg_operations.hpp.

template<typename NumericT , unsigned int AlignmentV>
void viennacl::linalg::opencl::amg::assign_to_dense ( viennacl::compressed_matrix< NumericT, AlignmentV > const &  A,
viennacl::matrix_base< NumericT > &  B 
)

Assign sparse matrix A to dense matrix B

Definition at line 400 of file amg_operations.hpp.

void viennacl::linalg::opencl::amg::enumerate_coarse_points ( viennacl::linalg::detail::amg::amg_level_context amg_context)
inline

Assign IDs to coarse points.

TODO: Use exclusive_scan on GPU for this.

Definition at line 96 of file amg_operations.hpp.

template<typename NumericT >
void viennacl::linalg::opencl::amg::smooth_jacobi ( unsigned int  iterations,
compressed_matrix< NumericT > const &  A,
vector< NumericT > &  x,
vector< NumericT > &  x_backup,
vector< NumericT > const &  rhs_smooth,
NumericT  weight 
)

Jacobi Smoother (OpenCL version)

Parameters
iterationsNumber of smoother iterations
AOperator matrix for the smoothing
xThe vector smoothing is applied to
x_backup(Different) Vector holding the same values as x
rhs_smoothThe right hand side of the equation for the smoother
weightDamping factor. 0: No effect of smoother. 1: Undamped Jacobi iteration

Definition at line 427 of file amg_operations.hpp.