batchlas::select::Table Struct Reference

Overview

One dtype's table: a tuned/<op>.<device>.txt file holds one per dtype.

Definition at line 265 of file select.hh.

#include </home/runner/work/BatchLAS/BatchLAS/src/select/select.hh>

Functions

◆ nearest()

const TableRow * batchlas::select::Table::nearest ( const Key & key) const

Rows matching the longest prefix of the :exact keys (in '# keys:' order; exact keys are dropped from the right until some row matches, possibly all of them), then min sum w*|log2(row/key)|, ties lexicographic by the :log keys in declared order.

Exceptions
std::invalid_argumentif key lacks a table key.

◆ nearest_scan()

const TableRow * batchlas::select::Table::nearest_scan ( const std::vector< std::string > & kv,
const std::vector< double > & kl ) const

Variables

◆ file

std::string batchlas::select::Table::file

basename, e.g. "potrf.sm_120.txt"

Definition at line 266 of file select.hh.

◆ op

std::string batchlas::select::Table::op

Definition at line 267 of file select.hh.

◆ dtype

std::string batchlas::select::Table::dtype

Definition at line 267 of file select.hh.

◆ device

std::string batchlas::select::Table::device

Definition at line 267 of file select.hh.

◆ family

std::string batchlas::select::Table::family

Definition at line 267 of file select.hh.

◆ arch_number

int batchlas::select::Table::arch_number = 0

Definition at line 268 of file select.hh.

◆ source

std::string batchlas::select::Table::source

the header's source= value, e.g. "transcribed:2b46acab"

Definition at line 269 of file select.hh.

◆ is_override

bool batchlas::select::Table::is_override = false

read from BATCHLAS_TUNED_DIR

Definition at line 270 of file select.hh.

◆ keys

std::vector<TableKey> batchlas::select::Table::keys

Definition at line 271 of file select.hh.

◆ rows

std::vector<TableRow> batchlas::select::Table::rows

Definition at line 272 of file select.hh.

◆ memo

std::shared_ptr<Memo> batchlas::select::Table::memo

Definition at line 276 of file select.hh.