docs/advanced/hardware-support.md
Stability Matrix runs image and video generation packages on top of PyTorch, and PyTorch needs a compute backend that matches your GPU. This page breaks down which GPUs and platforms each backend targets, what Stability Matrix does automatically when it detects your hardware, the known caveats, and which packages expose each backend.
Each package declares the set of PyTorch backends it supports, and Stability Matrix pre-selects a recommended one from your detected hardware. The general order of preference is CUDA for NVIDIA, then ZLUDA (Windows AMD), then IPEX (Intel), then native ROCm (Linux AMD, or supported Windows AMD), then DirectML (Windows AMD), and finally CPU as a last resort. If a package does not support your detected GPU, the recommended default falls back to CPU.
The backend is chosen at install time from the PyTorch Index dropdown, and can be changed afterward from the package's Python Packages dialog. See Selecting a Hardware Backend for where these options live in the UI.
The lists below describe what the code checks for. Because hardware detection works off GPU names and compute capability, treat any GPU model boundaries as guidance rather than a hard guarantee: some GPUs work with manual configuration even when a badge is not shown, and some edge-case cards may need extra setup.
cu130); GPUs flagged as legacy NVIDIA fall back to an older CUDA 12.6 index (cu126) for ComfyUI installs.xformers is added on CUDA (and ZLUDA) installs when a package requests it.cu130 wheels require an NVIDIA driver of version 580 or newer. ComfyUI checks the installed driver on launch and warns if it is older than 580.x while cu130 torch is installed, suggesting either a driver update or manually downgrading to an older torch index such as cu128.AMD support on Windows is the most involved case, because there are three different paths depending on your GPU and package: native ROCm, ZLUDA, and DirectML.
Stability Matrix can install AMD's native ROCm PyTorch on Windows using AMD's official multi-architecture wheels. This path is gated to a specific set of GPU architectures. The code recognizes the following gfx architectures as supported on Windows:
gfx120x (e.g. RX 9070, RX 9060 families).gfx110x (RDNA3 desktop and mobile) and gfx115x (RDNA3.5 APUs such as the 890M / 8060S / Z2 Extreme families).gfx101x (RDNA1) and gfx103x (RDNA2), plus Vega/GCN5 (gfx900, gfx906).Architectures in the gfx110x, gfx115x, and gfx120x ranges are treated as "modern"; the rest are treated as "legacy" and use a more conservative attention path.
What Stability Matrix does automatically:
repo.amd.com/rocm/whl-multi-arch/) as device-specific wheels (torch[device-gfxNNNN]). Vega parts (gfx900 / gfx906) pull from the 'TheRock' nightly multi-arch feed instead, since these architecture builds currently are only available there instead of the stable production distribution stream.COMFYUI_ENABLE_MIOPEN, and an allocator tuning string). AOTriton is excluded on the gfx1152 / gfx1153 APU architectures, which it does not yet support. Legacy architectures instead force a math SDP fallback. The full variable list and exactly which ones are auto-applied are documented in Environment Variables.[!NOTE] While not managed by Stability Matrix for ROCm installs, SD.Next has a Windows-native ROCm install when the "ROCm" Pytorch index is selected in Advanced Installation Options during initial package install and
--use-rocmis set in launch options. This install path is internally handled by SD.Next itself and currently only supports RDNA2 dedicated GPUs, RDNA3, RDNA3.5, and RDNA4 GPUs.
Caveats:
ZLUDA is a CUDA-to-AMD translation layer used by dedicated AMD-on-Windows packages. It is recommended on Windows AMD systems that are not covered by native ROCm.
FLASH_ATTENTION_TRITON_AMD_ENABLE, MIOPEN_FIND_MODE, MIOPEN_LOG_LEVEL, ZLUDA_COMGR_LOG_LEVEL, and a TRITON_OVERRIDE_ARCH derived from your GPU's gfx arch). See Environment Variables for details.DirectML is Microsoft's cross-vendor GPU acceleration API and acts as the broadest-compatibility fallback on Windows.
torch-directml package instead of a CUDA/ROCm torch build. On a Windows AMD system with no ROCm-supported GPU, DirectML/ZLUDA is the fallback recommendation.On Linux, AMD GPUs use native ROCm directly, which is the mature AMD path.
rocm6.4), and ComfyUI installs use a ROCm 7.2 index (rocm7.2).IPEX is the Intel Extension for PyTorch, targeting Intel's discrete and integrated Arc graphics via the XPU backend.
xpu).--use-ipex install/launch flow.MPS is Apple's Metal Performance Shaders backend, used for GPU acceleration on Apple Silicon Macs.
CPU is the universal fallback that runs entirely on the processor with no GPU acceleration.
cpu). When a package supports no backend that matches your detected hardware, the recommended default falls back to CPU.