# `Snakepit.Hardware.ROCmDetector`
[🔗](https://github.com/nshkrdotcom/snakepit/blob/v0.13.0/lib/snakepit/hardware/rocm_detector.ex#L1)

AMD ROCm GPU hardware detection.

Detects AMD GPUs with ROCm support using rocm-smi when available.

# `rocm_device`

```elixir
@type rocm_device() :: %{
  id: non_neg_integer(),
  name: String.t(),
  memory_total_mb: non_neg_integer(),
  memory_free_mb: non_neg_integer()
}
```

# `rocm_info`

```elixir
@type rocm_info() :: %{version: String.t(), devices: [rocm_device()]}
```

# `detect`

```elixir
@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

---

*Consult [api-reference.md](api-reference.md) for complete listing*
