KernelNotAvailableError

KernelNotAvailableError#

class brainevent.KernelNotAvailableError#

Raised when a requested kernel backend is not installed or is version-incompatible.

This exception signals that a specific backend (e.g., Warp, Pallas, Triton) was requested but could not be loaded, either because the package is not installed or because the installed version does not meet the minimum requirements.

Parameters:

message (str) – A human-readable description indicating which backend is unavailable and how to install or upgrade it.

See also

KernelFallbackExhaustedError

Raised when no fallback backends remain after all alternatives have been tried.

KernelCompilationError

Raised when a backend is available but the kernel fails to compile.

Notes

This exception is typically raised during the lowering phase when JAX attempts to compile the computation graph and discovers that the selected backend cannot be loaded.

Examples

>>> from brainevent._error import KernelNotAvailableError
>>> raise KernelNotAvailableError(
...     "Pallas is not available on this platform."
... )