Configuration API#

User-level runtime configuration for brainevent.

Provides in-memory controls for: - Numba parallel execution and thread count - LFSR algorithm selection for JIT connectivity kernels - Global default backend selection per platform

Numba Runtime Controls#

set_numba_parallel([parallel, num_threads])

Enable or disable Numba parallel execution and optionally set the thread count.

get_numba_parallel()

Return whether Numba parallel execution is currently enabled.

get_numba_num_threads()

Return the configured Numba thread count.

LFSR Algorithm Selection#

set_lfsr_algorithm(algorithm)

Set the global LFSR algorithm used by JIT connectivity kernels.

get_lfsr_algorithm()

Return the current global LFSR algorithm name.

Global Backend Selection#

set_backend(platform, backend)

Set the global default backend for a platform across all primitives.

get_backend(platform)

Get the global default backend for a platform.

clear_backends()

Clear all global backend defaults.