Skip to content

atomli.gpu

Generated from the public Python surface of Atomli 0.1.18.

Adapter(index: int, name: str, vendor_id: int, device_id: int, device_type: str, kind: str, backend: str, pci_bus_id: Optional[str], driver: str, driver_info: str) -> None

Section titled “Adapter(index: int, name: str, vendor_id: int, device_id: int, device_type: str, kind: str, backend: str, pci_bus_id: Optional[str], driver: str, driver_info: str) -> None”

One adapter in Atomli’s process-global GPU inventory.

DeviceSelection(device: str, adapter: Optional[str] = None) -> None

Section titled “DeviceSelection(device: str, adapter: Optional[str] = None) -> None”

A resolved Atomli compute-device choice.

device is the canonical public spelling ("cpu" or "gpu"). "gpu" always means a real hardware adapter; CPU-backed Vulkan implementations such as llvmpipe are intentionally outside the released execution surface. adapter is a WGPU selector only when the GPU half of the selection is used.

Enumerate hardware GPUs visible to Atomli’s production backend.

CPU-backed Vulkan implementations such as llvmpipe are filtered out and are not part of the released GPU execution surface.

Return Atomli’s CPU baseline or explicit process device override.

set_default_device(device: Any = None, *, adapter: Optional[Any] = None) -> None

Section titled “set_default_device(device: Any = None, *, adapter: Optional[Any] = None) -> None”

Set Atomli’s process-global default compute device.

Examples::

atomli.gpu.set_default_device("gpu")
atomli.gpu.set_default_device("gpu:0")
atomli.gpu.set_default_device("gpu:pci:0000:61:00.0")
atomli.gpu.set_default_device(atomli.gpu.adapters()[0])

New GPU-capable calculators inherit this selection when their own device= argument is omitted. An explicit calculator device= remains an override. Passing None clears the process override. Automatic selection is owned by each calculator. "gpu" chooses real hardware only; software/emulated WGPU adapters such as llvmpipe are unsupported in released packages.