Snakepit.Hardware.ROCmDetector (Snakepit v0.8.7)
View SourceAMD ROCm GPU hardware detection.
Detects AMD GPUs with ROCm support using rocm-smi when available.
Summary
Types
@type rocm_device() :: %{ id: non_neg_integer(), name: String.t(), memory_total_mb: non_neg_integer(), memory_free_mb: non_neg_integer() }
@type rocm_info() :: %{version: String.t(), devices: [rocm_device()]}
Functions
@spec detect() :: rocm_info() | nil
Detects ROCm GPU information.
Returns nil if ROCm is not available, or a map with:
:version- ROCm version:devices- List of ROCm device maps