98bool isSpec(std::string_view spec)
noexcept;
124 [[nodiscard]]
std::int64_t
extent() const noexcept;
125 [[nodiscard]]
std::int64_t
depth() const noexcept;
126 [[nodiscard]] const
std::vector<
int>&
exponents() const noexcept;
127 [[nodiscard]]
std::
size_t bytes() const noexcept;
181 void gemm(
bool transpose_a,
bool transpose_b,
std::int64_t m,
182 std::int64_t n,
std::int64_t k,
double alpha, const
double* a,
183 std::int64_t lda, const
double* b,
std::int64_t ldb,
double beta,
184 double* c,
std::int64_t ldc) const;
194 std::span<const
int> row_exponents,
195 std::span<const
int> column_exponents,
std::int64_t m,
196 std::int64_t n,
double alpha,
double beta,
double* c,
197 std::int64_t ldc) const;
void residues(const Task &task, std::vector< std::uint32_t > &out) const
Plan plan(std::int64_t k) const
Context & operator=(const Context &)=delete
void gemm(bool transpose_a, bool transpose_b, std::int64_t m, std::int64_t n, std::int64_t k, double alpha, const double *a, std::int64_t lda, const double *b, std::int64_t ldb, double beta, double *c, std::int64_t ldc) const
Operand prepareRows(const double *a, std::int64_t lda, bool transpose, std::int64_t m, std::int64_t k, const Plan &plan, const int *exponents=nullptr) const
Row operand from op(A) (m x k). Exponents override the row maxima.
void setThreadSource(int(*source)())
Thread count used when Options::threads is zero.
const Options & options() const noexcept
void run(std::span< const Task > tasks) const
void reconstruct(const Plan &plan, std::span< const std::uint32_t > residues, std::span< const int > row_exponents, std::span< const int > column_exponents, std::int64_t m, std::int64_t n, double alpha, double beta, double *c, std::int64_t ldc) const
C block from summed residues (see residues()).
std::string describe(std::int64_t k) const
One line naming engine, provider, bits and moduli for k.
Operand prepareColumns(const double *b, std::int64_t ldb, bool transpose, std::int64_t k, std::int64_t n, const Plan &plan, const int *exponents=nullptr) const
Column operand from op(B) (k x n).
Context(const Context &)=delete
std::int64_t depth() const noexcept
std::size_t bytes() const noexcept
Operand(Operand &&) noexcept
const std::vector< int > & exponents() const noexcept
std::int64_t extent() const noexcept
eon_relax_band_t eon_relax_surface_fn void eon_relax_outcome_t * out
int scaleExponent(double max_abs, int bits) noexcept
constexpr int kDefaultBits
std::vector< std::uint32_t > engineModuli(Engine engine, std::int64_t chunk)
Moduli of an engine for an inner chunk length, largest first.
std::int64_t engineChunk(Engine engine, std::int64_t k)
Inner chunk length of one exact GEMM for an engine.
bool isSpec(std::string_view spec) noexcept
Options parseOptions(std::string_view spec)
int threads
Worker threads. Zero asks the thread source at each product.
int moduli
Number of moduli. Zero selects the fewest that support bits.
std::string library
Shared library of the INT8 provider. Empty searches the defaults.
Moduli for one inner dimension k.
std::vector< std::uint32_t > moduli
double log2_modulus_product