fhelium.benchmarks.suite.specification
Workload and sampling definitions for the local-device benchmark suite.
The suite covers the product of sampled input depths, leading batch sizes, and task sizes. The same cells and arithmetic plans apply on CPU and CUDA. A run owns the complete cell inventory, including cells that cannot execute.
CONFIGURATIONS
constant View source
CONFIGURATIONS = (Preset.slots32768_scale50_depth27_int64,)BATCHES
constant View source
BATCHES = (1, 2, 4, 8, 16)MATRIX_SIZES
constant View source
MATRIX_SIZES = (16, 32, 64)OPERATIONS
constant View source
OPERATIONS = ('rotate', 'rotate_many', 'rotate_many_independent', 'relinearize', 'rescale_ct2', 'multiply_plaintext', 'multiply_ciphertexts', 'square', 'add', 'sum_plaintext_products', 'multiply_coefficient', 'advance_depth')MATRIX_WORKLOADS
constant View source
MATRIX_WORKLOADS = ('matrix_ptct', 'matrix_ctct')NTT_PLANS
constant View source
NTT_PLANS = ('radix2_indexed', 'radix2_compact_group8_smem8')PRIMITIVE_WORKLOADS
constant View source
PRIMITIVE_WORKLOADS = ('ntt_forward', 'ntt_inverse', 'key_switch', 'rns_add', 'rns_multiply')WARMUPS
constant View source
WARMUPS = 5SAMPLES
constant View source
SAMPLES = 20ABSOLUTE_ERROR_LIMIT
constant View source
ABSOLUTE_ERROR_LIMIT = 1e-05SEED
constant View source
SEED = 20260907SuiteCell
class View source
SuiteCell(config: str, workload: str, depth: int, batch: int, size: int | None, plan: str)One mathematical task and execution plan at a concrete input state.
Attributes
| Name | Type | Default/value |
|---|---|---|
config | str | |
workload | str | |
depth | int | |
batch | int | |
size | int | None | |
plan | str |
id
property
id: strconfigurations
function View source
def configurations() -> dict[str, CkksConfig]: ...entry_depths
function View source
def entry_depths(config: CkksConfig) -> tuple[int, ...]: ...Sample every fourth nonterminal input basis.
cells
function View source
def cells() -> tuple[SuiteCell, ...]: ...specification
function View source
def specification() -> dict[str, object]: ...Return the mathematical and measurement identity hashed by every run.
specification_hash
function View source
def specification_hash() -> str: ...