Fix subprocess import error in detect_gpu_backends

- Move subprocess import to function scope to avoid UnboundLocalError
- Ensure subprocess is available for fallback GPU detection
parent 5794b09d
......@@ -249,6 +249,8 @@ def get_platform_info() -> dict:
def detect_gpu_backends() -> dict:
"""Detect available GPU backends (CUDA and ROCm)."""
import subprocess
backends = {
'cuda': False,
'rocm': False,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment