uv/crates/uv-resolver/src/resolver
Charlie Marsh a82c210cab
Add auto-detection for AMD GPUs (#14176)
## Summary

Allows `--torch-backend=auto` to detect AMD GPUs. The approach is fairly
well-documented inline, but I opted for `rocm_agent_enumerator` over
(e.g.) `rocminfo` since it seems to be the recommended approach for
scripting:
https://rocm.docs.amd.com/projects/rocminfo/en/latest/how-to/use-rocm-agent-enumerator.html.

Closes https://github.com/astral-sh/uv/issues/14086.

## Test Plan

```
root@rocm-jupyter-gpu-mi300x1-192gb-devcloud-atl1:~# ./uv-linux-libc-11fb582c5c046bae09766ceddd276dcc5bb41218/uv pip install torch --torch-backend=auto
Resolved 11 packages in 251ms
Prepared 2 packages in 6ms
Installed 11 packages in 257ms
 + filelock==3.18.0
 + fsspec==2025.5.1
 + jinja2==3.1.6
 + markupsafe==3.0.2
 + mpmath==1.3.0
 + networkx==3.5
 + pytorch-triton-rocm==3.3.1
 + setuptools==80.9.0
 + sympy==1.14.0
 + torch==2.7.1+rocm6.3
 + typing-extensions==4.14.0
```

---------

Co-authored-by: Zanie Blue <contact@zanie.dev>
2025-06-21 15:21:06 +00:00
..
availability.rs Show expected and available ABI tags in resolver errors (#10527) 2025-01-14 01:03:11 +00:00
batch_prefetch.rs Apply some Edition 2024 fixes (#13479) 2025-05-16 10:34:22 +02:00
derivation.rs Make `version` an optional field on installable distribution type (#10623) 2025-01-15 11:31:39 -05:00
environment.rs Add `[tool.uv.dependency-groups].mygroup.requires-python` (#13735) 2025-06-13 22:04:13 +00:00
fork_map.rs Move lowered requirement source type out of `uv-pypi-types` (#12356) 2025-03-20 21:16:12 -04:00
index.rs Allow multiple pinned indexes in `tool.uv.sources` (#7769) 2024-10-15 22:58:15 +00:00
indexes.rs Support `--find-links`-style "flat" indexes in `[[tool.uv.index]]` (#12407) 2025-03-25 21:14:44 -04:00
mod.rs Add auto-detection for AMD GPUs (#14176) 2025-06-21 15:21:06 +00:00
provider.rs Add `[tool.uv.dependency-groups].mygroup.requires-python` (#13735) 2025-06-13 22:04:13 +00:00
reporter.rs Add `DisplaySafeUrl` newtype to prevent leaking of credentials by default (#13560) 2025-05-27 00:05:30 +02:00
system.rs Add XPU to `--torch-backend` (#14172) 2025-06-20 20:33:20 -04:00
urls.rs Bump MSRV to 1.84 (#12670) 2025-04-04 11:49:26 -04:00