class gpr::linalg::DistributedKernelProvider¶
Overview¶
Distributed kernel provider (layer 3). More…
#include <gpr/linalg/BackendInterface.h>
class DistributedKernelProvider {
public:
// construction
virtual ~DistributedKernelProvider();
// methods
virtual ProviderTraits traits() const = 0;
virtual ThreadBudget threadBudget(int cpu_share) const = 0;
virtual bool potrf_lower(TileView a, int n) = 0;
virtual bool potri_lower(TileView a, int n) = 0;
virtual bool trsm_left_lower(ConstTileView l, int n, TileView b, int nrhs, bool transpose) = 0;
virtual bool heev_lower(TileView a, int n, TileView z, std::vector<double>& eigenvalues) = 0;
virtual bool rank_block_cholesky_append_lower(TileView a, int n, int cached_n) = 0;
virtual bool gram_lower(TileView b, int rows, int columns, TileView product) = 0;
};
Detailed Documentation¶
Distributed kernel provider (layer 3). Every operation is collective over the provider’s process group: all ranks call it, in the same order, with descriptors of the same layout. Operands are local blocks of a block-cyclic matrix described by desc (ScaLAPACK descriptor layout); the layout and collectives of layer 2 own the descriptor and the group.
Each operation returns false on a numerical rejection that all ranks observe (for example a non-positive pivot); device and runtime failures throw. The lower triangle is the stored triangle.
Methods¶
virtual ThreadBudget threadBudget(int cpu_share) const = 0
Threads this provider spends on one rank, within cpu_share.
virtual bool potrf_lower(TileView a, int n) = 0
Cholesky factor of the order- n lower triangle, in place.
virtual bool potri_lower(TileView a, int n) = 0
Inverse of the matrix whose lower Cholesky factor a holds, in place.
virtual bool trsm_left_lower(ConstTileView l, int n, TileView b, int nrhs, bool transpose) = 0
Solve L X = B (or L^T X = B when transpose) in place on b.
Eigenvalues (ascending) and eigenvectors z of the symmetric matrix whose lower triangle is a.
virtual bool rank_block_cholesky_append_lower(TileView a, int n, int cached_n) = 0
Extend the cached factor of order cached_n to order n with the rows appended to a.
Lower triangle of B^T B for the rows x columns block b.