.. index:: pair: struct; gpr::linalg::schemeii::Options .. _doxid-structgpr_1_1linalg_1_1schemeii_1_1_options: struct gpr::linalg::schemeii::Options ===================================== .. toctree:: :hidden: Overview ~~~~~~~~ .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include struct Options { // fields :ref:`Engine` :target:`engine` = :ref:`Engine::Fp64`; int :ref:`bits` = 0; int :ref:`moduli` = 0; :ref:`Int8Provider` :target:`provider` = :ref:`Int8Provider::Auto`; std::string :ref:`library`; int :ref:`device` = -1; int :ref:`threads` = 0; std::int64_t :ref:`block_rows` = 512; std::int64_t :target:`block_cols` = 256; std::size_t :ref:`panel_bytes` = std::size_t{2}<<30; double :ref:`device_min` = 16777216.0; }; .. _details-structgpr_1_1linalg_1_1schemeii_1_1_options: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Fields ------ .. index:: pair: variable; bits .. _doxid-structgpr_1_1linalg_1_1schemeii_1_1_options_1a0eef6faf7e3a1680f352f7268082092a: .. ref-code-block:: cpp :class: doxyrest-title-code-block int bits = 0 Integer width of the scaled operands. Zero selects kDefaultBits, or, with moduli set, the largest width that the moduli support. .. index:: pair: variable; moduli .. _doxid-structgpr_1_1linalg_1_1schemeii_1_1_options_1a3ecbb9f8276fcfb9c877da919e4310cf: .. ref-code-block:: cpp :class: doxyrest-title-code-block int moduli = 0 Number of moduli. Zero selects the fewest that support bits. .. index:: pair: variable; library .. _doxid-structgpr_1_1linalg_1_1schemeii_1_1_options_1afb2c0c584e47b555ad93462ba814e5e3: .. ref-code-block:: cpp :class: doxyrest-title-code-block std::string library Shared library of the INT8 provider. Empty searches the defaults. .. index:: pair: variable; device .. _doxid-structgpr_1_1linalg_1_1schemeii_1_1_options_1ac58869cf15e5c3a97880e76ecf76113d: .. ref-code-block:: cpp :class: doxyrest-title-code-block int device = -1 CUDA device of provider=cuda; negative selects the local MPI rank modulo the visible device count. .. index:: pair: variable; threads .. _doxid-structgpr_1_1linalg_1_1schemeii_1_1_options_1a32bc99ffec86b38f2458396b167ce625: .. ref-code-block:: cpp :class: doxyrest-title-code-block int threads = 0 Worker threads. Zero asks the thread source at each product. .. index:: pair: variable; block_rows .. _doxid-structgpr_1_1linalg_1_1schemeii_1_1_options_1a7444f72930835519824457f290dcdb39: .. ref-code-block:: cpp :class: doxyrest-title-code-block std::int64_t block_rows = 512 Output block of one work item: residue workspace per thread is (N + 2) \* block_rows \* block_cols \* 8 bytes. .. index:: pair: variable; panel_bytes .. _doxid-structgpr_1_1linalg_1_1schemeii_1_1_options_1a017f4d846d63aa59bdd7e2b373ab79dc: .. ref-code-block:: cpp :class: doxyrest-title-code-block std::size_t panel_bytes = std::size_t{2}<<30 Bytes of prepared operand residues in one :ref:`Context::gemm ` call; larger products are processed in row and column panels. .. index:: pair: variable; device_min .. _doxid-structgpr_1_1linalg_1_1schemeii_1_1_options_1a7cfc768a65b8d15ed8ed8b7b611f7d1b: .. ref-code-block:: cpp :class: doxyrest-title-code-block double device_min = 16777216.0 provider=cuda: runs whose products total fewer multiply-adds (sum of m n k) stay on the host, in an FP64 engine with the same bits and therefore the same results; transfers and launches would cost more than the product.