fhelium.native._abi
Native build/runtime ABI metadata and validation.
MANIFEST_SCHEMA_VERSION
constant View source
python
MANIFEST_SCHEMA_VERSION = 11
SUPPORTED_NATIVE_BACKENDS
constant View source
python
SUPPORTED_NATIVE_BACKENDS = frozenset({'cpu', 'cuda'})1
manifest_native_backends
function View source
python
def manifest_native_backends(manifest: Mapping[str, Any]) -> tuple[str, ...]: ...1
Return the validated execution backends recorded by a manifest.
manifest_path
function View source
python
def manifest_path(torchops_dir: Path, soabi: str) -> Path: ...1
torch_cxx11_abi
function View source
python
def torch_cxx11_abi(torch_module: Any) -> bool: ...1
python_abi_identity
function View source
python
def python_abi_identity() -> dict[str, str]: ...1
Return the CPython fields that identify a native extension ABI.
runtime_identity
function View source
python
def runtime_identity(torch_module: Any) -> dict[str, Any]: ...1
Return only the Python/Torch fields that govern binary compatibility.
read_manifest
function View source
python
def read_manifest(path: Path) -> dict[str, Any]: ...1
compatibility_mismatches
function View source
python
def compatibility_mismatches(manifest: Mapping[str, Any], *, runtime: Mapping[str, Any], project_version: str | None) -> list[str]: ...1
Compare the small set of identities not encoded by wheel tags.