struct gpr::linalg::schemeii::Options¶
Overview¶
#include <gpr/linalg/schemeii/SchemeII.h>
struct Options {
// fields
Engine engine = Engine::Fp64;
int bits = 0;
int moduli = 0;
Int8Provider provider = Int8Provider::Auto;
std::string library;
int device = -1;
int threads = 0;
std::int64_t block_rows = 512;
std::int64_t block_cols = 256;
std::size_t panel_bytes = std::size_t{2}<<30;
double device_min = 16777216.0;
};
Detailed Documentation¶
Fields¶
int bits = 0
Integer width of the scaled operands. Zero selects kDefaultBits, or, with moduli set, the largest width that the moduli support.
int moduli = 0
Number of moduli. Zero selects the fewest that support bits.
std::string library
Shared library of the INT8 provider. Empty searches the defaults.
int device = -1
CUDA device of provider=cuda; negative selects the local MPI rank modulo the visible device count.
int threads = 0
Worker threads. Zero asks the thread source at each product.
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.
std::size_t panel_bytes = std::size_t{2}<<30
Bytes of prepared operand residues in one Context::gemm call; larger products are processed in row and column panels.
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.