Loading...
Searching...
No Matches
gpr::linalg::schemeii::Options Struct Reference

#include <gpr/linalg/schemeii/SchemeII.h>

Public Attributes

Engine engine = Engine::Fp64
int bits = 0
int moduli = 0
 Number of moduli. Zero selects the fewest that support bits.
Int8Provider provider = Int8Provider::Auto
std::string library
 Shared library of the INT8 provider. Empty searches the defaults.
int device = -1
int threads = 0
 Worker threads. Zero asks the thread source at each product.
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 Description

Definition at line 60 of file SchemeII.h.

Member Data Documentation

◆ bits

int gpr::linalg::schemeii::Options::bits = 0

Integer width of the scaled operands. Zero selects kDefaultBits, or, with moduli set, the largest width that the moduli support.

Definition at line 64 of file SchemeII.h.

◆ block_cols

std::int64_t gpr::linalg::schemeii::Options::block_cols = 256

Definition at line 78 of file SchemeII.h.

◆ block_rows

std::int64_t gpr::linalg::schemeii::Options::block_rows = 512

Output block of one work item: residue workspace per thread is (N + 2) * block_rows * block_cols * 8 bytes.

Definition at line 77 of file SchemeII.h.

◆ device

int gpr::linalg::schemeii::Options::device = -1

CUDA device of provider=cuda; negative selects the local MPI rank modulo the visible device count.

Definition at line 72 of file SchemeII.h.

◆ device_min

double gpr::linalg::schemeii::Options::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.

Definition at line 86 of file SchemeII.h.

◆ engine

Engine gpr::linalg::schemeii::Options::engine = Engine::Fp64

Definition at line 61 of file SchemeII.h.

◆ library

std::string gpr::linalg::schemeii::Options::library

Shared library of the INT8 provider. Empty searches the defaults.

Definition at line 69 of file SchemeII.h.

◆ moduli

int gpr::linalg::schemeii::Options::moduli = 0

Number of moduli. Zero selects the fewest that support bits.

Definition at line 66 of file SchemeII.h.

◆ panel_bytes

std::size_t gpr::linalg::schemeii::Options::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.

Definition at line 81 of file SchemeII.h.

81{2} << 30;

◆ provider

Int8Provider gpr::linalg::schemeii::Options::provider = Int8Provider::Auto

Definition at line 67 of file SchemeII.h.

◆ threads

int gpr::linalg::schemeii::Options::threads = 0

Worker threads. Zero asks the thread source at each product.

Definition at line 74 of file SchemeII.h.


The documentation for this struct was generated from the following file: