.. index:: pair: class; gpr::linalg::DistributedKernelProvider .. _doxid-classgpr_1_1linalg_1_1_distributed_kernel_provider: class gpr::linalg::DistributedKernelProvider ============================================ .. toctree:: :hidden: Overview ~~~~~~~~ Distributed kernel provider (layer 3). :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class DistributedKernelProvider { public: // construction virtual :target:`~DistributedKernelProvider`(); // methods virtual :ref:`ProviderTraits` :target:`traits`() const = 0; virtual :ref:`ThreadBudget` :ref:`threadBudget`(int cpu_share) const = 0; virtual bool :ref:`potrf_lower`(:ref:`TileView` a, int n) = 0; virtual bool :ref:`potri_lower`(:ref:`TileView` a, int n) = 0; virtual bool :ref:`trsm_left_lower`(:ref:`ConstTileView` l, int n, :ref:`TileView` b, int nrhs, bool transpose) = 0; virtual bool :ref:`heev_lower`(:ref:`TileView` a, int n, :ref:`TileView` z, std::vector& eigenvalues) = 0; virtual bool :ref:`rank_block_cholesky_append_lower`(:ref:`TileView` a, int n, int cached_n) = 0; virtual bool :ref:`gram_lower`(:ref:`TileView` b, int rows, int columns, :ref:`TileView` product) = 0; }; .. _details-classgpr_1_1linalg_1_1_distributed_kernel_provider: 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 ------- .. index:: pair: function; threadBudget .. _doxid-classgpr_1_1linalg_1_1_distributed_kernel_provider_1a441f8c525e8afc6edcd934678beac139: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual :ref:`ThreadBudget` threadBudget(int cpu_share) const = 0 Threads this provider spends on one rank, within ``cpu_share``. .. index:: pair: function; potrf_lower .. _doxid-classgpr_1_1linalg_1_1_distributed_kernel_provider_1aff325f3dbe0e4fc9a44f08c0b8b8b5e6: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual bool potrf_lower(:ref:`TileView` a, int n) = 0 Cholesky factor of the order- ``n`` lower triangle, in place. .. index:: pair: function; potri_lower .. _doxid-classgpr_1_1linalg_1_1_distributed_kernel_provider_1a3f2c343ad28a21988a4d171f458dfbd9: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual bool potri_lower(:ref:`TileView` a, int n) = 0 Inverse of the matrix whose lower Cholesky factor ``a`` holds, in place. .. index:: pair: function; trsm_left_lower .. _doxid-classgpr_1_1linalg_1_1_distributed_kernel_provider_1a2ca8332a2307d03a2a477803a935fb63: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual bool trsm_left_lower(:ref:`ConstTileView` l, int n, :ref:`TileView` b, int nrhs, bool transpose) = 0 Solve L X = B (or L^T X = B when ``transpose``) in place on ``b``. .. index:: pair: function; heev_lower .. _doxid-classgpr_1_1linalg_1_1_distributed_kernel_provider_1ac5c685d0e921773aed3dec1f9a2b56bf: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual bool heev_lower(:ref:`TileView` a, int n, :ref:`TileView` z, std::vector& eigenvalues) = 0 Eigenvalues (ascending) and eigenvectors ``z`` of the symmetric matrix whose lower triangle is ``a``. .. index:: pair: function; rank_block_cholesky_append_lower .. _doxid-classgpr_1_1linalg_1_1_distributed_kernel_provider_1a0930f9f577c2137574871ca9badfaf63: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual bool rank_block_cholesky_append_lower(:ref:`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``. .. index:: pair: function; gram_lower .. _doxid-classgpr_1_1linalg_1_1_distributed_kernel_provider_1aa6159a1f298eb8e46a097f498c958517: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual bool gram_lower(:ref:`TileView` b, int rows, int columns, :ref:`TileView` product) = 0 Lower triangle of B^T B for the ``rows`` x ``columns`` block ``b``.