util

The runtime beneath every vfhe module: which engine runs, how Python reaches C, and the C substrate every kernel calls.

Environment

variable

read by

meaning

VFHE_ENGINE

_engine, on selection

the engine to load, by name; honoured without asking the CPU, so an emulator can run one the host lacks

VFHE_NUM_THREADS

parallel.c, on first use

the thread limit when a positive integer; otherwise 1

VFHE_MEMPOOL_CAPACITY

memory_pool.c, on first use

the memory pool’s capacity in bytes; otherwise it follows the peak in use

VFHE_MEMPOOL_WIPE_ON_RELEASE

memory_pool.c, on first use

1 zeroes every buffer released to the memory pool

VFHE_BUILD_DIR

kernels

the build cache; default $XDG_CACHE_HOME/vfhe, else ~/.cache/vfhe

XDG_CACHE_HOME

kernels

where the default build cache goes

CC

kernels

the compiler; default the one Python was built with, else cc

PYTHONPATH

Python

a directory python -m vfhe.util.kernels printed, first, so bindings imports that engine