detrium.ops.builder

Out-of-tree CUDA extension builder and loader for Detrium Turbo ops. Compiles `_detrium_cuda_ext` into `~/.cache/detrium/ops/<sig_prefix>/` so Detrium works cleanly both in editable checkouts and read-only `site-packages` wheels.

compute_build_signature(csrc_dir: Optional[Path]=None) -> Dict[str, str]

Compute a deterministic source + ABI signature for `_detrium_cuda_ext`.

名称类型默认值
csrc_dirOptional[Path]None
get_versioned_build_dir(csrc_dir: Optional[Path]=None) -> Path

Return the versioned out-of-tree cache directory for the current source+ABI signature.

名称类型默认值
csrc_dirOptional[Path]None
load_cached_extension(csrc_dir: Optional[Path]=None) -> Optional[object]

Load an already-compiled `_detrium_cuda_ext` shared library from the out-of-tree cache.

名称类型默认值
csrc_dirOptional[Path]None